movblock.mov
Loot number providers

hbm:entity_enchantment_level

Reads an enchantment level from a loot-context entity.

since NTM 1.0.2Applies to NTM 1.0.2, 1.0.3, 1.0.4.Shown because All revisions is selected.

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 can supply a pool's rolls or any other loot-table field accepting a vanilla number provider.

Fields

FieldMeaning and default
typehbm:entity_enchantment_level.
entityLoot-context entity selector: this, attacker, direct_attacker or attacking_player.
enchantmentRegistered enchantment ID.

Example:

A number provider reading the attacker's Looting level:

{
  "type": "hbm:entity_enchantment_level",
  "entity": "attacker",
  "enchantment": "minecraft:looting"
}

© 2026 movblock. Original site text is licensed under CC BY-SA 4.0 unless otherwise noted. Built with Fumadocs.

On this page