This commit is contained in:
DaanV2
2021-04-04 13:52:35 +02:00
parent f23e8aae6b
commit 75bd662053
952 changed files with 1050 additions and 1026 deletions

View File

@@ -0,0 +1,8 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entities.components1.11.0",
"type": "object",
"title": "Entity 1.11.0",
"$ref": "../1.10.0/components.json",
"description": "TODO description"
}

View File

@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entity1.10.0",
"type": "object",
"title": "behavior Entity 1.11.0",
"description": "TODO description",
"required": ["format_version", "minecraft:entity"],
"properties": {
"format_version": {
"title": "1.11.0 Format Version",
"type": "string",
"const": "1.11.0",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "TODO description: minecraft:entity", "title": "Entity" }
},
"additionalProperties": false
}

View File

@@ -0,0 +1,79 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entities.events1.11.0",
"type": "object",
"title": "Entity 1.11.0",
"definitions": {
"addremove": {
"additionalProperties": false,
"title": "Add/remove Schema",
"description": "The components groups to add or remove",
"type": "object",
"properties": {
"component_groups": {
"title": "Component Groups Schema",
"description": "The components groups to add or remove",
"type": "array",
"items": { "type": "string", "description": "TODO description: component groups", "title": "Component Groups" }
}
}
},
"event_base": {
"additionalProperties": false,
"type": "object",
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "TODO description: add", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "TODO description: remove", "title": "Remove" },
"randomize": {
"type": "array",
"items": {
"required": ["weight"],
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "TODO description: add", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "TODO description: remove", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "UNDOCUMENTATED" },
"weight": { "type": "number", "description": "TODO description: weight", "title": "Weight" }
},
"description": "TODO description: randomize",
"title": "Randomize"
},
"description": "TODO description: randomize",
"title": "Randomize"
},
"sequence": {
"type": "array",
"items": {
"description": "TODO description: sequence",
"title": "Sequence",
"type": "object",
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "TODO description: add", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "TODO description: remove", "title": "Remove" },
"filters": { "$ref": "./filters.json" }
}
},
"description": "A series of filters and components to be added",
"title": "Sequences"
},
"filters": { "$ref": "./filters.json" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "UNDOCUMENTATED" }
}
}
},
"properties": {
"minecraft:entity_transformed": {
"description": "Event called on an entity that transforms into another entity.",
"$ref": "#/definitions/event_base",
"title": "Entity Transformed"
},
"minecraft:entity_born": {
"description": "Event called on an entity that is spawned through two entities breeding.",
"$ref": "#/definitions/event_base",
"title": "Entity Born"
},
"minecraft:entity_spawned": { "description": "Event called on an entity that is placed in the level.", "$ref": "#/definitions/event_base", "title": "Entity Spawned" },
"minecraft:on_prime": { "description": "Event called on an entity whose fuse is lit and is ready to explode.", "$ref": "#/definitions/event_base", "title": "On Prime" }
},
"additionalProperties": { "$ref": "#/definitions/event_base" },
"description": "TODO description: "
}

View File

