Entity Documentation - minecraft:heartbeat
minecraft:heartbeat
defines the entity's heartbeat.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
interval | 1.00 | Molang | A Molang expression defining the inter-beat interval in seconds. A value of zero or less means no heartbeat. |
sound_event | heartbeat | String | Level sound event to be played as the heartbeat sound. |
Example
"minecraft:heartbeat": {
"interval": "2.0 - math.clamp(query.anger_level / 80 * 1.5, 0, 1.5)"
}
Vanilla entities examples
warden
"minecraft:heartbeat": {
"interval": "2.0 - math.clamp(query.anger_level / 80 * 1.5, 0, 1.5)"
}
Vanilla entities using minecraft:heartbeat
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for