1. Wiki
  2. /Entities
  3. /minecraft:drying_out_timer

minecraft:drying_out_timer

Don't want to write this by hand? GodCraft sets minecraft:drying_out_timer for you with a switch.Get GodCraft

Overview

minecraft:drying_out_timer is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Counts down while the entity is out of water and fires an event when it is fully dried out. Getting wet in water or rain stops the timer.

Fields

FieldTypeDefaultDescription
dried_out_eventStringnoneEvent fired when the timer reaches zero.
recover_after_dried_out_eventStringnoneEvent fired when a dried out entity gets water again.
stopped_drying_out_eventStringnoneEvent fired when the entity gets wet and stops drying.
total_timeDecimal"0.0"Seconds until the entity is fully dried out.
water_bottle_refill_timeDecimal"0.0"Extra seconds added when a splash water bottle hits the entity.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

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