Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

LootManager

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.loot.LootManager;

Description

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.

Members

Getter
Gets the loot modifiers manager.

Refer to LootModifierManager for additional info.

script.zs
// LootManager.modifiers as LootModifierManager
myLootManager.modifiers

Return Type: LootModifierManager

Getter
Gets the loot table manager.

Refer to LootTableManager for additional info.

script.zs
// LootManager.tables as LootTableManager
myLootManager.tables

Return Type: LootTableManager