Skip to main content

On Btcmob Despawn

When a BTCMob despawns without being killed by a player.

The BTCMob Despawn Event is triggered when a tracked BTCMob leaves the world for good without being killed (natural despawn, removal by a plugin, transformation, falling out of the world...). It does not fire for a death (see BTCMob Death Event), nor when the mob's chunk merely unloads: the mob is adopted again when the chunk loads back, so it has not left. ## How could this be used? Clean up boss-fight state, or reset a fact when a timed-out mob disappears before being defeated. Since despawning isn't tied to a single player, this triggers for every online player within [radius] blocks of the despawn location.

Fields

FieldTypeDefaultDescription
mobNameString—Only trigger when a specific mob despawns. Empty = any BTCMob.Regex
radiusDouble64.0Only trigger for players within this many blocks of the despawn location.
Common TypeWriter fields (triggers)
FieldTypeDefaultDescription
triggersList<Ref<TriggerableEntry>>empty—