Skip to content

FrogSpawn 5.46.0 ​

class · pocketmine\block\FrogSpawn · source

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) : bool

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

hatch() ​

php
public function hatch() : void

Removes the frogspawn and releases 2-6 tadpoles in the water below.

onRandomTick() ​

php
public function onRandomTick() : void

ticksRandomly() ​

php
public function ticksRandomly() : bool

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