Create a new sprinkler
Sprinklers are stored in /CustomCrops/contents/sprinklers folder.
# Sprinkler key name
sprinkler_1:
# This decides the work range
# (1+1x2)²=9
# 洒水器工作范围 3x3
range: 1
# max water storage
# 最大储水量
storage: 4
# The water amount add to the pot
# 单次洒水加到种植盆的水量
water: 1
# 2/3D物品
3D-item: customcrops:sprinkler_1
2D-item: customcrops:sprinkler_1_item
# ITEM_FRAME / TRIPWIRE / ITEM_DISPLAY (1.19.4+)
# Sprinkler item type
type: ITEM_FRAME
# The sprinkler can only add water to certain pots
# 洒水器只能对指定种植盆浇水
pot-whitelist:
- default
# see how fill-method works in /CustomCrops/contents/pots/default.yml
# 请在CustomCrops/contents/pots/default.yml查看"fill-method"如何使用
fill-method:
method_1:
item: WATER_BUCKET
return: BUCKET
amount: 3
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
method_2:
item: WATER
return: GLASS_BOTTLE
amount: 1
particle: WATER_SPLASH
sound: minecraft:block.water.ambient
# The sound to play when placing
# 放置时候的声音
place-sound: minecraft:block.bone_block.place
# The hologram to show when interacting
# 交互时候产生的悬浮信息
hologram:
enable: true
# ARMOR_STAND / TEXT_DISPLAY (1.19.4+)
type: ARMOR_STAND
# vertical offset(change this according to your model size)
# 竖直方向的偏移
vertical-offset: -0.1
duration: 1
# Available placeholders:
# {water_bar} water bar image
# {current} current water
# {storage} max storage
content: '<font:customcrops:default>{water_bar}</font>'
water-bar:
left: '뀂'
full: '뀁뀃'
empty: '뀁뀄'
right: '뀁뀅'
text-display-options:
background-color: 0,0,0,0
has-shadow: false
is-see-through: false
use-default-background-color: false
text-opacity: -1
# Water splash animation when sprinkler works
# 洒水器在工作时候的洒水效果
animation:
enable: true
# in seconds
# 持续时间
duration: 10
vertical-offset: 0.4
item: customcrops:water_effect
# ARMOR_STAND / ITEM_DISPLAY (1.19.4+)
type: ARMOR_STAND
# Requirements for placing the sprinkler
requirements:
req_1:
type: permission
value: xxx.place
message: "You don't have permission to place xxx"
Last updated