Added snippets
This commit is contained in:
@@ -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