Skip to main content

Module conditions

Module conditions 

Source

Structsยง

BlockPredicate
Predicate for checking block properties.
DamageSourcePredicate
Predicate for checking damage source properties.
DamageTagPredicate
A tag check for damage source.
EntityEquipment
Entity equipment predicate
EntityFlags
Entity flags (is_on_fire, is_sneaking, etc.)
EntityPredicate
Predicate for checking entity properties.
LocationPredicate
Predicate for checking location/block properties.
PropertyCheck
A property check for block state conditions.

Enumsยง

EnchantedChance
Enchanted chance calculation method.
LootCondition
A condition that must be met for a loot entry or pool to apply.
ToolPredicate
Predicate for matching tools.

Functionsยง

damage_source_has_tag ๐Ÿ”’
slot_predicate_matches ๐Ÿ”’
tool_enchantment_matches ๐Ÿ”’