Added snippets

This commit is contained in:
DaanV2
2020-11-17 09:56:41 +01:00
parent d3acaad5cb
commit 52503e904f
22 changed files with 406 additions and 33 deletions

View File

@@ -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" } } },

View File

@@ -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" } } },

View File

@@ -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" } } },

View File

@@ -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" } } },

View File

@@ -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",

View File

@@ -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" } } },

View File

@@ -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" } } },

View File

@@ -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",