Sprinkler
/CustomCrops/contents/sprinklers/__SPRINKLER__.yml
Last updated
/CustomCrops/contents/sprinklers/__SPRINKLER__.yml
Last updated
Let take sprinkler_1
as an example to configure the sprinkler settings
Unique Identifier for Your Sprinkler:
Start by naming your sprinkler under a unique identifier like sprinkler_1
. This makes it easy to reference and customize later on.
Specify the Type of Sprinkler:
The type
parameter defines the sprinkler as FURNITURE
, distinguishing it from block-based types and allowing for more flexibility in placement.
Choose a Sprinkling Pattern and Set Range:
Decide how your sprinkler sprinkles! The working-mode
allows you to set the pattern:
1
for a square pattern
2
for a rhombus pattern (currently selected)
3
for a circular pattern
This adds a creative twist to your watering strategy!
The range
parameter specifies the reach of the sprinkler. In this example, a range of 1
covers a compact area:
Set Water Storage Capacity:
The storage
parameter determines how much water your sprinkler can hold—4
in this case. This limits how long the sprinkler can operate before needing a refill.
Decide on Unlimited or Limited Water Supply:
With infinite
set to false
, the sprinkler has a finite water supply. If you want a limitless sprinkler, change this to true
!
Control Water Usage Per Operation:
The water
and sprinkling
parameters dictate how much water is added to a pot and how much is consumed per sprinkling cycle, both set to 1
here for balanced watering.
Visual Representation of Your Sprinkler:
Use 3D-item
and 3D-item-with-water
to define how the sprinkler looks in both dry and watered states. This visual cue enhances the gameplay experience by reflecting the sprinkler’s status.
Optional 2D Model:
The 2D-item
is an optional parameter for those who prefer a simpler visual representation or when using 2D views in certain scenarios.
Whitelist for Planting Pots:
Ensure your sprinkler only works in specified pots by adding them to pot-whitelist
. The example allows the default pot type.
Define Refilling Methods:
Under fill-method
, you can get creative with how the sprinkler is refilled. For instance, using a WATER_BUCKET
returns an empty BUCKET
, and adds 3
units of water, while using a POTION
returns a GLASS_BOTTLE
and adds 1
unit.
Customize the Water Level Display:
The water-bar
section lets you create a unique visual representation of the water level with symbols. Adjust these characters to match your game's style or preferences.
Set Up Events:
Under events
, you can configure how the sprinkler responds to different player actions. Available events: break
/place
/interact
/work
/add_water
/full
/reach_limit
Set Up Requirements:
Under requirements
, you can configure the conditions player have to meet before using the sprinkler. Available events: break
/place
/use