Skip to content

Commit

Permalink
Added snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Nov 17, 2020
1 parent d3acaad commit 52503e9
Show file tree
Hide file tree
Showing 22 changed files with 406 additions and 33 deletions.
10 changes: 10 additions & 0 deletions behaviour/animations/animations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"$schema": "http:https://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" } } },
Expand Down
13 changes: 13 additions & 0 deletions behaviour/blocks/blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "http:https://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" } } },
Expand Down
21 changes: 21 additions & 0 deletions behaviour/entities/entities.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{
"$schema": "http:https://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" } } },
Expand Down
13 changes: 13 additions & 0 deletions behaviour/items/items.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "http:https://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" } } },
Expand Down
20 changes: 20 additions & 0 deletions behaviour/loot_tables/loot_tables.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 22 additions & 0 deletions behaviour/recipes/recipes.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
{
"$schema": "http:https://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" } } },
Expand Down
16 changes: 16 additions & 0 deletions behaviour/spawn_rules/spawn_rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
{
"$schema": "http:https://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" } } },
Expand Down
21 changes: 21 additions & 0 deletions behaviour/trading/trading.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
19 changes: 19 additions & 0 deletions general/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions general/world_x_packs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
33 changes: 33 additions & 0 deletions language/language_names.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
{
"$schema": "http:https://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",
Expand Down
33 changes: 33 additions & 0 deletions language/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@
"$schema": "http:https://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",
Expand Down
22 changes: 22 additions & 0 deletions resource/animation_controllers/animation_controller.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
{
"$schema": "http:https://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" } } },
Expand Down
14 changes: 14 additions & 0 deletions resource/animations/actor_animation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
{
"$schema": "http:https://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" } } },
Expand Down
24 changes: 24 additions & 0 deletions resource/attachables/attachables.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
{
"$schema": "http:https://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" } } },
Expand Down
Loading

0 comments on commit 52503e9

Please sign in to comment.