Create a new yml file in the /contents/sprinklers directory to add a new sprinkler. Of course, you can also modify it based on default.yml.
Available event triggers for sprinkler:
work: When the sprinkler starts working
add_water: When players successfully add water to the pot
reach_limit: When the amount of sprinklers reached the limitation
break: When players break the sprinkler
place: When players place the sprinkler
interact: When players interact the sprinkler
# IDsprinkler_1:# This decides the work range# □□□# □■□# □□□range:1# Maximum water storage capacitystorage:5# Unlimited water sourceinfinite:false# Amount of water added in a single sprinklingwater:1# Basic 3d model3D-item:sprinkler_1# If you want to create a sprinkler which has two states(has water / no water)# 3D-item-with-water: xxx_sprinkler_1# Optional 2d model2D-item:sprinkler_1_item# ITEM_FRAME / TRIPWIRE / ITEM_DISPLAY (1.19.4+)type:ITEM_FRAME# Sprinklers only work in specified planting potspot-whitelist: - default# Methods to fill the sprinklerfill-method:# The name of the method, it's totally customizedmethod_1:# The item to useitem:WATER_BUCKET# The amount of item to useitem-amount:1# The item returned (Optional)return:BUCKET# The amount of item to returnreturn-amount:1# Requirements for this fill methodrequirements: {}# The amount of water to addamount:3method_2:item:POTIONreturn:GLASS_BOTTLEamount:1# Water bar image settingswater-bar:left:'뀂'full:'뀁뀃'empty:'뀁뀄'right:'뀁뀅'# Event settingsevents:place:swing_hand_action:type:swing-handvalue:truesound_action:type:soundvalue:source:playerkey:minecraft:block.bone_block.placevolume:1pitch:1interact:force_work_action:type:conditionalvalue:conditions:requirement_1:type:sneakvalue:trueactions:action_1:type:force-tickhologram_action:type:hologramvalue:text:'<font:customcrops:default>{water_bar}</font>'duration:40x:0.5y:-0.3z:0.5visible-to-all:falsework:fake_item_action:type:fake-itemvalue:item:customcrops:water_effectduration:100x:0.5y:0.4z:0.5visible-to-all:trueadd_water:particle_action:type:particlevalue:particle:WATER_SPLASHx:0.5y:0.7z:0.5count:5sound_action:type:soundvalue:key:"minecraft:item.bucket.empty"source:'player'volume:1pitch:1