Skip to content

RaidOmenEffect 5.46.0 ​

class · pocketmine\entity\effect\RaidOmenEffect · source

Extends Effect

Raid Omen (Bedrock "raid_omen", 1.21+): a player with Bad Omen who enters a village gets Raid Omen for 30 seconds instead; when it runs out, a raid starts in that village (see \pocketmine\world\raid\RaidManager). Removing it early (milk, death) cancels the raid.

Constants ​

DURATION ​

php
public const DURATION = 600

Duration given when Bad Omen turns into Raid Omen (30 seconds).

Methods ​

remove() ​

php
public function remove(\pocketmine\entity\Living $entity, \pocketmine\entity\effect\EffectInstance $instance) : void

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