minecraft:behavior.celebrate_survive
Allows the player to trade with this mob. When the goal starts, it will stop the mob's navigation.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
duration | Decimal | 30 | The duration in seconds that the celebration lasts for. |
fireworks_interval | Object | {"max": 20, "min": 10} | Minimum and maximum time between firework (positive, in seconds). |
min | Decimal | 0 | |
max | Decimal | 0 | |
on_celebration_end_event | Object | {"event": "", "filters": {"AND": null, "NOT": null, "OR":… | The event to trigger when the goal's duration expires. |
event | Text | "" | |
target | Textself, other, player, target, parent, baby, block, damager, holder, item | "self" | |
filters | Object 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. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Villager uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.celebrate_survive": {
"duration": 30,
"fireworks_interval": {
"range_max": 7,
"range_min": 2
},
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
},
"priority": 5
}
}Used by 2
Vanilla entities with minecraft:behavior.celebrate_survive in their definition:
Related components
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.mount_pathingbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.follow_ownerbehavior.stay_while_sittingbehavior.look_at_trading_playerbehavior.random_look_around_and_sitbehavior.take_flowerbehavior.trade_with_playerbehavior.controlled_by_playerbehavior.follow_caravanbehavior.follow_mobbehavior.make_lovebehavior.ocelot_sit_on_blockbehavior.playbehavior.receive_lovebehavior.share_itemsbehavior.trade_interestbehavior.admire_item