Entity Documentation - minecraft:behavior.celebrate_survive
minecraft:behavior.celebrate_survive
compels this entity to celebrate surviving a raid by shooting fireworks.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
celebration_sound | String | The sound event to trigger during the celebration. | |
duration | 30.000000 | Decimal | The duration in seconds that the celebration lasts for. |
jump_interval | [1, 3.5] | Range [a, b] | Minimum and maximum time between jumping (positive, in seconds). |
on_celebration_end_event | Trigger | The event to trigger when the goal's duration expires. | |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
sound_interval | [2, 7] | Range [a, b] | Minimum and maximum time between sound events (positive, in seconds). |
Example
"minecraft:celebrate_survive": {
"minecraft:behavior.celebrate_survive": {
"priority": 5,
"celebration_sound": "celebrate_survive",
"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"
}
}
}
Vanilla entities examples
villager
"minecraft:behavior.celebrate_survive": {
"priority": 5,
"celebration_sound": "celebrate_survive",
"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"
}
}
Vanilla entities using celebrate_survive
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