@@ -0,0 +1,84 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entities.1.11.0.minecraft.filters",
"title": "Filters 1.11.0",
"definitions": {
"filters_spec": {
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
"properties": {
"all_of": { "title": "All Of", "description": "All tests in an 'all_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"any_of": { "title": "Any Of", "description": "One or more tests in an 'any_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"none_of": { "title": "None Of", "description": "All tests in a 'none_of' group must fail in order for the group to pass.", "$ref": "#/definitions/groups_spec" }
}
},
{
"required": ["test"],
"properties": {
"all_of": { "title": "All Of", "description": "All tests in an 'all_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"any_of": { "title": "Any Of", "description": "One or more tests in an 'any_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"none_of": { "title": "None Of", "description": "All tests in a 'none_of' group must fail in order for the group to pass.", "$ref": "#/definitions/groups_spec" }
},
"allOf": [
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "../1.8.0/filters/clock_time.json" } },
{ "if": { "properties": { "test": { "const": "distance_to_nearest_player" } } }, "then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" } },
{ "if": { "properties": { "test": { "const": "has_ability" } } }, "then": { "$ref": "../1.8.0/filters/has_ability.json" } },
{ "if": { "properties": { "test": { "const": "has_biome_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_biome_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_component" } } }, "then": { "$ref": "../1.8.0/filters/has_component.json" } },
{ "if": { "properties": { "test": { "const": "has_damage" } } }, "then": { "$ref": "../1.8.0/filters/has_damage.json" } },
{ "if": { "properties": { "test": { "const": "has_equipment" } } }, "then": { "$ref": "../1.8.0/filters/has_equipment.json" } },
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "../1.8.0/filters/has_mob_effect.json" } },
{ "if": { "properties": { "test": { "const": "has_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_trade_supply" } } }, "then": { "$ref": "../1.8.0/filters/has_trade_supply.json" } },
{ "if": { "properties": { "test": { "const": "hourly_clock_time" } } }, "then": { "$ref": "../1.8.0/filters/hourly_clock_time.json" } },
{ "if": { "properties": { "test": { "const": "in_caravan" } } }, "then": { "$ref": "../1.8.0/filters/in_caravan.json" } },
{ "if": { "properties": { "test": { "const": "in_clouds" } } }, "then": { "$ref": "../1.8.0/filters/in_clouds.json" } },
{ "if": { "properties": { "test": { "const": "in_lava" } } }, "then": { "$ref": "../1.8.0/filters/in_lava.json" } },
{ "if": { "properties": { "test": { "const": "in_water" } } }, "then": { "$ref": "../1.8.0/filters/in_water.json" } },
{ "if": { "properties": { "test": { "const": "in_water_or_rain" } } }, "then": { "$ref": "../1.8.0/filters/in_water_or_rain.json" } },
{ "if": { "properties": { "test": { "const": "is_altitude" } } }, "then": { "$ref": "../1.8.0/filters/is_altitude.json" } },
{ "if": { "properties": { "test": { "const": "is_avoiding_mobs" } } }, "then": { "$ref": "../1.8.0/filters/is_avoiding_mobs.json" } },
{ "if": { "properties": { "test": { "const": "is_biome" } } }, "then": { "$ref": "../1.8.0/filters/is_biome.json" } },
{ "if": { "properties": { "test": { "const": "is_brightness" } } }, "then": { "$ref": "../1.8.0/filters/is_brightness.json" } },
{ "if": { "properties": { "test": { "const": "is_climbing" } } }, "then": { "$ref": "../1.8.0/filters/is_climbing.json" } },
{ "if": { "properties": { "test": { "const": "is_color" } } }, "then": { "$ref": "../1.8.0/filters/is_color.json" } },
{ "if": { "properties": { "test": { "const": "is_daytime" } } }, "then": { "$ref": "../1.8.0/filters/is_daytime.json" } },
{ "if": { "properties": { "test": { "const": "is_difficulty" } } }, "then": { "$ref": "../1.8.0/filters/is_difficulty.json" } },
{ "if": { "properties": { "test": { "const": "is_family" } } }, "then": { "$ref": "../1.8.0/filters/is_family.json" } },
{ "if": { "properties": { "test": { "const": "is_game_rule" } } }, "then": { "$ref": "../1.8.0/filters/is_game_rule.json" } },
{ "if": { "properties": { "test": { "const": "is_humid" } } }, "then": { "$ref": "../1.8.0/filters/is_humid.json" } },
{ "if": { "properties": { "test": { "const": "is_immobile" } } }, "then": { "$ref": "../1.8.0/filters/is_immobile.json" } },
{ "if": { "properties": { "test": { "const": "is_in_village" } } }, "then": { "$ref": "../1.8.0/filters/is_in_village.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed" } } }, "then": { "$ref": "../1.8.0/filters/is_leashed.json" } },
{ "if": { "properties": { "test": { "const": "is_mark_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_mark_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_moving" } } }, "then": { "$ref": "../1.8.0/filters/is_moving.json" } },
{ "if": { "properties": { "test": { "const": "is_owner" } } }, "then": { "$ref": "../1.8.0/filters/is_owner.json" } },
{ "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "../1.8.0/filters/is_riding.json" } },
{ "if": { "properties": { "test": { "const": "is_skin_id" } } }, "then": { "$ref": "../1.8.0/filters/is_skin_id.json" } },
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "../1.8.0/filters/is_sneaking.json" } },
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "../1.8.0/filters/is_snow_covered.json" } },
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "../1.8.0/filters/is_target.json" } },
{ "if": { "properties": { "test": { "const": "is_temperature_type" } } }, "then": { "$ref": "../1.8.0/filters/is_temperature_type.json" } },
{ "if": { "properties": { "test": { "const": "is_temperature_value" } } }, "then": { "$ref": "../1.8.0/filters/is_temperature_value.json" } },
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "../1.8.0/filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "../1.8.0/filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "../1.8.0/filters/is_visible.json" } },
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "../1.8.0/filters/moon_intensity.json" } },
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "../1.8.0/filters/moon_phase.json" } },
{ "if": { "properties": { "test": { "const": "on_ground" } } }, "then": { "$ref": "../1.8.0/filters/on_ground.json" } },
{ "if": { "properties": { "test": { "const": "on_ladder" } } }, "then": { "$ref": "../1.8.0/filters/on_ladder.json" } }
]
}
]
},
"groups_spec": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/groups_spec" } },
{ "type": "object", "$ref": "#/definitions/filters_spec" }
]
}
},
"$ref": "#/definitions/groups_spec"
}

