public function targetOption(Creature $creature, float $distance) : bool { if ($creature instanceof Player) { return $creature->spawned && $creature->isAlive() && !$creature->closed && $creature->getInventory()->getItemInHand()->getId() == Item::WHEAT && $distance <= 49; } return false; }
public function targetOption(Creature $creature, float $distance) : bool { if (!$creature instanceof Player) { return $creature->isAlive() && $distance <= 60; } return false; }
public function targetOption(Creature $creature, float $distance) : bool { if ($creature instanceof Player) { return $creature->spawned && $creature->isAlive() && !$creature->closed && $creature->isSurvival() && $distance <= 200; } return $creature->isAlive() && !$creature->closed && $distance <= 200; }