Added snippets
This commit is contained in:
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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" }
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
@@ -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" }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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" } } },
|
||||
|
||||
Reference in New Issue
Block a user