1. Wiki
  2. /实体
  3. /minecraft:drying_out_timer

minecraft:drying_out_timer

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:drying_out_timer。Get GodCraft

概览

minecraft:drying_out_timer 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 实体离开水时开始倒计时,完全干透时触发一个事件。在水中或雨中被淋湿会停止计时。

字段

字段类型默认值说明
dried_out_eventString无计时归零时触发的事件。
recover_after_dried_out_eventString无已经干透的实体重新接触到水时触发的事件。
stopped_drying_out_eventString无实体被淋湿、停止变干时触发的事件。
total_timeDecimal"0.0"实体完全干透所需的秒数。
water_bottle_refill_timeDecimal"0.0"喷溅型水瓶命中实体时额外增加的秒数。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:drying_out_timer": {
    "dried_out_event": "",
    "recover_after_dried_out_event": "",
    "stopped_drying_out_event": "",
    "total_time": "0.0",
    "water_bottle_refill_time": "0.0"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more