Skip to main content

Module living_entity

Module living_entity 

Source

TraitsΒ§

LivingEntity
A trait for living entities that can take damage, heal, and die.

FunctionsΒ§

death_loot_items_with_rng πŸ”’
living_entity_loot_ref πŸ”’
random_teleport_ground_y πŸ”’
Walks down from y until standing on a block that blocks motion, mirroring the descent loop in vanilla Entity.randomTeleport. Returns None if the world’s floor is reached without finding solid ground.
shearing_loot_items_with_rng πŸ”’
Runs vanilla LivingEntity.dropFromShearingLootTable for loot_table, returning the drops resolved with the vanilla shearing loot params (origin, entity, tool).