Class EnchantedBlockLootEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.enchanting.EnchantedBlockLootEvent

public class EnchantedBlockLootEvent extends BlockEvent
Fired on the server when a block's loot table queries the level of an enchantment to determine what the block will drop.

Notably, this fires when ApplyBonusCount or BonusLevelTableCondition check the level of an enchantment in-context. Mods that implement similar loot conditions or functions should fire this event as well.

If you do not need the additional context of this event, prefer GetEnchantmentLevelEvent for managing enchantment levels.