Files
minecraft-bedrock-json-schemas/source/behaviour/entities/1.8.0/behaviors/minecraft.behavior.summon_entity.json
2021-02-01 18:39:12 +01:00

137 lines
5.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.8.0.minecraft.behavior.stay_while_sitting",
"description": "Allows the mob to attack the player by summoning other entities.",
"title": "Stay while sitting 1.8.0",
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"priority": { "$ref": "./types/base_priority.json" },
"summon_choices": {
"type": "array",
"description": "List of spells for the mob to use to summon entities. Each spell has the following parameters:",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"cast_duration": {
"type": "number",
"description": "Time in seconds the spell casting will take"
},
"cooldown_time": {
"type": "number",
"default": 0,
"description": "Time in seconds the mob has to wait before using the spell again"
},
"do_casting": {
"type": "boolean",
"default": true,
"description": "If true, the mob will do the casting animations and render spell particles"
},
"filters": {
"$ref": "../filters.json"
},
"max_activation_range": {
"type": "number",
"default": -1,
"description": "Upper bound of the activation distance in blocks for this spell"
},
"min_activation_range": {
"type": "number",
"default": 1,
"description": "Lower bound of the activation distance in blocks for this spell"
},
"particle_color": {
"description": "The color of the particles for this spell",
"title": "Particle color",
"oneOf": [
{
"type": "integer",
"default": 0
},
{
"type": "string",
"format": "color-hex"
}
]
},
"sequence": {
"type": "array",
"description": "List of steps for the spell. Each step has the following parameters:",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"base_delay": {
"type": "number",
"default": 0,
"description": "Amount of time in seconds to wait before this step starts"
},
"delay_per_summon": {
"type": "number",
"default": 0,
"description": "Amount of time in seconds before each entity is summoned in this step"
},
"entity_lifespan": {
"type": "number",
"default": -1,
"description": "Amount of time in seconds that the spawned entity will be alive for. A value of -1.0 means it will remain alive for as long as it can"
},
"entity_type": {
"type": "string",
"description": "The entity type of the entities we will spawn in this step"
},
"num_entities_spawned": {
"type": "integer",
"default": 1,
"description": "Number of entities that will be spawned in this step"
},
"shape": {
"type": "string",
"default": "line",
"description": "The base shape of this step. Valid values are circle and line"
},
"size": {
"type": "number",
"default": 1,
"description": "The base size of the entity"
},
"sound_event": {
"type": "string",
"description": "The sound event to play for this step"
},
"summon_cap": {
"type": "integer",
"default": 0,
"description": "Maximum number of summoned entities at any given time"
},
"summon_cap_radius": {
"type": "number",
"default": 0,
"description": ""
},
"target": {
"type": "string",
"default": "self",
"description": "The target of the spell. This is where the spell will start (line will start here, circle will be centered here)"
}
}
}
},
"start_sound_event": {
"type": "string",
"description": "The sound event to play when using this spell"
},
"weight": {
"type": "number",
"default": 0,
"description": "The weight of this spell. Controls how likely the mob is to choose this spell when casting one"
}
}
},
"title": "TODO title"
}
}
}