Composter
Link to composter
Importare la Classe
Link to importare-la-classe
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.misc.Composter;
Metodi
Link to metodi
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.
ZenScript Copy// Composter.setValue(stack as IItemStack, amount as float)
composter.setValue(<item:minecraft:diamond>, 0.85);
Parametro | Tipo | Descrizione |
---|---|---|
Parametro stack | Tipo IItemStack | Descrizione The stack to be compostable |
Parametro amount | Tipo float | Descrizione The amount of Compost that should be added when the item is put in a Composter. |