Expansion for MCItemDefinition
Link to expansion-for-mcitemdefinition
Additional methods for easier modification of item-related loot tables.
使用方式
Link to 使用方式
Name: addToolModifier
Adds an ILootModifier for everything that uses this item as a tool, such as block breaking.
Return Type: void
ZenScript CopyMCItemDefinition.addToolModifier(name as string, modifier as ILootModifier) as void
参数 | 类型 | 描述 |
---|---|---|
参数 name(名称) | 类型 string | 描述 A name for the loot modifier. |
参数 modifier | 类型 ILootModifier | 描述 The loot modifier to add. |