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

View File

@@ -1,9 +1,9 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$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", "type": "object",
"title": "Resourcepack Actor Animation 1.8.0", "title": "Resourcepack Actor Animation 1.8.0",
"description": "TODO description", "description": "A client side entity definition",
"additionalProperties": false, "additionalProperties": false,
"required": ["format_version", "minecraft:client_entity"], "required": ["format_version", "minecraft:client_entity"],
"properties": { "properties": {
@@ -18,86 +18,140 @@
"additionalProperties": false, "additionalProperties": false,
"title": "Client Entity", "title": "Client Entity",
"description": "The entity description for clientside rendering, animations and models", "description": "The entity description for clientside rendering, animations and models",
"required": ["description"],
"properties": { "properties": {
"description": { "description": {
"additionalProperties": false, "additionalProperties": false,
"title": "Description", "title": "Description",
"description": "TODO description: description", "description": "The entity description for clientside rendering, animations and models",
"type": "object", "type": "object",
"required": ["identifier"], "required": ["identifier"],
"properties": { "properties": {
"animations": { "animations": {
"description": "The connecting of animations in animations controllers with the actuall animations, names should corosponds", "title": "Animations",
"title": "Animations Schema", "description": "The collection of animations",
"type": "object", "type": "object",
"minProperties": 1, "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": { "animation_controllers": {
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
"description": "TODO description: animation controllers", "description": "A reference to an animation controller",
"title": "Animation Controllers", "title": "Animation Controllers",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "description": "A collection of animation controllers",
"description": "TODO description: animation controllers", "title": "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" }, "enable_attachables": { "type": "boolean", "description": "TODO description: enable attachables", "title": "Enable Attachables" },
"geometry": { "geometry": {
"title": "Geometry", "title": "Geometry",
"description": "The reference to defined geometries in '<resource pack>/models/'",
"type": "object", "type": "object",
"propertyNames": { "pattern": "[a-zA-Z0-9_\\.\\-]+" },
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "The reference to the geometry", "title": "Geometry Reference" }
"description": "TODO description: geometry"
}, },
"identifier": { "identifier": {
"type": "string", "type": "string",
"description": "TODO description: identifier", "description": "The entity indentifier",
"title": "Identifier", "title": "Identifier",
"$ref": "../../../general/entity/identifier.json" "$ref": "../../../general/entity/identifier.json"
}, },
"materials": { "materials": {
"type": "object", "type": "object",
"description": "TODO description: materials", "additionalProperties": { "type": "string", "description": "Material reference", "title": "Material" },
"title": "Materials", "description": "A collection of material definitions",
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" } "title": "Materials"
}, },
"min_engine_version": { "min_engine_version": {
"type": "string", "type": "string",
"pattern": "[0-9]+\\.[0-9]+\\.[0-9]+", "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" "title": "Min Engine Version"
}, },
"particle_effects": { "particle_effects": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "Particle reference", "title": "Particle" },
"description": "TODO description: particle effects", "description": "A collection of particle definitions",
"title": "Particle Effects" "title": "Particle Effects"
}, },
"particle_emitters": { "particle_emitters": {
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" }, "additionalProperties": { "type": "string", "description": "Particle emitter reference", "title": "Particle emitter" },
"description": "TODO description: particle emitters", "description": "A collection of particle emitters definitions",
"title": "Particle Emitters" "title": "Particle Emitters"
}, },
"render_controllers": { "render_controllers": {
"type": "array", "type": "array",
"description": "TODO description: render controllers", "description": "A collection of Render controller definitions",
"title": "Render Controllers", "title": "Render controllers",
"minItems": 1, "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": { "sound_effects": {
"title": "Sound Effects", "title": "Sound Effects",
"description": "TODO description: sound effects", "description": "A collection of sound effect definition",
"type": "object", "type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "type": "string", "description": "TODO description: additionalProperties", "title": "TODO" } "additionalProperties": { "type": "string", "description": "A sound effect definition", "title": "Sound effect" }
}, },
"spawn_egg": { "spawn_egg": {
"additionalProperties": false, "additionalProperties": false,
@@ -117,30 +171,6 @@
"texture_index": { "type": "integer", "description": "The index of the texture", "title": "Texture Index", "default": 0 } "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": { "textures": {
"type": "object", "type": "object",
"additionalProperties": { "type": "string", "description": "A reference to a texture in the resourcepack", "title": "Texture" }, "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", "$id": "blockception.minecraft.resource.texture.flipbook",
"$schema": "http://json-schema.org/draft-07/schema",
"additionalProperties": false, "additionalProperties": false,
"type": "array", "description": "The file that specifies animated textures",
"title": "Flipbook Texture File", "title": "Flipbook Texture File",
"description": "", "type": "array",
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"type": "object",
"description": "A single flipbook texture", "description": "A single flipbook texture",
"title": "Flipbook Texture", "title": "Flipbook Texture",
"type": "object",
"properties": { "properties": {
"atlas_index": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" }, "atlas_index": {
"atlas_tile": { "type": "string", "pattern": "^[a-z0-9_\\-]*$", "title": "Atlas Index", "description": "TODO: add description" }, "description": "TODO: add description",
"atlas_tile_variant": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" }, "title": "Atlas Index",
"blend_frames": { "type": "boolean", "title": "Atlas Index", "description": "TODO: add description" }, "type": "integer"
"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 }
}, },
"replicate": { "type": "integer", "title": "Atlas Index", "description": "TODO: add description" }, "atlas_tile": {
"ticks_per_frame": { "description": "The amount of ticks to wait between frames", "type": "integer" } "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"
}
} }
} }
} }