Class LootTableLoadEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.LootTableLoadEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class LootTableLoadEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
Fired when a LootTable is loaded from JSON. Can be used to modify the loot table, cancel loading it, or outright replace it. This event is currently fired for all loot tables coming from vanilla, mods, and user datapacks. This event is fired whenever server resources are loaded or reloaded.

This event is cancellable, and does not

invalid reference
have a result
. If the event is cancelled, the loot table will be made empty.

This event is fired on the main Forge event bus, only on the logical server.