Nether Teleportation Item

Discussion in 'Archived: Plugin Requests' started by RedGoldX, Jul 21, 2014.

  1. Offline

    RedGoldX

    Hi I need a plugin that lets a player switch worlds to the nether and overworld only by holding a nether brick (405) and right clicking.

    Each time you use it should take some of your exp and work for all players on the server by default.
     
  2. Does it have to go to a spawn or something or does it have to go to the last location or random?
    And do you also need something to get back?
     
  3. Offline

    RedGoldX

    Should work the same as the world command by using the item you can go back and forth between the nether and over world.
    For example in the over world when you use /world you end up in the nether and when you walk 5 blocks in the nether and use world you come back 15 blocks away from the spot that you first enter the nether.
     
  4. Okey, maby i will make this tomorrow.
    If i have the time for it, i will make this :)
    But if someone is quicker than thats fine.
     
  5. Offline

    Creeoer

    I will try and dev this today, but not too sure if I will succed , very new to bukkit devdelopement.

    RedGoldX Phew, sorry this took so long, this was just a learning expierence for me :) Anyway, the plugin has world naming support, so incase you did rename your nether world or overworld differently, just specficy so in the config, you can also specificy the exp requirement to tp between the worlds. Here ya go:https://dl.dropboxusercontent.com/u/156377627/NetherTeleport.jar it is configured for MC 1.7.5, if you need MC 1.7.9, just ask! Careful, the player may die as you arent tping them to the spawn location, so they may fall in lava. I recommend you have the player tp to the nether spawn location ,ask me if you want to change it
    EDIT: I suggest you redownload the jar, I realized that it had a ton of bugs, and fixed them.
    EDIT #2: Ok, exported using 1.7.9
    EDIT #3: Just added a "You need more exp msg" for players who dont contain the requirement amount :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  6. Offline

    RedGoldX

    Needs to work in 1.7.9 and 1.7.10

    Thank you for making the plugin :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  7. Offline

    penguin_leader

    RedGoldX hey do you still need that other plugin
     
  8. Offline

    timtower Administrator Administrator Moderator

    Wow, that is really a terrible way around the rules.
     
  9. Offline

    RedGoldX

    I still need this plugin made
     
  10. Offline

    kps1796

    What's wrong with Creeoer 's plugin?
     
  11. Offline

    RedGoldX

    I talked to him and he does not know how to make it work like the /world command from essentials right now his plugin just sends you to the spawn points of the both worlds.
     
  12. Offline

    timtower Administrator Administrator Moderator

    RedGoldX What does the /world command from essentials then?
     
  13. Offline

    dsouzamatt

    So you want it to teleport you to the corresponding place in the nether?
     
  14. Offline

    RedGoldX



    When you are in the over world and you use the /world command you are send to the corresponding coordinates in the nether, if you walk a few blocks in the nether and come back to the over world you will have traveled a larger distances .



    Yes it need to send you to the corresponding place in the nether and back to the over world and each trip should cost exp

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  15. Offline

    timtower Administrator Administrator Moderator

    RedGoldX Try the reply button, or the tahg button.
    And that is pretty much basic nether functionality.
     
  16. Offline

    dsouzamatt

    RedGoldX Would you like me to make this for you?
     
  17. Offline

    RedGoldX

    Yes, I would
     
  18. Offline

    Creeoer

    If you want my main code for the plugin, so you could add in your method and not have to rewrite the code, pm me.
    timtower and would be having the location correspond to the nether be very basic? If you have time time, mind telling me exactly how? I'd make a help therad anyway, as I'm still learning the ropes of bukkit.
    Code:
    if(player.getWorld().getName().equalsIgnoreCase((NetherTeleportation.getInstance().getConfig().getString("overworld"))))
                {
                      player.sendMessage(ChatColor.RED + "You have been sent to the nether!");
                      player.setLevel(player.getLevel() - NetherTeleportation.getInstance().getConfig().getInt("exp-requirement"));
                      World nether = Bukkit.getWorld(NetherTeleportation.getInstance().getConfig().getString("nether"));
                      Location loc = nether.getSpawnLocation();
                      player.teleport(loc);
    I get the spawn location, which is pretty much it, not sure what I'd to have it correspond to it, if oyu dont have the time to answer this just tell me.
     
  19. Offline

    timtower Administrator Administrator Moderator

  20. Offline

    Creeoer

    timtower I should let you know I am also new to java itself, so I have no idea what *8 means, other than it seems like something that involves multiplication, what exactly do I do with this?
     
  21. Offline

    timtower Administrator Administrator Moderator

    Creeoer It is math, x coord times 8 is the overworld coord, divide the overworld one by 8 and you have the nether coords
     
  22. Offline

    Creeoer

    timtower What exaclty can get the exsiitng nether cords? since all I can find is .getSpawnLocation
     
  23. Offline

    timtower Administrator Administrator Moderator

    Creeoer You need to get the player, use his coordinates.
     
  24. Offline

    dsouzamatt

    Ok, I'll start it now. It'll be done in about an hour.

    RedGoldX Here you go.

    The bypass permission is netherteleporter.bypass

    Yo can set the levels needed to teleport in the config. You will have to reload it after making changes using /rnethertp. The permission is netherteleporter.reload

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  25. Offline

    Creeoer

    RedGoldX Just wanted to let you know that I at least got the plugin working, I mainly just did this to learn plugins myself, feel free to use dsouzamatt plugin, since he put a reload option and spent the time to make it for you.
     
  26. Offline

    RedGoldX

    Thank you dsouzamatt and to everyone who contributed
     

Share This Page