Skip to content

EndCrystal ​

class · pocketmine\item\EndCrystal · source

Extends Item

End crystal item: placed on top of obsidian or bedrock when the two blocks above are air and no entity is in the way. In the End, placing the fourth crystal around the exit portal starts the ender dragon respawn (see DragonFight::tryRespawn()).

Methods ​

onInteractBlock() ​

php
public function onInteractBlock(\pocketmine\player\Player $player, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, array &$returnedItems) : \pocketmine\item\ItemUseResult

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.