Loot number providers
hbm:entity_enchantment_level
Reads an enchantment level from a loot-context entity.
Returns the specified enchantment's level on a living entity selected from the loot context. Returns 0 when that entity is absent or is not living. It is a context float provider. Use it directly in float fields; integer fields such as a pool's rolls read it through {"type":"minecraft:from_float","input":{...}}.
Fields
| Field | Meaning and default |
|---|---|
type | hbm:entity_enchantment_level. |
entity | Loot-context entity selector: this, attacker, direct_attacker or attacking_player. |
enchantment | Registered enchantment ID. |
Example:
A number provider reading the attacker's Looting level:
{
"type": "hbm:entity_enchantment_level",
"entity": "attacker",
"enchantment": "minecraft:looting"
}Loot, tags and advancements
NTM additions to vanilla loot and advancement data.
Vanilla data
Minecraft datapack formats used by NTM and loader-provided data.
© 2026 movblock. Original site text is licensed under CC BY-SA 4.0 unless otherwise noted. Built with Fumadocs.