minecraft:behavior.celebrate

Allows this entity to celebrate surviving a raid by making celebration sounds and jumping.

Properties

PropertyTypeDefaultWhat it does
durationDecimalmin 030The duration in seconds that the celebration lasts for.
celebration_soundTextitem.use.on, hit, step, step.baby, fly, jump, jump.prevent, break, place, heavy.step, gallop, fall, hurt, hurt.baby, hurt.in.water, death, death.baby, death.in.water, death.to.zombie, ambient, ambient.baby, ambient.in.water, ambient.in.air, ambient.tame …"celebrate"The sound event to trigger during the celebration.
sound_intervalObject{"max": 7, "min": 2}Minimum and maximum time between sound events (positive, in seconds).
minDecimal0
maxDecimal0
jump_intervalObject{"max": 3.5, "min": 1}Minimum and maximum time between jumping (positive, in seconds).
minDecimal0
maxDecimal0
on_celebration_end_eventObject{"event": "", "filters": {"AND": null, "NOT": null, "OR":…The event to trigger when the goal's duration expires.
eventText""
targetTextself, other, player, target, parent, baby, block, damager, holder, item"self"
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Ravager uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.celebrate": {
    "priority": 5,
    "celebration_sound": "celebrate",
    "sound_interval": {
      "range_min": 2.0,
      "range_max": 7.0
    },
    "jump_interval": {
      "range_min": 1.0,
      "range_max": 3.5
    },
    "duration": 30.0,
    "on_celebration_end_event": {
      "event": "minecraft:stop_celebrating",
      "target": "self"
    }
  }
}

Used by 5

Vanilla entities with minecraft:behavior.celebrate in their definition:

Related components