This commit is contained in:
DaanV2
2021-05-26 01:09:39 +02:00
parent 74080b311d
commit 7ea35ef9dd
3 changed files with 155 additions and 89 deletions

View File

@@ -3,7 +3,8 @@
"$id": "blockception.minecraft.resource.1.10.0.entity",
"type": "object",
"title": "Resourcepack Actor Animation 1.10.0",
"description": "TODO description",
"description": "A client side entity definition",
"additionalProperties": false,
"required": ["format_version", "minecraft:client_entity"],
"properties": {
"format_version": {
@@ -14,16 +15,17 @@
},
"minecraft:client_entity": {
"type": "object",
"additionalProperties": false,
"title": "Client Entity",
"description": "The client entity definition",
"description": "The entity description for clientside rendering, animations and models",
"required": ["description"],
"properties": {
"description": {
"additionalProperties": false,
"title": "Description",
"description": "The entity description for clientside rendering, animations and models",
"type": "object",
"required": ["identifier"],
"description": "The entity description for clientside rendering, animations and models",
"additionalProperties": false,
"properties": {
"animations": {
"title": "Animations",
@@ -37,7 +39,7 @@
"examples": [{ "basic": "controller.generic.basic" }]
}
},
"enable_attachables": { "type": "boolean", "description": "TODO description: enable attachables", "title": "Enable Attachables" },
"enable_attachables": { "type": "boolean", "description": "Whether or not attachables are enaboled", "title": "Enable Attachables" },
"geometry": {
"title": "Geometry",
"description": "The reference to defined geometries in '<resource pack>/models/'",
@@ -50,45 +52,45 @@
"type": "string",
"description": "The entity indentifier",
"title": "Identifier",
"$ref": "../../../general/item/identifier.json"
"$ref": "../../../general/entity/identifier.json"
},
"materials": {
"type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: materials",
"additionalProperties": { "type": "string", "description": "Material reference", "title": "Material" },
"description": "A collection of material definitions",
"title": "Materials"
},
"min_engine_version": {
"type": "string",
"pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
"description": "TODO description: min engine version",
"description": "The minimum engine version to be used",
"title": "Min Engine Version"
},
"particle_effects": {
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: particle effects",
"additionalProperties": { "type": "string", "description": "Particle reference", "title": "Particle" },
"description": "A collection of particle definitions",
"title": "Particle Effects"
},
"particle_emitters": {
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: particle emitters",
"additionalProperties": { "type": "string", "description": "Particle emitter reference", "title": "Particle emitter" },
"description": "A collection of particle emitters definitions",
"title": "Particle Emitters"
},
"render_controllers": {
"type": "array",
"description": "TODO description: render controllers",
"title": "Render Controllers",
"description": "A collection of Render controller definitions",
"title": "Render controllers",
"minItems": 1,
"items": {
"oneOf": [
{ "type": "string" },
{ "type": "string", "title": "Render controller", "description": "A single render controller definition" },
{
"type": "object",
"additionalProperties": { "type": "string", "description": "A render controller", "title": "Render Controller" }
"additionalProperties": { "type": "string", "description": "A render controller activate on conditional", "title": "Render Controller" }
}
]
}
@@ -154,7 +156,7 @@
},
"scale": {
"type": "string",
"description": "TODO description: scale",
"description": "Scale sets the scale of the mob's geometry.",
"title": "Scale",
"$ref": "../../../molang/1.8.0/number.json"
},
@@ -188,10 +190,10 @@
},
"sound_effects": {
"title": "Sound Effects",
"description": "TODO description: sound effects",
"description": "A collection of sound effect definition",
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "Sound Effect" }
"additionalProperties": { "type": "string", "description": "A sound effect definition", "title": "Sound effect" }
},
"spawn_egg": {
"additionalProperties": false,
@@ -219,9 +221,7 @@
}
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
}

View File

@@ -1,9 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.entity1.8.0",
"$id": "blockception.minecraft.resource.1.8.0.entity",
"type": "object",
"title": "Resourcepack Actor Animation 1.8.0",
"description": "TODO description",
"description": "A client side entity definition",
"additionalProperties": false,
"required": ["format_version", "minecraft:client_entity"],
"properties": {
@@ -18,86 +18,140 @@
"additionalProperties": false,
"title": "Client Entity",
"description": "The entity description for clientside rendering, animations and models",
"required": ["description"],
"properties": {
"description": {
"additionalProperties": false,
"title": "Description",
"description": "TODO description: description",
"description": "The entity description for clientside rendering, animations and models",
"type": "object",
"required": ["identifier"],
"properties": {
"animations": {
"description": "The connecting of animations in animations controllers with the actuall animations, names should corosponds",
"title": "Animations Schema",
"title": "Animations",
"description": "The collection of animations",
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }
"additionalProperties": {
"type": "string",
"description": "A reference to an animation",
"title": "Animation Reference",
"examples": [{ "basic": "controller.generic.basic" }]
}
},
"animation_controllers": {
"type": "array",
"minItems": 1,
"description": "TODO description: animation controllers",
"description": "A reference to an animation controller",
"title": "Animation Controllers",
"items": {
"type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: animation controllers",
"title": "Animation Controllers"
"description": "A collection of animation controllers",
"title": "Animation Controllers",
"additionalProperties": {
"type": "string",
"description": "A reference to an animation",
"title": "Animation Reference",
"examples": [{ "basic": "controller.generic.basic" }]
}
}
},
"enable_attachables": { "type": "boolean", "description": "TODO description: enable attachables", "title": "Enable Attachables" },
"geometry": {
"title": "Geometry",
"description": "The reference to defined geometries in '<resource pack>/models/'",
"type": "object",
"propertyNames": { "pattern": "[a-zA-Z0-9_\\.\\-]+" },
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: geometry"
"additionalProperties": { "type": "string", "description": "The reference to the geometry", "title": "Geometry Reference" }
},
"identifier": {
"type": "string",
"description": "TODO description: identifier",
"description": "The entity indentifier",
"title": "Identifier",
"$ref": "../../../general/entity/identifier.json"
},
"materials": {
"type": "object",
"description": "TODO description: materials",
"title": "Materials",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }
"additionalProperties": { "type": "string", "description": "Material reference", "title": "Material" },
"description": "A collection of material definitions",
"title": "Materials"
},
"min_engine_version": {
"type": "string",
"pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
"description": "TODO description: min engine version",
"description": "The minimum engine version to be used",
"title": "Min Engine Version"
},
"particle_effects": {
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: particle effects",
"additionalProperties": { "type": "string", "description": "Particle reference", "title": "Particle" },
"description": "A collection of particle definitions",
"title": "Particle Effects"
},
"particle_emitters": {
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" },
"description": "TODO description: particle emitters",
"additionalProperties": { "type": "string", "description": "Particle emitter reference", "title": "Particle emitter" },
"description": "A collection of particle emitters definitions",
"title": "Particle Emitters"
},
"render_controllers": {
"type": "array",
"description": "TODO description: render controllers",
"title": "Render Controllers",
"description": "A collection of Render controller definitions",
"title": "Render controllers",
"minItems": 1,
"items": { "type": "string", "description": "TODO description: render controllers", "title": "Render Controllers" }
"items": {
"oneOf": [
{ "type": "string", "title": "Render controller", "description": "A single render controller definition" },
{
"type": "object",
"additionalProperties": { "type": "string", "description": "A render controller activate on conditional", "title": "Render Controller" }
}
]
}
},
"scripts": {
"additionalProperties": false,
"type": "object",
"title": "Scripts",
"description": "The place where variables, and animations / controller to be run is specified",
"properties": {
"pre_animation": {
"type": "array",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation",
"items": {
"pattern": ";$",
"$ref": "../../../molang/1.8.0/string.json",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation"
}
},
"parent_setup": {
"type": "string",
"description": "TODO description: parent setup",
"title": "Parent Setup",
"$ref": "../../../molang/1.8.0/number.json"
},
"scale": {
"type": "string",
"description": "Scale sets the scale of the mob's geometry.",
"title": "Scale",
"$ref": "../../../molang/1.8.0/number.json"
},
"scalex": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale X" },
"scaley": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale Y" },
"scalez": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale Z" }
}
},
"sound_effects": {
"title": "Sound Effects",
"description": "TODO description: sound effects",
"description": "A collection of sound effect definition",
"type": "object",
"minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }
"additionalProperties": { "type": "string", "description": "A sound effect definition", "title": "Sound effect" }
},
"spawn_egg": {
"additionalProperties": false,
@@ -117,30 +171,6 @@
"texture_index": { "type": "integer", "description": "The index of the texture", "title": "Texture Index", "default": 0 }
}
},
"scripts": {
"additionalProperties": false,
"type": "object",
"description": "TODO description: scripts",
"title": "Scripts",
"properties": {
"pre_animation": {
"type": "array",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation",
"items": {
"pattern": ";$",
"$ref": "../../../molang/1.8.0/string.json",
"description": "Clientside molang variables that are to be evualated during the animation",
"title": "Pre Animation"
}
},
"parent_setup": { "$ref": "../../../molang/1.8.0/number.json" },
"scale": { "type": "string", "description": "TODO description: scale", "title": "Scale" },
"scalex": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale X" },
"scaley": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale Y" },
"scalez": { "$ref": "../../../molang/1.8.0/number.json", "title": "Scale Z" }
}
},
"textures": {
"type": "object",
"additionalProperties": { "type": "string", "description": "A reference to a texture in the resourcepack", "title": "Texture" },

View File

@@ -1,28 +1,64 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.texture.flipbook",
"$schema": "http://json-schema.org/draft-07/schema",
"additionalProperties": false,
"type": "array",
"description": "The file that specifies animated textures",
"title": "Flipbook Texture File",
"description": "",
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"description": "A single flipbook texture",
"title": "Flipbook Texture",
"type": "object",
"properties": {
"atlas_index": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" },
"atlas_tile": { "type": "string", "pattern": "^[a-z0-9_\\-]*$", "title": "Atlas Index", "description": "TODO: add description" },
"atlas_tile_variant": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" },
"blend_frames": { "type": "boolean", "title": "Atlas Index", "description": "TODO: add description" },
"flipbook_texture": { "description": "A texture file", "type": "string", "pattern": "^textures/.+$" },
"frames": {
"description": "The collection of frame index to display",
"type": "array",
"items": { "description": "The index of the frame", "type": "integer", "title": "Frame Index", "minimum": 0 }
"atlas_index": {
"description": "TODO: add description",
"title": "Atlas Index",
"type": "integer"
},
"replicate": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" },
"ticks_per_frame": { "description": "The amount of ticks to wait between frames", "type": "integer" }
"atlas_tile": {
"description": "TODO: add description",
"pattern": "^[a-z0-9_\\-]*$",
"title": "Atlas Index",
"type": "string"
},
"atlas_tile_variant": {
"description": "TODO: add description",
"title": "Atlas Index",
"type": "integer"
},
"blend_frames": {
"description": "TODO: add description",
"title": "Atlas Index",
"type": "boolean"
},
"flipbook_texture": {
"description": "A texture file",
"pattern": "^textures/.+$",
"title": "Flipbook texture",
"type": "string"
},
"frames": {
"title": "Frames",
"description": "The collection of frame index to display",
"items": {
"description": "The index of the frame",
"minimum": 0,
"title": "Frame Index",
"type": "integer"
},
"type": "array"
},
"replicate": {
"description": "TODO: add description",
"title": "Atlas Index",
"type": "integer"
},
"ticks_per_frame": {
"description": "The amount of ticks to wait between frames",
"title": "Ticks per frame",
"type": "integer"
}
}
}
}