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",
|
||||
|
||||
Reference in New Issue
Block a user