mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-04 11:02:29 +00:00
Added ability to pick end crystal item (#6509)
This commit is contained in:
parent
e77f2c5198
commit
1555fa17e7
@ -28,6 +28,8 @@ use pocketmine\entity\EntitySizeInfo;
|
||||
use pocketmine\entity\Explosive;
|
||||
use pocketmine\event\entity\EntityDamageEvent;
|
||||
use pocketmine\event\entity\EntityPreExplodeEvent;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\VanillaItems;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
use pocketmine\nbt\tag\IntTag;
|
||||
@ -60,6 +62,10 @@ class EndCrystal extends Entity implements Explosive{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getPickedItem() : ?Item{
|
||||
return VanillaItems::END_CRYSTAL();
|
||||
}
|
||||
|
||||
public function showBase() : bool{
|
||||
return $this->showBase;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user