Solved Custom Teleport End Gateaway

Discussion in 'Plugin Development' started by Mr. Sandwich, Jun 18, 2016.

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

    Mr. Sandwich

    Like you know in 1.9 a new portal was added to the game "End Gateaway" which takes you after you beat the Ender Dragon to the End Cities and I am trying to make my own portal with this block but I dont know how to set the End Gateaway's teleportation location, help please?
     
  2. Offline

    I Al Istannen

    @Mr. Sandwich
    Spigot has a class for this. It is called EndGateway. It is the blockstate. So do the following:
    "EndGateway gate = (EndGateway) <block>.getBlockState();"
    and then you can use EndGateway#setExitLocation(Location loc) and EndGatway#setExactTeleport(bolean).
     
  3. Offline

    Mr. Sandwich

    EDIT: it works thanks!
     
    Last edited: Jun 18, 2016
  4. Offline

    I Al Istannen

Thread Status:
Not open for further replies.

Share This Page