Skip to content

BaneOfArthropodsEnchantment 5.46.0 ​

class · pocketmine\item\enchantment\BaneOfArthropodsEnchantment · source

Extends MeleeWeaponEnchantment

Bane of Arthropods: 2.5 extra damage per level against spiders, cave spiders, bees, silverfish and endermites, which also get Slowness IV for 1 to 1.5 seconds per level (vanilla: 20 + random(10 * level) ticks).

Methods ​

getDamageBonus() ​

php
public function getDamageBonus(int $enchantmentLevel) : float

isApplicableTo() ​

php
public function isApplicableTo(\pocketmine\entity\Entity $victim) : bool

onPostAttack() ​

php
public function onPostAttack(\pocketmine\entity\Entity $attacker, \pocketmine\entity\Entity $victim, int $enchantmentLevel) : void

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