View File

@@ -0,0 +1,81 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entities.minecraft:entity",
"title": "Entity 1.11.0",
"required": ["description"],
"additionalProperties": false,
"properties": {
"description": {
"required": ["identifier"],
"title": "Description",
"description": "The description of the this entity",
"properties": {
"animations": {
"title": "Animations",
"description": "Sets the mapping of internal animation / animation controllers references to actual animations. This is a JSON Object of name/animation pairs",
"type": "object",
"additionalProperties": { "title": "Animation (controller)", "description": "The name of the animation controller / animation", "type": "string" }
},
"identifier": { "$ref": "../../../general/entity/identifier.json", "description": "Sets the identifier for this entity's description.", "title": "Identifier" },
"is_spawnable": { "type": "boolean", "title": "Is Spawnable", "description": "Sets whether or not this entity has a spawn egg in the creative ui." },
"is_summonable": {
"type": "boolean",
"title": "Is Summonable Property",
"description": "Sets whether or not we can summon this entity using commands such as /summon."
},
"is_experimental": {
"type": "boolean",
"title": "Is Experimental",
"description": "Sets whether or not this entity is experimental. Experimental entities are only enabled when the experimental toggle is enabled."
},
"runtime_identifier": {
"type": "string",
"title": "Runtime Identifier",
"description": "Sets the name for the Vanilla Minecraft identifier this entity will use to build itself from."
},
"scripts": {
"type": "object",
"title": "Scripts",
"description": "Sets the mapping of internal animation controller references to actual animation controller. This is a JSON Array of name/animation-controller pairs",
"properties": {
"animate": {
"type": "array",
"title": "Animate",
"description": "Tells minecraft to run which animation / animation controllers and under what conditions",
"items": {
"oneOf": [
{ "type": "string", "title": "Animation", "description": "The name of an animation controller referenced in animations" },
{ "type": "object", "title": "Conditional Animation", "description": "TODO", "additionalProperties": { "type": "string", "title": "Animation" } }
]
}
}
}
}
}
},
"component_groups": {
"title": "Component Groups",
"description": "Each group when add / remove the default components",
"uniqueItems": true,
"type": "object",
"additionalProperties": {
"$ref": "./components.json",
"uniqueItems": true,
"description": "The components that are added as the foundation of the entity",
"title": "Component Schema"
}
},
"components": {
"$ref": "./components.json",
"uniqueItems": true,
"description": "The components that are added as the foundation of the entity",
"title": "Component Schema"
},
"events": {
"$ref": "./events.json",
"uniqueItems": true,
"description": "The events that the entity can run, these add or remove components_groups",
"title": "Events Schema"
}
}
}