Skip to main content

Module potion_contents

Module potion_contents 

Source
Expand description

Vanilla PotionContents behavior extension: the methods that need LivingEntity/World, which canโ€™t live alongside the data in steel_registry::data_components::PotionContents.

Functionsยง

apply_potion_contents ๐Ÿ”’
to_runtime_instance ๐Ÿ”’
Builds the runtime active-effect state for one registry mob-effect instance, ready to hand to LivingEntity::add_mob_effect.
to_runtime_instance_icon_from_visibility ๐Ÿ”’
Reproduces MC-276746: splash potions use show_particles for show_icon