EndGatewayTravel 5.46.0
Takes players through End gateways (and the owners of ender pearls thrown into one) to the gateway's exit.
A gateway without an exit in the End (the ones the dragon fight spawns) finds one the first time it is used, see EndGateways; the exit gateway built there leads back. A gateway without block entity data (the return gateways the vanilla generator places on the outer islands) leads to the End spawn platform, like vanilla's end_gateway_return.
Constants
COOLDOWN_TICKS
php
public const COOLDOWN_TICKS = 40Ticks an entity must wait before using a gateway again (vanilla's gateway cooldown).
RETURN_GATEWAY_MIN_DISTANCE
php
public const RETURN_GATEWAY_MIN_DISTANCE = 256Gateways without block entity data at least this far from 0,0 lead to the End spawn platform.
Methods
__construct()
php
public function __construct()onEntityInsideGateway()
php
public function onEntityInsideGateway(\pocketmine\entity\Entity $entity, \pocketmine\math\Vector3 $gatewayPos) : voidCalled every tick an entity is inside a gateway block.
