Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

Expansion for MCItemDefinition

Additional methods for easier modification of item-related loot tables.

Methods

Adds an ILootModifier for everything that uses this item as a tool, such as block breaking.

Return Type: void

script.zs
MCItemDefinition.addToolModifier(name as string, modifier as ILootModifier) as void
ParameterTypeDescription
Parameter
name
Type
string
Description
A name for the loot modifier.
Parameter
modifier
Type
ILootModifier
Description
The loot modifier to add.