FrogSpawn 5.46.0
Extends Flowable
Frog spawn (https://minecraft.wiki/w/Frogspawn): floats on top of water like a lily pad, has no collision and drops nothing, even with silk touch. Hatches into 2-6 tadpoles: vanilla takes 3600-12000 ticks; here each random tick has a 1 in 4 chance (a block gets a random tick every ~1365 ticks on average, so ~5500 ticks).
Methods
canBePlacedAt()
php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : boolgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arrayhatch()
php
public function hatch() : voidRemoves the frogspawn and releases 2-6 tadpoles in the water below.
onRandomTick()
php
public function onRandomTick() : voidticksRandomly()
php
public function ticksRandomly() : bool