1. Wiki
  2. /Entities
  3. /minecraft:celebrate_hunt

minecraft:celebrate_hunt

Don't want to write this by hand? GodCraft sets minecraft:celebrate_hunt for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
broadcastBoolean"true"If true, nearby entities join the celebration too.
celeberation_targetsMinecraft FilternoneConditions the killed target must match to start a celebration.
celebrate_soundStringnoneSound played while celebrating.
durationInteger"4"How many seconds the celebration lasts.
radiusDecimal"16"Distance in blocks used to tell other entities to celebrate when broadcasting.
sound_intervalRange [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"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more