Expand description
Consume-effect behaviors: one small module per vanilla ConsumeEffect
subtype under net/minecraft/world/item/consume_effects.
ModulesΒ§
- apply_
effects π ApplyStatusEffectsConsumeEffectbehavior (golden apple, poisonous potato, rotten flesh, etc.). Suspicious stewβs effect is a separate, unrelatedSuspiciousStewEffectsdata component, not this.- clear_
all_ πeffects ClearAllStatusEffectsConsumeEffectbehavior (e.g. milk bucket).- play_
sound π PlaySoundConsumeEffectbehavior (e.g. ominous bottle, viaConsumable .Builder.soundAfterConsume, sugar for this exact effect).- remove_
effects π RemoveStatusEffectsConsumeEffectbehavior (e.g. honey bottle removing Poison).- teleport_
randomly π TeleportRandomlyConsumeEffectbehavior (chorus fruit).
StructsΒ§
- Apply
Effects Behavior - Mirrors vanilla
ApplyStatusEffectsConsumeEffect.apply: unlike drinking a potion, this always goes throughLivingEntity.addEffect - Clear
AllEffects Behavior - Mirrors vanilla
ClearAllStatusEffectsConsumeEffect.apply. Carries no fields, so there is nothing to downcast for. - Play
Sound Behavior - Play sound consume effect behavior.
- Remove
Effects Behavior - Remove effects consume effect behavior.
- Teleport
Randomly Behavior - Teleport randomly consume effect behavior.
TraitsΒ§
- Consume
Effect Behavior - Behavior for one kind of item consume effect, such as applying, clearing, or removing status effects, playing a sound, or randomly teleporting the consumer.
FunctionsΒ§
- apply_
consume_ πeffect - Applies one
ConsumeEffectDataentry from aConsumable.on_consume_effectslist, by looking up its registered behavior.