Composter
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.
import crafttweaker.api.misc.Composter;
Description
Members
setValue(stack as IItemStack, amount as float)
Sets the compost value of the given IItemStack.
The amount should be between 0 and 1, anything above 1 would just be wasted.script.zs
The amount should be between 0 and 1, anything above 1 would just be wasted.
myCTComposter.setValue(<item:minecraft:diamond>, 0.85);
Parameters:
amount: float
Type: float
- The amount of Compost that should be added when the item is put in a Composter.