Entity Documentation - minecraft:behavior.celebrate
minecraft:behavior.celebrate
allows this entity to celebrate by making celebration sounds and jumping.
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": {
"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"
}
}
}
Vanilla entities examples
villager
"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"
}
}
Vanilla entities using celebrate
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示