Watering-can
/CustomCrops/contents/watering-cans/__WATERING-CAN__.yml
Let take watering_can_1
as an example to configure the watering can settings
Unique Identifier for Your Watering Can:
Start by naming your watering-can under a unique identifier like watering_can_1
. This makes it easy to reference and customize later on.
Assign a Unique Identifier:
Begin by setting a unique item
identifier for your watering can using ItemsAdder or Oraxen. For instance, watering_can_1
uniquely identifies this particular can, allowing it to be easily referenced throughout your game.
Customize the Watering Can's Appearance:
You have the option to customize how the watering can looks at different water levels. Uncomment the appearance
section and assign CustomModelData
values to visually differentiate between an empty, partially filled, or fully filled watering can. This is a great way to add visual feedback for players on the can's status.
Set the Water Capacity:
Define the maximum amount of water your watering can hold with the capacity
parameter. Here, it is set to 3
, meaning the can can store up to three units of water at a time. This capacity controls how long the can can be used before needing a refill.
Determine Water Usage per Use:
The water
parameter specifies the amount of water dispensed each time the can is used. Setting this to 1
means that each use of the watering can will consume one unit of water and add 1
unit of water to the pot.
Define the Effective Watering Range:
Customize how far the water reaches when used by setting the effective-range
parameters. Width
and length
define a rectangular area around the player where the water will be effective, in this case, a 1x1 area directly in front of the player.
Set Refill Methods:
Define how players can refill the watering can by configuring the fill-method
. In method_1
, the player can refill the can by interacting with a WATER
block (like a water source or well). The amount
specifies that each interaction adds 1
unit of water to the can. This feature allows you to create interactive water sources throughout your game world.
Specify Compatible Planting Pots:
Use the pot-whitelist
to specify which types of planting pots the watering can will work with. By listing default
, you ensure that the can is compatible with the basic pot type, but you could add more pot types for variety.
Allow Interaction with Sprinklers:
If you want your watering can to be used for filling up sprinklers, list the compatible sprinkler IDs under sprinkler-whitelist
. In this configuration, the can can fill sprinkler_1
, sprinkler_2
, and sprinkler_3
, extending its functionality.
Enable Dynamic Descriptions:
Dynamic lore adds a layer of immersion by displaying real-time information about the can's status. By enabling dynamic-lore
, the description will change based on the water level. Use placeholders like {water_bar}
to visually represent the water level, {current}
for the current water amount, and {storage}
for maximum capacity. This ensures players always know the state of their watering can at a glance.
Customize the Water Level Display Bar:
The water-bar
configuration allows you to create a unique visual indicator for the water level using custom characters. This display provides a quick and visually appealing way to check how much water is left in the can.
Set Up Events:
The events
section is where the real magic happens. Here, you define how the game responds to different interactions with the watering can. Available events: full
/add_water
/no_water
/consume_water
/wrong_pot
/wrong_sprinkler
Set Up Requirements:
Under requirements
, you can configure the conditions player have to meet before using the watering-can.
Last updated