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

minecraft:heartbeat

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

Overview

minecraft:heartbeat is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Plays a heartbeat sound on a repeating timer, like the warden.

Fields

FieldTypeDefaultDescription
intervalMolang"1.00"Molang expression giving seconds between beats; 0 or less turns the heartbeat off.
sound_eventString"heartbeat"Sound played for each beat.

Example

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

BP/entities/<name>.json
{
  "minecraft:heartbeat": {
    "interval": "1.00",
    "sound_event": "heartbeat"
  }
}

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