Added base examples

This commit is contained in:
DaanV2
2021-10-11 18:10:42 +02:00
parent f188cfa6ee
commit 67ccb3d2d1
134 changed files with 2414 additions and 385 deletions

View File

@@ -9,11 +9,22 @@
"type": "object",
"description": "An entity definitions that this entity can breed with.",
"additionalItems": false,
"properties": {
"baby_type": { "type": "string", "description": "The entity definition of this entity's babies.", "title": "Baby Type" },
"breed_event": { "$ref": "../types/event.json", "description": "Event to run when this entity breeds.", "title": "Breed Event" },
"mate_type": { "type": "string", "description": "The entity definition of this entity's mate.", "title": "Mate Type" }
"baby_type": {
"type": "string",
"description": "The entity definition of this entity's babies.",
"title": "Baby Type"
},
"breed_event": {
"$ref": "../types/event.json",
"description": "Event to run when this entity breeds.",
"title": "Breed Event"
},
"mate_type": {
"type": "string",
"description": "The entity definition of this entity's mate.",
"title": "Mate Type"
}
}
},
"enviroment_requirements": {
@@ -41,7 +52,11 @@
}
]
},
"count": { "type": "number", "description": "The number of the required block types nearby for the entity to breed.", "title": "Count" },
"count": {
"type": "number",
"description": "The number of the required block types nearby for the entity to breed.",
"title": "Count"
},
"radius": {
"type": "number",
"description": "How many blocks radius from the mob's center to search in for the required blocks. Bounded between 0 and 16.",
@@ -52,9 +67,13 @@
"title": "Environment Requirements"
}
},
"properties": {
"allow_sitting": { "description": "If true, entities can breed while sitting.", "type": "boolean", "default": false, "title": "Allow Sitting" },
"allow_sitting": {
"description": "If true, entities can breed while sitting.",
"type": "boolean",
"default": false,
"title": "Allow Sitting"
},
"blend_attributes": {
"description": "If true, the entities will blend their attributes in the offspring after they breed. For example, horses blend their health, movement, and jump_strength in their offspring.",
"type": "boolean",
@@ -80,15 +99,28 @@
"title": "Breed Item"
}
},
{ "type": "string", "$ref": "../../../../general/item/identifier.json" }
{
"type": "string",
"$ref": "../../../../general/item/identifier.json"
}
]
},
"breeds_with": {
"description": "The list of entity definitions that this entity can breed with.",
"title": "Breeds With",
"oneOf": [
{ "type": "object", "$ref": "#/definitions/breeds_with_spec" },
{ "uniqueItems": true, "type": "array", "items": { "type": "object", "$ref": "#/definitions/breeds_with_spec" } }
{
"type": "object",
"$ref": "#/definitions/breeds_with_spec"
},
{
"uniqueItems": true,
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/breeds_with_spec"
}
}
]
},
"deny_parents_variant": {
@@ -96,17 +128,40 @@
"description": "Determines how likely the baby of parents with the same variant will deny that variant and take a random variant within the given range instead.",
"additionalProperties": false,
"properties": {
"chance": { "type": "number", "default": 0, "description": "The percentage chance of denying the parents` variant.", "title": "Chance" },
"max_variant": { "type": "integer", "default": 0, "description": "The inclusive maximum of the variant range.", "title": "Maximum Variant" },
"min_variant": { "type": "integer", "default": 0, "description": "The inclusive minimum of the variant range.", "title": "Minimum Variant" }
"chance": {
"type": "number",
"default": 0,
"description": "The percentage chance of denying the parents` variant.",
"title": "Chance"
},
"max_variant": {
"type": "integer",
"default": 0,
"description": "The inclusive maximum of the variant range.",
"title": "Maximum Variant"
},
"min_variant": {
"type": "integer",
"default": 0,
"description": "The inclusive minimum of the variant range.",
"title": "Minimum Variant"
}
},
"title": "Deny Parents Variant"
},
"environment_requirements": {
"description": "The list of nearby block requirements to get the entity into the `love` state.",
"oneOf": [
{ "type": "object", "$ref": "#/definitions/enviroment_requirements" },
{ "type": "array", "items": { "$ref": "#/definitions/enviroment_requirements" } }
{
"type": "object",
"$ref": "#/definitions/enviroment_requirements"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/enviroment_requirements"
}
}
],
"title": "Environment Requirements"
},
@@ -184,5 +239,20 @@
"title": "Transform To Item",
"description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
}
}
},
"examples": [
{
"allow_sitting": false,
"blend_attributes": true,
"breed_cooldown": 60.0,
"deny_parents_variant": {},
"extra_baby_chance": 0.0,
"mutation_factor": {},
"causes_pregnancy": false,
"inherit_tamed": true,
"require_full_health": false,
"require_tame": true,
"transform_to_item": "example"
}
]
}