diff --git a/behaviour/animations/animations.json b/behaviour/animations/animations.json index cf776fc6..813b3b22 100644 --- a/behaviour/animations/animations.json +++ b/behaviour/animations/animations.json @@ -1,6 +1,16 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.animations", + "examples": [ + { + "format_version": "1.10.0", + "animations": { + "animation.example": { + + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/behaviour/blocks/blocks.json b/behaviour/blocks/blocks.json index 3e16962b..ac76b693 100644 --- a/behaviour/blocks/blocks.json +++ b/behaviour/blocks/blocks.json @@ -1,6 +1,19 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.blocks", + "examples": [ + { + "format_version": "1.16.0", + "minecraft:block": { + "description": { + "identifier": "namespace:block" + }, + "components": { + + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, diff --git a/behaviour/entities/entities.json b/behaviour/entities/entities.json index 073a6e4b..e1a9ba1f 100644 --- a/behaviour/entities/entities.json +++ b/behaviour/entities/entities.json @@ -1,6 +1,27 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.entities", + "examples": [ + { + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "namespace:entity", + "is_spawnable": true, + "is_summonable": true + }, + "component_groups": { + + }, + "components": { + + }, + "events": { + + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/behaviour/items/items.json b/behaviour/items/items.json index 505bd6bb..5f59b483 100644 --- a/behaviour/items/items.json +++ b/behaviour/items/items.json @@ -1,6 +1,19 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.items", + "examples": [ + { + "format_version": "1.16.0", + "minecraft:item": { + "description": { + "identifier": "namespace:item" + }, + "components": { + + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, diff --git a/behaviour/loot_tables/loot_tables.json b/behaviour/loot_tables/loot_tables.json index 9774fc1c..a081a919 100644 --- a/behaviour/loot_tables/loot_tables.json +++ b/behaviour/loot_tables/loot_tables.json @@ -4,6 +4,26 @@ "additionalProperties": false, "description": "A minecraft loot table", "title": "Loot Table", + "examples": [ + { + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "item", + "name": "minecraft:spawn_egg", + "weight": 1, + "functions": [ + { "function": "set_count", "count": { "min": 1, "max": 1 } }, + { "function": "set_actor_id" } + ] + } + ] + } + ] + } + ], "definitions": { "pools_spec": { "title": "Pools", diff --git a/behaviour/recipes/recipes.json b/behaviour/recipes/recipes.json index cb5928fe..f090ab57 100644 --- a/behaviour/recipes/recipes.json +++ b/behaviour/recipes/recipes.json @@ -1,6 +1,28 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.recipes", + "examples": [ + { + "format_version": "1.12.0", + "minecraft:recipe_shaped": { + "description": { + "identifier": "minecraft:item" + }, + + "tags": [ "crafting_table" ], + "pattern": [ + + ], + "key": { + + }, + "result": { + "item": "minecraft:boat", + "data": 4 + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.12" } } }, diff --git a/behaviour/spawn_rules/spawn_rules.json b/behaviour/spawn_rules/spawn_rules.json index 29469f96..6002d305 100644 --- a/behaviour/spawn_rules/spawn_rules.json +++ b/behaviour/spawn_rules/spawn_rules.json @@ -1,6 +1,22 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behaviour.spawn_rules", + "examples": [ + { + "format_version": "1.10.0", + "minecraft:spawn_rules": { + "description": { + "identifier": "minecraft:entity", + "population_control": "ambient" + }, + "conditions": [ + { + + } + ] + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/behaviour/trading/trading.json b/behaviour/trading/trading.json index fdb81c3b..4fe65b90 100644 --- a/behaviour/trading/trading.json +++ b/behaviour/trading/trading.json @@ -3,6 +3,27 @@ "$id": "blockception.minecraft.behaviour.trading", "type": "object", "additionalProperties": false, + "examples": [ + { + "tiers": [ + { + "trades": [ + { + "wants": [ + { + "item": "minecraft:coal:0", + "quantity": { "min": 16, "max": 24 } + } + ], + "gives": [ + { "item": "minecraft:emerald" } + ] + } + ] + } + ] + } + ], "definitions": { "Item": { "title": "Item", diff --git a/general/manifest.json b/general/manifest.json index ec031012..2f03af86 100644 --- a/general/manifest.json +++ b/general/manifest.json @@ -5,6 +5,25 @@ "title": "The minecraft manifest schema", "description": "The minecraft manifest schema", "required": ["format_version", "header"], + "examples": [ + { + "format_version": 2, + "header": { + "description": "pack.description", + "name": "pack.name", + "uuid": "UUID2", + "min_engine_version": [1, 16, 0], + "version": [1, 0, 0] + }, + "modules": [ + { + "type": "data", + "uuid": "UUID2", + "version": [1, 0, 0] + } + ] + } + ], "allOf": [ { "if": { diff --git a/general/world_x_packs.json b/general/world_x_packs.json index 1c5745c5..91043427 100644 --- a/general/world_x_packs.json +++ b/general/world_x_packs.json @@ -4,6 +4,9 @@ "type": "array", "title": "The minecraft world x pack schema", "description": "TODO description", + "examples": [ + [{ "pack_id": "UUID", "version": [1, 0, 0] }] + ], "definitions": { "uuidv4": { "$ref": "./UUIDV4.json" }, "version": { "$ref": "./Version.json" } diff --git a/language/language_names.json b/language/language_names.json index 41b7c3d6..792b2e46 100644 --- a/language/language_names.json +++ b/language/language_names.json @@ -1,6 +1,39 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.language_names", + "examples": [ + [ + [ "en_US", "English (US)" ], + [ "en_GB", "English (UK)" ], + [ "de_DE", "Deutsch (Deutschland)" ], + [ "es_ES", "Español (España)" ], + [ "es_MX", "Español (México)" ], + [ "fr_FR", "Français (France)" ], + [ "fr_CA", "Français (Canada)" ], + [ "it_IT", "Italiano (Italia)" ], + [ "ja_JP", "日本語 (日本)" ], + [ "ko_KR", "한국어 (대한민국)" ], + [ "pt_BR", "Português (Brasil)" ], + [ "pt_PT", "Português (Portugal)" ], + [ "ru_RU", "Русский (Россия)" ], + [ "zh_CN", "简体中文" ], + [ "zh_TW", "繁體中文" ], + [ "nl_NL", "Nederlands (Nederland)" ], + [ "bg_BG", "Български (BG)" ], + [ "cs_CZ", "Čeština (Česká republika)" ], + [ "da_DK", "Dansk (DA)" ], + [ "el_GR", "Ελληνικά (Ελλάδα)" ], + [ "fi_FI", "Suomi (Suomi)" ], + [ "hu_HU", "Magyar (HU)" ], + [ "id_ID", "Bahasa Indonesia (Indonesia)" ], + [ "nb_NO", "Norsk bokmål (Norge)" ], + [ "pl_PL", "Polski (PL)" ], + [ "sk_SK", "Slovensky (SK)" ], + [ "sv_SE", "Svenska (Sverige)" ], + [ "tr_TR", "Türkçe (Türkiye)" ], + [ "uk_UA", "Українська (Україна)" ] + ] + ], "additionalProperties": false, "type": "array", "title": "Language Names", diff --git a/language/languages.json b/language/languages.json index 28830117..23355db9 100644 --- a/language/languages.json +++ b/language/languages.json @@ -2,6 +2,39 @@ "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.languages", "additionalProperties": false, + "examples": [ + [ + "en_US", + "en_GB", + "de_DE", + "es_ES", + "es_MX", + "fr_FR", + "fr_CA", + "it_IT", + "ja_JP", + "ko_KR", + "pt_BR", + "pt_PT", + "ru_RU", + "zh_CN", + "zh_TW", + "nl_NL", + "bg_BG", + "cs_CZ", + "da_DK", + "el_GR", + "fi_FI", + "hu_HU", + "id_ID", + "nb_NO", + "pl_PL", + "sk_SK", + "sv_SE", + "tr_TR", + "uk_UA" + ] + ], "type": "array", "title": "Languages", "description": "A language definitions file", diff --git a/resource/animation_controllers/animation_controller.json b/resource/animation_controllers/animation_controller.json index e4c25a70..0022159e 100644 --- a/resource/animation_controllers/animation_controller.json +++ b/resource/animation_controllers/animation_controller.json @@ -1,6 +1,28 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.animation_controller", + "examples": [ + { + "format_version": "1.10.0", + "animation_controllers": { + "controller.animation.example": { + "states": { + "default": { + "transitions": [ + { "state_1": "query.is_baby" } + ] + }, + "state_1": { + "animations": ["state_1"], + "transitions": [ + { "default": "query.all_animations_finished" } + ] + } + } + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/animations/actor_animation.json b/resource/animations/actor_animation.json index 65e505d5..a4163cde 100644 --- a/resource/animations/actor_animation.json +++ b/resource/animations/actor_animation.json @@ -1,6 +1,20 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.actor_animation", + "examples": [ + { + "format_version": "1.8.0", + "animations": { + "animation.annie.idle": { + "loop": true, + "animation_length": 2.12, + "bones": { + + } + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/attachables/attachables.json b/resource/attachables/attachables.json index 7a3af3e9..a48ebb18 100644 --- a/resource/attachables/attachables.json +++ b/resource/attachables/attachables.json @@ -1,6 +1,30 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.attachables", + "examples": [ + { + "format_version": "1.10.0", + "minecraft:attachable": { + "description": { + "identifier": "minecraft:item", + "materials": { + "default": "entity_alphatest", + "enchanted": "entity_alphatest_glint" + }, + "textures": { + "default": "textures/items/item" + }, + "geometry": { + "default": "geometry.item" + }, + "scripts": { + + }, + "render_controllers": [ "controller.render.item" ] + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/entity/entity.json b/resource/entity/entity.json index 3b6936f2..fd703fe7 100644 --- a/resource/entity/entity.json +++ b/resource/entity/entity.json @@ -1,6 +1,38 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.entity", + "examples": [ + { + "format_version": "1.10.0", + "minecraft:client_entity": { + "description": { + "identifier": "minecraft:entity", + "materials": { "default": "entity_custom" }, + "textures": { + "default": "textures/entity/custom/entity" + }, + "geometry": { + "default": "geometry.entity" + }, + "animations": { + + }, + "particle_effects": { + + }, + "scripts": { + + }, + "render_controllers": [ "controller.render.entity" ], + + "spawn_egg": { + "base_color": "#288483", + "overlay_color": "#2B7135" + } + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/items/items.json b/resource/items/items.json index 536acf75..cbdc2274 100644 --- a/resource/items/items.json +++ b/resource/items/items.json @@ -1,6 +1,21 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.items", + "examples": [ + { + "format_version": "1.10.0", + "minecraft:item": { + "description": { + "identifier": "blockception:item", + "category": "Equipment" + }, + "components": { + "minecraft:icon": "item", + "minecraft:render_offsets": "apple" + } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, diff --git a/resource/models/entity/model_entity.json b/resource/models/entity/model_entity.json index ea8c8e68..d424017e 100644 --- a/resource/models/entity/model_entity.json +++ b/resource/models/entity/model_entity.json @@ -1,6 +1,25 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.model", + "examples": [ + { + "format_version" : "1.12.0", + "minecraft:geometry" : [ + { + "description" : { + "identifier" : "geometry.entity", + "texture_width" : 64.0, + "texture_height" : 64.0, + "visible_bounds_offset" : [ 0.0, 0.5, 0.0 ], + "visible_bounds_width" : 1.5 + }, + "bones" : { + + } + } + ] + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/particles/particles.json b/resource/particles/particles.json index 39c0b7ca..0c2e7b6b 100644 --- a/resource/particles/particles.json +++ b/resource/particles/particles.json @@ -1,6 +1,27 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.resource.particle", + "examples": [ + { + "format_version": "1.10.0", + "particle_effect": { + "description": { + "identifier": "blockception:particle", + "basic_render_parameters": { + "material": "particles_alpha", + "texture": "textures/particle/particle" + } + }, + "curves": { + + }, + "components": { + + } + } + } + + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, diff --git a/resource/render_controllers/render_controllers.json b/resource/render_controllers/render_controllers.json index b8b095ee..c1bea6a6 100644 --- a/resource/render_controllers/render_controllers.json +++ b/resource/render_controllers/render_controllers.json @@ -1,48 +1,33 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.render_controllers.json", + "examples": [ + { + "format_version": "1.8.0", + "render_controllers": { + "controller.render.example": { + "geometry": "Geometry.default", + "materials": [ { "*": "Material.default" } ], + "textures": [ "Texture.default" ] + } + } + } + ], "type": "object", "title": "Render Controllers", "description": "TODO description", "allOf": [ { - "if": { - "properties": { - "format_version": { - "type": "string", - "const": "1.8.0" - } - } - }, - "then": { - "$ref": "1.8.0/render_controllers.json" - } + "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, + "then": { "$ref": "1.8.0/render_controllers.json" } }, { - "if": { - "properties": { - "format_version": { - "type": "string", - "const": "1.10" - } - } - }, - "then": { - "$ref": "1.10.0/render_controllers.json" - } + "if": {"properties": { "format_version": { "type": "string", "const": "1.10" } } }, + "then": { "$ref": "1.10.0/render_controllers.json" } }, { - "if": { - "properties": { - "format_version": { - "type": "string", - "const": "1.10.0" - } - } - }, - "then": { - "$ref": "1.10.0/render_controllers.json" - } + "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, + "then": { "$ref": "1.10.0/render_controllers.json" } } ] } diff --git a/resource/sounds/music_definitions.json b/resource/sounds/music_definitions.json index 818fb4ec..422ee94b 100644 --- a/resource/sounds/music_definitions.json +++ b/resource/sounds/music_definitions.json @@ -1,6 +1,15 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.music_definitions.json", + "examples": [ + { + "example": { + "event_name" : "music.example", + "min_delay": 600, + "max_delay": 1200 + } + } + ], "type": "object", "title": "The minecraft music definition file", "description": "The definition file of music of the resourcepack", diff --git a/resource/sounds/sound_definitions.json b/resource/sounds/sound_definitions.json index fd0a5037..d28a5b30 100644 --- a/resource/sounds/sound_definitions.json +++ b/resource/sounds/sound_definitions.json @@ -1,6 +1,14 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.sound_definition.json", + "examples": [ + { + "format_version": "1.14.0", + "sound_definitions": { + "music.game": { "category": "music", "sounds": [""] } + } + } + ], "allOf": [ { "if": { "properties": { "format_version": { "type": "string" } } },