The main entry point for everything loot related.

This entry point can be obtained via the loot global in scripts and allows you to manipulate everything related to loot or query loot tables.

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.loot.LootManager;

LootManager is an enum. It has 1 enum constants. They are accessible using the code below.

ZenScript
Copy
LootManager.INSTANCE
名称类型可获得可设置描述
名称
modifiers
类型
LootModifierManager
可获得
true
可设置
false
描述
Gets the loot modifiers manager.

Refer to LootModifierManager for additional info.
名称
tables
类型
LootTableManager
可获得
true
可设置
false
描述
Gets the loot table manager.

Refer to LootTableManager for additional info.