Skip to main content

Module mob_effect

Module mob_effect 

Source
Expand description

Mob-effect behaviors: one small module per vanilla MobEffect subtype under net/minecraft/world/effect.

Modulesยง

absorption ๐Ÿ”’
AbsorptionMobEffect behavior.
bad_omen ๐Ÿ”’
BadOmenMobEffect behavior.
heal_or_harm ๐Ÿ”’
HealOrHarmMobEffect behavior (Instant Health / Instant Damage).
hunger ๐Ÿ”’
HungerMobEffect behavior.
infested ๐Ÿ”’
InfestedMobEffect behavior.
oozing ๐Ÿ”’
OozingMobEffect behavior.
poison ๐Ÿ”’
PoisonMobEffect behavior.
raid_omen ๐Ÿ”’
RaidOmenMobEffect behavior.
regeneration ๐Ÿ”’
RegenerationMobEffect behavior.
saturation ๐Ÿ”’
SaturationMobEffect behavior.
weaving ๐Ÿ”’
WeavingMobEffect behavior.
wind_charged ๐Ÿ”’
WindChargedMobEffect behavior.
wither ๐Ÿ”’
WitherMobEffect behavior.

Structsยง

AbsorptionBehavior
Mirrors vanilla AbsorptionMobEffect: expires once absorption hearts run out, rather than on a duration timer.
BadOmenBehavior
Mirrors vanilla BadOmenMobEffect.
HealOrHarmBehavior
Mirrors vanilla HealOrHarmMobEffect
HungerBehavior
Mirrors vanilla HungerMobEffect.
InfestedBehavior
Mirrors vanilla InfestedMobEffect.
OozingBehavior
Mirrors vanilla OozingMobEffect.
PoisonBehavior
Mirrors vanilla PoisonMobEffect. Poison never kills: it stops dealing damage once the entityโ€™s health drops to 1.0 or below.
RaidOmenBehavior
Mirrors vanilla RaidOmenMobEffect.
RegenerationBehavior
Mirrors vanilla RegenerationMobEffect.
SaturationBehavior
Mirrors vanilla SaturationMobEffect. Only overrides applyEffectTick; applyInstantaneousEffect falls back to InstantaneousMobEffectโ€™s default forwarding, matching vanilla โ€” SaturationMobEffect doesnโ€™t override it either.
WeavingBehavior
Mirrors vanilla WeavingMobEffect.
WindChargedBehavior
Mirrors vanilla WindChargedMobEffect.
WitherBehavior
Mirrors vanilla WitherMobEffect.

Traitsยง

InstantaneousMobEffect
The instantaneous-only half of a MobEffectBehavior that also extends vanilla InstantaneousMobEffect.
MobEffectBehavior
One vanilla MobEffect subtypeโ€™s runtime behavior. Default methods match vanillaโ€™s own MobEffect base-class defaults, so an effect with no registered behavior (most of them) behaves exactly like a bare vanilla MobEffect instance.