minecraft:celebrate_hunt for you with a switch.Get GodCraftOverview
minecraft:celebrate_hunt is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Makes the mob celebrate after it kills a target, like piglins dancing after a hunt.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
broadcast | Boolean | "true" | If true, nearby entities join the celebration too. |
celeberation_targets | Minecraft Filter | none | Conditions the killed target must match to start a celebration. |
celebrate_sound | String | none | Sound played while celebrating. |
duration | Integer | "4" | How many seconds the celebration lasts. |
radius | Decimal | "16" | Distance in blocks used to tell other entities to celebrate when broadcasting. |
sound_interval | Range [a, b] | "0" | Random wait in seconds between celebration sounds. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:celebrate_hunt": {
"broadcast": "true",
"celeberation_targets": {},
"celebrate_sound": "",
"duration": "4",
"radius": "16",
"sound_interval": "0"
}
}