Fertilizer
/CustomCrops/contents/fertilizers/__FERTILIZER__.yml
Let take quality_1
as an example to configure the fertilizer settings
Unique Identifier for the Fertilizer:
Begin by assigning a unique identifier to each fertilizer type. In this example, the fertilizer is named quality_1
. This identifier is crucial for distinguishing between different fertilizer types in the game.
Define the Fertilizer Type and Icon:
type
: Set toQUALITY
, indicating that this fertilizer improves the quality of the crops it is applied to.icon
: Represents the visual icon that will appear in the game interface when players view or use this fertilizer. The icon '뀆' is a unique symbol that visually represents this specific fertilizer.
Available fertilizer types and their effects:
Set the Fertilizer’s Effectiveness:
chance
: This is a probability factor (set to1
here) that influences the effectiveness or success rate of the fertilizer. Adjusting this value can make the fertilizer more or less likely to produce its intended effects.times
: Specifies the duration or number of in-game ticks that the fertilizer remains effective. With a value of28
, the fertilizer will last for 28 ticking cycles, providing a sustained impact on crop growth.
Assign a Unique Item ID:
item
: The unique item IDquality_1
links this configuration to an in-game item, ensuring that when players use this item, the game recognizes it as thequality_1
fertilizer.
Specify Application Timing and Pot Compatibility:
before-plant
: Set totrue
, this parameter ensures that the fertilizer must be applied before planting any crops. It enforces strategic planning, requiring players to prepare their soil in advance.pot-whitelist
: Lists all pot types where this fertilizer can be applied. In this example, onlydefault
pots are allowed, but you can add more pot types to expand compatibility.
Set Up Events:
The events
section is where the real magic happens. Here, you define how the game responds to different interactions with the fertilizers. Available events: use
/before_plant
/wrong_pot
Set Up Requirements:
Under requirements
, you can configure the conditions player have to meet before using the fertilizer.
Last updated