# 处理与洒水壶相关的各种动作的事件设置
events:
# 当洒水壶中没有水时触发的事件
no_water:
sound_action:
type: sound
value:
key: "minecraft:item.bundle.insert" # 播放的声音
source: 'player' # 声音来源
volume: 1
pitch: 1
actionbar_action:
type: actionbar
value: '<red><bold>[X] 水已用完' # 在动作栏显示的消息
# 当洒水壶中的水被消耗时触发的事件
consume_water:
sound_action:
type: sound
value:
key: "minecraft:block.water.ambient" # 水被消耗时的声音
source: 'player'
volume: 1
pitch: 1
actionbar_action:
type: actionbar
value: '<font:customcrops:default>{water_bar}</font>' # 显示更新后的水位条
# 当洒水壶中添加水时触发的事件
add_water:
particle_action:
type: particle
value:
particle: WATER_SPLASH # 添加水时的粒子效果
x: 0.5
y: 1.3
z: 0.5
count: 5
sound_action:
type: sound
value:
key: "minecraft:item.bucket.empty" # 补水时播放的声音
source: 'player'
volume: 1
pitch: 1
actionbar_action:
type: actionbar
value: '<font:customcrops:default>{water_bar}</font>' # 更新水位条显示