SwellGoal 5.46.0
Extends Goal
Creepers start their fuse when their target comes within 2.5 blocks and defuse when it gets farther than 6 blocks or out of sight (vanilla behavior.swell).
Properties
$creeper
php
public \pocketmine\entity\monster\Creeper $creeper$startDistance
php
public float $startDistance$stopDistance
php
public float $stopDistanceMethods
__construct()
php
public function __construct(\pocketmine\entity\monster\Creeper $creeper, float $startDistance = 2.5, float $stopDistance = 6.0)canStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void