{
  "$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.behavior.celebrate",
  "type": "object",
  "title": "Celebrate 1.8.0",
  "description": "This allows the mob celebrate by jumping up and playing a sound periodically.",
  "additionalProperties": false,
  "properties": {
    "priority": { "$ref": "types/priority.json" },
    "celebration_sound": { "type": "string", "default": "", "description": "The sound to occasionally play.", "title": "Celebration Sound" },
    "duration": { "type": "number", "default": 1, "description": "The duration of the celebration (in seconds).", "title": "Duration" },
    "jump_interval": {
      "type": "array",
      "default": 0,
      "description": "The range of time in seconds to randomly wait before jumping again.",
      "title": "Jump Interval",
      "oneOf": [
        {
          "type": "array",
          "items": [
            { "type": "number", "title": "Maximum" },
            { "type": "number", "title": "Maximum" }
          ]
        },
        { "type": "number" }
      ]
    },
    "on_celebration_end_event": {
      "$ref": "../types/trigger.json",
      "description": "The event to trigger when the goal's duration expires.",
      "title": "On Celebration End Event"
    },
    "sound_interval": {
      "type": "array",
      "default": 0,
      "description": "The range of time in seconds to randomly wait before playing the sound again.",
      "title": "Sound Interval",
      "oneOf": [
        {
          "type": "array",
          "items": [
            { "type": "number", "title": "Maximum" },
            { "type": "number", "title": "Maximum" }
          ]
        },
        { "type": "number" }
      ]
    }
  }
}
