kotlin
@Suppress("unused")
object LootTableEventLoot table events for Fabric platform.
This object provides events related to loot table manipulation including replacing, modifying, and reacting to loot table loading.
LootTableEvent.onLootTableReplace
kotlin
val onLootTableReplaceEvent triggered to replace a loot table entirely.
Returns
The replacement LootTable, or null to keep the original.
LootTableEvent.onLootTableModify
kotlin
val onLootTableModifyEvent triggered to modify a loot table's contents. Use this to add or remove loot pool entries.
LootTableEvent.onLootTableAllLoad
kotlin
val onLootTableAllLoadEvent triggered when all loot tables have been loaded. Use this for post-processing after all tables are available.
LootTableEvent.onLootTableModifyDrops
kotlin
val onLootTableModifyDropsEvent triggered to modify the drops from a loot table. Use this to customize what items are actually dropped.