[TP][FUN] NetherPortal - Multi World Fast Travel with a challenge v0.6.10 [803]

Discussion in 'Inactive/Unsupported Plugins' started by asdaarg, Mar 5, 2011.

  1. Offline


    NetherPortal v0.6.11

    New in Version 0.6.11:
    • Added NetherPortal.portal.use permission

    I always thought things like random tping around that make the game too easy takes away the fun of playing, but in SSP fast travel constrained by 8x ratio rule was fun and reasonable advantage considering that you had to go through the nether a dangerous place to set up portals there, and if you wanted to make the travel safer you'd have to build or dig to make it safe. Unfortunately I have not seen a single plugin that does the following:

    1. Fast travel (8x rule)
    2. Auto portal creation (i.e. when you go through a portal a portal is created at the destination that is linked to it)
    3. Multiworld

    Well this plugin does. But it is also different from other plugins.

    The challenging thing is of course how to match portals. One thing I did not like in SSP was portal hopping, making it possible to easily find caves by digging down in the nether and place a portal there , and travel ultra fast by placing portals where there was solid material on the nether side. One solution to this was creating airpockets and platforms as in NetherGate. While this preserves the 8x rule, it is a bit dangerous to use, since you can destroy things you've built, and alternatively it would make it difficult to program to avoid it.

    The easy solution for me, which also adds a bit of challenge in setting up working portals, is that portals simply do not work if there is not air for the portal to be created in, the portal exits on both sides, and a platform for the portal and you to stand on when you exit it. So the challenge is to find a suitable location for a portal, but you can do it with the aid of a compass which gives a rough indication of the probability of there being a suitable location nearby, the closer the greater. The compass will also give you a guaranteed indication "X" that there is one solid block underneath and 5 air blocks above and one solid block underneath and at least 1 but at most 4 "_". The shape of the "X" indications in the following form:
    will guarantee that a portal can be constructed here, however if you have linked the world to more than 1 other world, readings from another world could interfere and you lose this guarantee, even though it is not likely to fail. Note, the exact size of the shape depends on the ratio between your world and the target world. If you are going to the nether from a normal world with default ratios (1 to 8) the shape is 8 times bigger. Note also that each indication then represent the entire 8x8x8 cube.
    If you are going to a higher or equal scale world, the portal has to be placed so the two bottom middle blocks reside within the two middle blocks of the shape.
    If you are going to a lower scale world, a special portal indication "N" "S" "W" or "E" is needed to guarantee that a portal can be placed, indicating the direction the other bottom middle block of the portal from the block you stand on (which is one of the bottom middle blocks).

    To get any reading at all YOU HAVE TO LINK THE WORLDS using the WORLD LINK or WORLD TARGET commands for a one way link.

    Here is a top down schematic view of all blocks needed on each level of a suitable location for a portal:
      S  |  A  |  A  |  A  |  A  |  A
     SSS |  A  | AAA | AAA |  A  |  A
     SSS |  A  | AAA | AAA |  A  |  A
      S  |  A  |  A  |  A  |  A  |  A
    y-1    y     y+1   y+2   y+3   y+4
    Where S is solid i.e. non air block and A is air block.
    Full features list (open)

    • Portals that simply work, no strange glitches or random suffocations happening. Place a block in front of the portal exit and it will refuse to teleport you.
    • Fast travel (8x rule like in single player, but ratio adjustable)
    • Auto-portal-creation at destination, so you can go back, like in single player
    • Multiworld support - create or import any number of worlds, nether or normal.
    • Permissions/Group manager support (optional)
    • Iconomy support (optional) - set the cost of portal usage
    • The (now optional) challenge to find a suitable location for a portal using compass
    • The option to create portals destructively (air pocket and platform creation)
    • The option to link any portal to any other, one way or two way.
    • Basic safe teleportation commands-adjusting to prevent fall damage and suffocation
    • Eternal night in the nether - good bye blue sky!
    • Worlds can link/target each other to allow fast travel auto portal creation and compass reading
    • Deconstruct portals faster - destroy one block and all will drop.
    • Anti-obsidian farming auto-created portals.
    • Configurable commands
    • And more.. see full list of commands

    Commands (open)

    fullsearch <target world>                searches a 400x400 area around you of suitable portal locations to target world
    fullsearch <target world> <size>         same as above but you can specify the area size
    teleport <world>                         teleports you to worldname to the corresponding coordinate
    teleport <world> <x> <y> <z>             teleports you to worldname to specified coordinate
    location                                 lists your corresponding coordinates in each world
    world create <world> <environment>       creates or imports world of type environment (normal or nether)
    world remove <world>                     removes a world (does not delete it)
    world ratio <world name> <ratio>         sets the ratio of the world (nether is 8 by default and normal is 1)
    world center                             centers the world at the spot you stand (0,64,0 by default)
    world list                               lists all loaded worlds
    world link <world1> <world2>             link together 2 worlds (i.e. both target each other)
    world settarget <world1> <world2>        world1 targets world2 - allows fast travel auto created portals and readings from world2.
    world detarget <world1> <world2>         removes world2 from world1's target list
    portal link <portal1> <portal2>          link together 2 portals (i.e. both target each other)
    portal settarget <portal1> <portal2>     portal1 targets portal2 - stepping into portal1 teleports you to portal2
    portal detarget <portal>                 set portal points to null i.e. nowhere
    portal name <portal>                     sets name of portal you last stepped through
    portal punch through to <world>          auto creates a portal in world for the latest entered portal and with air pocket and platform if necessary
    portal list                              lists all portals in current world and their locations and targets worlds and locations
    portal setcost <cost>                    set the iconomy cost of portal you last entered
    teleport adjust                          change configuration of command based teleport to not adjust you on y axis to avoid fall damage or suffocation
    teleport to potral <portal>              teleports you to a named portal.
    world target list                        lists the target worlds of a world
    setspawn                                 moves spawn point to current location

    config.txt (open)

    alwayspunchthrough - sets whether to punch through to a target world automatically when you enter the portal
    tpadjust - sets whether teleportation y coordinate is adjusted so you do not take fall damage or suffocate
    respinnormal - respawn in last normal world you were in, when you die in nether
    artificialportal - workaround for portal not teleporting you when it reports the portal block to be air
    cooldown - number of milliseconds it takes for a portal to work again
    compass - the item id of the compass
    noYscale - whether Y scaling (up/down) should be used or not.

    Permissions (open)


    Downloads (open)

    Todo (open)

    • Fix portal not lit on the other side at times (is this happening at all anymore? a bukkit issue that got resolved?)
    Done and will be in next update:

    Changelog (open)

    Version 0.6.11:
    • Added config option noYscale, is false by default. It removes scaling factor on Y axis.
    Version 0.6.10:
    • Fixed /world remove not being called
    • World remove now removes the world from MC server without needing a restart.
    Version 0.6.9:
    • Added NetherPortal.portal.use permission
    Version 0.6.8:
    • Updated iConomy support to iConomy5
    • Added compass config option for changing the id of the compass
    Version 0.6.7:
    • Fixed inaccurate teleportation when portal exit is on different axis than entrance
    • Fixed portal names not being loaded into lookup table at startup.
    Version 0.6.6:
    • Fixed scrambled portals on reload when there is at least one portal without target
    Version 0.6.5:
    • Removed nag about some old event that i imported
    • Fixed singly linked portals not being loaded correctly
    Version 0.6.4:
    • portals will not break other portals when punching through, they will "angrily spit you out" on autopunchthrough
    • cooldown option for setting how long time til a portal can be used again
    • defaults to ops only when permissions is not present
    • autocreation of config file
    • uses NSCommand now
    Version 0.6.3:
    • bug fixed old portal names remaining after being renamed
    • All portals are now given auto-generated unique names until renamed. No more indistinguishable "null"s
    • Portals can no longer be given a non-unique name
    • Right clicking a portal gives info about it as well as selects it, in the same way walking through it does.
    Version 0.6.2
    • Updated for 617
    • Fixed broken permissions
    • Removed debug messages
    • Added permissions NetherPortal.portal.create and NetherPortal.portal.destroy so you can control who can create and destroy portals
    Version 0.6.1
    • Backward incompatible support for #602 (bukkit api changed so can't help it. You can use the previous version for #556 - nothing else changed)
    Version 0.6
    • Iconomy support: portal setcost <cost> (all portals are free when iconomy is not running) Backward compatible savefile format change to accomodate cost
    • Portals are no longer auto constructed on water, lava or any other player walkable materials
    • Portals now accepts player walkable materials as portal exits (but they will not show on indication still, which only looks for air)
    • Portals are no longer auto constructed in place of active portals (although they can still be constructed on inactive portals)
    • Fixed embarassing bug causing nonsensical indication. It should make a whole lot more sense now.
    • Fixed faulty target location is not safe messages
    • Fixed teleportation to bottom of world when using tpadjust when location is solid.
    • Fixed dropped air blocks on collapse causing client to crash
    Version 0.5.5
    • Teleportation to nonexisting world causes nullpointer exception bug (harmless but pollutes your server log) fixed
    • Portal frame corner blocks drops obsidian blocks on collapse when corner blocks are not obsidian bug fixed
    • Artificial Portal block (the workaround for bukkit portal is air block error) remaining after collapse bug fixed
    • Artificial Portal blocks configurable off by default. Put "artificialportal=true" in config.txt to turn it on.
    Version 0.5.4
    • If you die in the nether you respawn in last normal world you were in. Can be turned off by putting CFGrespinnormal=false in config.txt
    • command setspawn will set the location to current location
    Version 0.5.3
    • Permissions no longer required to have a config file
    Version 0.5.2
    • workaround for portal block said to be air (randomly stops working until server restarted - bukkit issue)
    • debug messages removed
    • fixed portal creation on too high or low altitude
    • fixed linking worlds is being only oneway
    • changed indications of 80000 to X and 70000 to _
    Version 0.5.1
    • Added alwayspunchthrough config option
    Version 0.5
    • Command for Air pocket and platform creation portals for lazy people
    • Command for teleporting to a portal
    • Configuration to adjust command based teleportation target y wise to avoid suffocation or fall damage, default is on, but can be changed in configuration file
    • Command to change the above configuration on the fly
    • Command to list all portals in current world and their locations
    • removing any block of a portal result in the portal to collapse and are thereby removed from list of registered portals
    • A portal that collapses, drops all of it obsidian blocks unless it was autocreated
    • Autocreated portal collapse when untargetted
    • Autocreated portals cannot change target
    Version 0.4
    • Symmetric Portal creation criteria
    • Portal linking feature - link individual portals
    • Configurable commands
    • Commands and permissions changed
    • World linking feature - link worlds rather than all worlds being directly accessible to each
    • worlds not saved when world created or imported fixed along with some other world related commands
    • Somewhat more useful search function for higher ratio to lower ratio worlds
    Version 0.3.2
    • fullsearch no longer teleports you but lists all locations
    • fullsearch allows specification of size and default changed to 400x400
    • proper colouring of text
    • np location displays corresponding locations in all worlds
    • indication no longer displays location
    • indication no longer displays two kinds of it
    Version 0.3.1
    • Save files to keep data on how portals are linked (needed for x8 to x1)
    • x8 to x1 auto portal creation finally working
    Version 0.3
    • workaround for "Player moved wrongly" bug.
    • moon higher up now updating every 2 hours (72 seconds your time) rather than 8
    • More output, less guessing
    • Fixed some permission names
    • Fixed always displaying indication 0 [0,0(0)] before any interaction with a newly loaded
    • Reverted to 8x8x8 rather than 8x1x8 even though it means only 1/8 of the nether is within reach of a 1x1x1 world. Since 8x1x8 makes readings make less sense.
    • Compass starts moving erratically and spin on full indication
    • np tp <world> <x> <y> <z>
    • np fullsearch <target world>
    Version 0.2
    • set ratio fixed.
    • Normal worlds have a default ratio of 1 and nether default 8.
    • Auto-created portals are now lit (apparently problems with it still)
    • Improved long range search giving readings inverse square proportional to manhattan distance
    • Eternal night in the nether - good bye blue sky!
    Version 0.1
    • Initial Release

    Donate (Not necessary but appreciated)
    Hrdkr, harakiwi and Maxwolf Goodliffe like this.
  2. Offline


    I just downloaded 5.3 and tried it with a config and it still doesn't work. I get this error still:
    2011-03-19 20:47:55 [SEVERE] Lcom/nijiko/permissions/PermissionHandler; loading NetherPortal v0.5.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: Lcom/nijiko/permissions/PermissionHandler;
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Unknown Source)
        at java.lang.Class.getDeclaredField(Unknown Source)
        at com.asdaarg.bukkit.NetherPortal.NPCommand.NPCommand_init(NPCommand.java:66)
        at com.asdaarg.bukkit.NetherPortal.NetherPortal.onEnable(NetherPortal.java:108)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
  3. Offline


    Try again, I forgot to change the link so it pointed to 0.5.2.
  4. Offline


    So far so good. Thank you.
  5. Offline


    I don't understand how to build a portal. Can someone give me a screenshot or something?
  6. Offline


    You build it just like in single player with 5x4 frame of obsidian and light it with flint and tinder.
  7. Offline



    This plugin sounds like exactly what I've been waiting for.

    I use a border in my normal world to prevent people creating new land but I've never been able to have a nether since people could teleport back outside of the border upon returning to the world. Am I right in understanding that your plugin lets you set the ratio for distance moved in the nether, so I could create the same exact border in the nether and not worry about people teleporting back into the other world outside the border?

    I'm assuming that CMD_world_ratio=world ratio is the config value that controls this, but how do I configure it?
  8. Offline


    Actually that is to configure the command so you can type something else to change the ratio. You can set the nether ratio to 1 with "world ratio nether 1" if you have named your nether "nether". Alternatively if you want to keep fast travel, you can have the border 8 times smaller in the nether.
  9. Offline


    my world border is only 2000 so it would be a pretty small nether :)

    so doing /world ratio nether 1 in game will set it to be just like the normal world?
  10. Offline


    footwo likes this.
  11. Offline


    Wonderful, thanks for the quick response :)
  12. I really like the look of this mod. The only thing that is stopping me form using it atm is the not respawning in the normal world. Once that's implemented I'll start using this. Just one question though, I already have a nether world set up. Can I just point the mod to use this world instead of generating a new one?
  13. Offline


    Yes, world create will import the world. I was going to implement the respawn in normal world thing, but forgot about it, good thing you reminded me.
  14. Offline


    Whenever half of my players (including myself) try to go into one of the extra worlds we get this error:

    2011-03-23 01:14:52 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-03-23 01:15:00 [INFO] (The Players name is here) lost connection: disconnect.overflow
    2011-03-23 01:15:02 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?

    and get disconnected within a minute of going through the portal. Any help would be much appreciated.
  15. Offline


    Never had this. Did a search and found this: http://getsatisfaction.com/mojang/t...nect_overflow_after_few_seconds_on_the_server
    Maybe it is a related problem and sending all those chunks on teleportation hogging up bandwidth. Does this occur with any other teleportation plugins?
  16. Offline


    That could very well be, I've noticed that it mainly affects the people with slower internet service. It does not happen with any other teleportation plugins though.
  17. Offline


    I try to link the world and nether with /world link world nether and I get the error "World by name world doesn't exist" even though I'm clearly in the 'world' and it shows up on the world list.

    And my portals don't work anymore...

    I guess it was because I was on Bukkit #567
  18. Offline


    Does it work with 556? I only intend to support the latest recommended build.
  19. Offline


    It works for 556 yes, but it was broken when I upgraded to 567.
  20. Offline


    Hey i have got a problem.
    If I go into a portel I get the message: The Portal refuses to teleport you!
    So can you help me please. :)
  21. Offline


    That means the corresponding location in the target world is not suitable for creation of a portal without destroying blocks and/or adding a platform. If you still want to create it there you can type: portal punch through to <world name>
  22. Offline


    Thank you very much it's works perfectly.^^
  23. Offline


    Tried 0.5.4 and after destroying one block of a portal it collapsed as expected, but walking into where the portal blocks were located still gives me the message "The Portal refuses to teleport you". This disappear if I /reload.

    Also, an idea for those who want to use the plugin as intended, i.e. no punch through: if you build a portal that'll refuse to teleport you, it could collapse right away. It's one less immersion-breaking text message, and it saves the trouble of deconstructing the portal.

    The yellow X instead of 80000 is a nice improvement by the way.
  24. Offline


    Thanks for reporting, fixed. Regarding your idea, there has to be some penalty for building a portal in the wrong place, and I've reduced that penalty 10 times already by allowing portal collapse so I think it should be ok as it is.
  25. Offline


    Just tested it, it's awesome.

    Only thing, can you add iConomy to it? and charge users to user it?
  26. Offline


    I'll see if I can do it.
  27. Offline


    /world create nether nether doesn't works on bukkit 556. Just nothing happens. Yep im in ops and have all of the permissions manually added.
    im currently works with:
    Permissions 2.5.4
    All of plugs works & they a up to date 556 build
    So im trick the plug-in and manually create an two worlds : normal & nether.
    But /world list doesn't type my new nether world.
    Then im going further.... and saw a notice in cmd about np_worlds.txt
    plugins\np_worlds.txt - should be the some kind of worlds lists?
    Im need a some kind of template.
    Maybe im just can add my nether world in list.

    Notice: i'm had a bad english. sorry... hope you understand.

    maybe a commands conflict?

    Update: yep its one of plugins conflicts with the /world command
    Im trying to change the command for the action but config.txt doesnt work.

    old /np world create was great! Why you decided to make it without /np prefix?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  28. Offline


    This plugin works great so far, no issues to report!

    A question however, how does the compass pointing work, exactly, when trying to find a spot to construct a portal? Does it just point to the nearest good location? Is this covered somewhere that I've missed?

    Thanks asdaarg!
  29. Offline


    I removed the np prefix so you don't have to type too much by default. If it conflicts with something else, then my plugin allows you to change the command: CMD_world_create=whatever
    The compass indication is a bit buggy, I finally found out, although it will be fixed in the next update. The compass gives a cold/hot indication, so walk toward bigger numbers. Try to find X. Read the first post for full explanation to get a guaranteed suitable location.
  30. Offline


  31. Offline


    I only intend to support the latest recommended version. If you have problems with it, you need to be more specific.

Share This Page