Nether Portal Creation Assistance

Discussion in 'Plugin Development' started by ferrago, Mar 4, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ferrago

    I am trying to create a 1w x 2h nether portal to use for /spawn. I want /spawn to spawn the 1 x 2 doorway for players to walk through to teleport to spawn. I know there is a PortalCreator class but it requires a net.minecraft.server.v1_7_R1.world reference and I am unsure how to obtain that specific type of world. Any help would be greatly appreciated.
     
  2. Offline

    Garris0n

    Just use relative locations to build it yourself.
     
  3. Offline

    ferrago

    I ended up doing that but couldn't get the doorway to actually spawn

    I got the location, got which direction the player is facing, but when trying to change the type of a block at the location to PORTAL, it doesn't actually spawn the portal in front of the player, in fact it doesn't spawn a portal anywhere, and no errors in the backend. This is a section of the code I'm using that actually controls the block replacement. http://pastie.org/8863152

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page