Skip to content
On this page

Fabric

LootTableEvent

top.katton.api.eventfabric/src/main/kotlin/top/katton/api/event/LootTableEvent.kt
Loot table events for Fabric platform.

LootTableEvent

FabricObject
kotlin
@Suppress("unused")
object LootTableEvent

Loot 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

FabricProperty
kotlin
val onLootTableReplace

Event triggered to replace a loot table entirely.

Returns

The replacement LootTable, or null to keep the original.

LootTableEvent.onLootTableModify

FabricProperty
kotlin
val onLootTableModify

Event triggered to modify a loot table's contents. Use this to add or remove loot pool entries.

LootTableEvent.onLootTableAllLoad

FabricProperty
kotlin
val onLootTableAllLoad

Event triggered when all loot tables have been loaded. Use this for post-processing after all tables are available.

LootTableEvent.onLootTableModifyDrops

FabricProperty
kotlin
val onLootTableModifyDrops

Event triggered to modify the drops from a loot table. Use this to customize what items are actually dropped.