TurtleEgg 5.46.0
Extends Transparent
Turtle eggs (https://minecraft.wiki/w/Turtle_Egg): 1-4 eggs in one block, added one at a time like sea pickles. Only drop with silk touch. On sand they crack on random ticks (always around dawn, otherwise 1 in 500, like Java) and hatch after the third crack into one baby turtle per egg, whose home is the egg's position. Trampling is not implemented.
Constants
MAX_COUNT
php
public const MAX_COUNT = 4MAX_CRACKS
php
public const MAX_CRACKS = 2MIN_COUNT
php
public const MIN_COUNT = 1Properties
$count protected
php
protected int $count$cracks protected
php
protected int $cracksMethods
canBePlacedAt()
php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCount()
php
public function getCount() : intgetCracks()
php
public function getCracks() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetSilkTouchDrops()
php
public function getSilkTouchDrops(\pocketmine\item\Item $item) : arraygetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : boolonRandomTick()
php
public function onRandomTick() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetCount()
php
public function setCount(int $count) : selfsetCracks()
php
public function setCracks(int $cracks) : selfticksRandomly()
php
public function ticksRandomly() : bool