movblock.mov
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

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