Home Commands Examples Getting Started With Scripts Global Keywords
Generic Recipe Manipulation

BasicFertilizer

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.

script.zs
import mods.botanypotstweaker.fertilizer.BasicFertilizer;

Extends

BasicFertilizer extends Fertilizer.

Implements

BasicFertilizer implements the following interfaces:

Recipe<Container>

Members

Getter
Gets the crop that this fertilizer works with.
script.zs
// BasicFertilizer.cropIngredient as IIngredient
myBasicFertilizer.cropIngredient

Return Type: IIngredient

Getter
Gets the actual fertilizer ingredient, held by the hand.
script.zs
// BasicFertilizer.ingredient as IIngredient
myBasicFertilizer.ingredient

Return Type: IIngredient

Getter
Gets the maximum amount of ticks that will be added to the growth
script.zs
// BasicFertilizer.maxTicks as int
myBasicFertilizer.maxTicks

Return Type: int

Getter
Gets the minimum amount of ticks that will be added to the growth
script.zs
// BasicFertilizer.minTicks as int
myBasicFertilizer.minTicks

Return Type: int

static of(id as ResourceLocation, ingredient as IIngredient, minTicks as int, maxTicks as int, cropIngredient as IIngredient = null, soilIngredient as IIngredient = null) as BasicFertilizer
Creates a new BasicFertilizer
script.zs
// BasicFertilizer.of(id as ResourceLocation, ingredient as IIngredient, minTicks as int, maxTicks as int, cropIngredient as IIngredient = null, soilIngredient as IIngredient = null) as BasicFertilizer;
BasicFertilizer.of(<resource:crafttweaker:fertilizer_test>, <item:minecraft:diamond>, 20, 40, null, <item:minecraft:dirt>);

Parameters:

id Type: ResourceLocation - The ID of the fertilizer.
ingredient Type: IIngredient - The item that triggers the fertilization.
minTicks Type: int - The minimum amount of ticks that the fertilizer applies.
maxTicks Type: int - The maximum amount of ticks that the fertilizer applies.
cropIngredient (optional) Type: IIngredient - The ingredient for the crop that the fertilizer affects.

Default Value: null

soilIngredient (optional) Type: IIngredient - The ingredient for the soil that the fertilizer affects.

Default Value: null

Return Type: BasicFertilizer

Getter
Gets the soil that this fertilizer works with.
script.zs
// BasicFertilizer.soilIngredient as IIngredient
myBasicFertilizer.soilIngredient

Return Type: IIngredient