概览
minecraft:drying_out_timer 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 实体离开水时开始倒计时,完全干透时触发一个事件。在水中或雨中被淋湿会停止计时。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
dried_out_event | String | 无 | 计时归零时触发的事件。 |
recover_after_dried_out_event | String | 无 | 已经干透的实体重新接触到水时触发的事件。 |
stopped_drying_out_event | String | 无 | 实体被淋湿、停止变干时触发的事件。 |
total_time | Decimal | "0.0" | 实体完全干透所需的秒数。 |
water_bottle_refill_time | Decimal | "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"
}
}