Composter
Link to composter
导入类
Link to 导入类
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 Copyimport crafttweaker.api.Composter;
使用方式
Link to 使用方式
Name: setValue
Sets the compost value of the given IItemStack.
The amount should be between 0 and 1, anything above 1 would just be wasted.
Return Type: void
ZenScript Copy// Composter.setValue(stack as IItemStack, amount as float) as void
composter.setValue(<item:minecraft:diamond>, 0.85);
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IItemstack | 描述 The stack to be compostable |
参数 amount | 类型 float | 描述 The amount of Compost that should be added when the item is put in a Composter. |