Initial Commit
This commit is contained in:
100
behaviour/entities/1.16.0/components/minecraft.spawn_entity.json
Normal file
100
behaviour/entities/1.16.0/components/minecraft.spawn_entity.json
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behaviour.entities.1.16.0.minecraft.spawn_entity",
|
||||
"type": "object",
|
||||
"description": "Adds a timer after which this entity will spawn another entity or item (similar to vanilla's chicken's egg-laying behavior).",
|
||||
"title": "Spawn entity 1.16.0",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"definitions": {
|
||||
"entity_spawn": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"title": "Entity spawn",
|
||||
"properties": {
|
||||
"filters": {
|
||||
"description": "If present, the specified entity will only spawn if the filter evaluates to true",
|
||||
"$ref": "../filters.json"
|
||||
},
|
||||
"max_wait_time": {
|
||||
"type": "integer",
|
||||
"default": 600,
|
||||
"description": "Maximum amount of time to randomly wait in seconds before another entity is spawned.",
|
||||
"title": "Max wait time"
|
||||
},
|
||||
"min_wait_time": {
|
||||
"type": "integer",
|
||||
"default": 300,
|
||||
"description": "Minimum amount of time to randomly wait in seconds before another entity is spawned.",
|
||||
"title": "Min wait time"
|
||||
},
|
||||
"num_to_spawn": {
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
"description": "The number of entities of this type to spawn each time that this triggers.",
|
||||
"title": "Num to spawn"
|
||||
},
|
||||
"should_leash": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If true, this the spawned entity will be leashed to the parent.",
|
||||
"title": "Should leash"
|
||||
},
|
||||
"single_use": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If true, this component will only ever spawn the specified entity once.",
|
||||
"title": "Single use"
|
||||
},
|
||||
"spawn_entity": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "Identifier of the entity to spawn, leave empty to spawn the item defined above instead.",
|
||||
"title": "Spawn entity"
|
||||
},
|
||||
"spawn_event": {
|
||||
"type": "string",
|
||||
"default": "minecraft:entity_born",
|
||||
"description": "Event to call when the entity is spawned.",
|
||||
"title": "Spawn event"
|
||||
},
|
||||
"spawn_item": {
|
||||
"type": "string",
|
||||
"default": "egg",
|
||||
"description": "Item identifier of the item to spawn.",
|
||||
"title": "Spawn item"
|
||||
},
|
||||
"spawn_method": {
|
||||
"type": "string",
|
||||
"default": "born",
|
||||
"description": "Method to use to spawn the entity.",
|
||||
"title": "Spawn method"
|
||||
},
|
||||
"spawn_sound": {
|
||||
"type": "string",
|
||||
"default": "plop",
|
||||
"description": "Identifier of the sound effect to play when the entity is spawned.",
|
||||
"title": "Spawn sound"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"entities": {
|
||||
"title": "Entities",
|
||||
"description": "UNDOCUMENTATED",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/entity_spawn"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/entity_spawn"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user