diff --git a/source/behavior/items/1.16.100/components/minecraft.render_offsets.json b/source/behavior/items/1.16.100/components/minecraft.render_offsets.json index dc987bdd..92bfba77 100644 --- a/source/behavior/items/1.16.100/components/minecraft.render_offsets.json +++ b/source/behavior/items/1.16.100/components/minecraft.render_offsets.json @@ -4,6 +4,59 @@ "title": "Render Offsets", "description": "Render offsets component: optional values can be given to offset the way the item is rendered.", "type": "object", + "definitions": { + "offset_spec": { + "type": "object", + "title": "Offset", + "description": "", + "additionalProperties": false, + "properties": { + "first_person": { + "title": "First person", + "description": "", + "$ref": "#/definitions/mode" + }, + "thrid_person": { + "title": "Thrid person", + "description": "", + "$ref": "#/definitions/mode" + } + } + }, + "mode": { + "type": "object", + "title": "Mode", + "description": "", + "additionalProperties": false, + "properties": { + "position": { + "title": "Position", + "description": "The position transformation", + "$ref": "#/definitions/vec3" + }, + "rotation": { + "title": "Rotation", + "description": "The rotation transformation", + "$ref": "#/definitions/vec3" + }, + "scale": { + "title": "Scale", + "description": "The scale transformation", + "$ref": "#/definitions/vec3" + } + } + }, + "vec3": { + "type": "array", + "title": "Vector", + "description": "X Y Z", + "items": [ + { "title": "X", "description": "The X tranformation", "type": "number" }, + { "title": "Y", "description": "The Y tranformation", "type": "number" }, + { "title": "Z", "description": "The Z tranformation", "type": "number" } + ] + } + }, "additionalProperties": false, "properties": { "main_hand": { "title": "Main Hand", "description": "Right hand transform data.", "type": "string" }, diff --git a/source/behavior/items/1.16.100/items.json b/source/behavior/items/1.16.100/items.json index f71df72a..1dfcae84 100644 --- a/source/behavior/items/1.16.100/items.json +++ b/source/behavior/items/1.16.100/items.json @@ -64,7 +64,9 @@ "minecraft:shooter": { "$ref": "./components/minecraft.shooter.json" }, "minecraft:throwable": { "$ref": "./components/minecraft.throwable.json" }, "minecraft:weapon": { "$ref": "./components/minecraft.weapon.json" }, - "minecraft:wearable": { "$ref": "./components/minecraft.wearable.json" } + "minecraft:wearable": { "$ref": "./components/minecraft.wearable.json" }, + + "minecraft:hand_equipped": { "type": "boolean", "title": "Hand Equipped", "description": "Is this a hand equipped item." } } }, "events": { "$ref": "./events.json" } diff --git a/source/behavior/items/1.16.200/components/minecraft.render_offsets.json b/source/behavior/items/1.16.200/components/minecraft.render_offsets.json index d21eff4f..61b57d56 100644 --- a/source/behavior/items/1.16.200/components/minecraft.render_offsets.json +++ b/source/behavior/items/1.16.200/components/minecraft.render_offsets.json @@ -5,6 +5,59 @@ "description": "Render offsets component: optional values can be given to offset the way the item is rendered.", "type": "object", "additionalProperties": false, + "definitions": { + "offset_spec": { + "type": "object", + "title": "Offset", + "description": "", + "additionalProperties": false, + "properties": { + "first_person": { + "title": "First person", + "description": "", + "$ref": "#/definitions/mode" + }, + "thrid_person": { + "title": "Thrid person", + "description": "", + "$ref": "#/definitions/mode" + } + } + }, + "mode": { + "type": "object", + "title": "Mode", + "description": "", + "additionalProperties": false, + "properties": { + "position": { + "title": "Position", + "description": "The position transformation", + "$ref": "#/definitions/vec3" + }, + "rotation": { + "title": "Rotation", + "description": "The rotation transformation", + "$ref": "#/definitions/vec3" + }, + "scale": { + "title": "Scale", + "description": "The scale transformation", + "$ref": "#/definitions/vec3" + } + } + }, + "vec3": { + "type": "array", + "title": "Vector", + "description": "X Y Z", + "items": [ + { "title": "X", "description": "The X tranformation", "type": "number" }, + { "title": "Y", "description": "The Y tranformation", "type": "number" }, + { "title": "Z", "description": "The Z tranformation", "type": "number" } + ] + } + }, "properties": { "main_hand": { "title": "Main Hand", "description": "Right hand transform data.", "type": "string" }, "off_hand": { "title": "Off Hand", "description": "Left hand transform data.", "type": "string" } diff --git a/source/behavior/items/1.16.200/items.json b/source/behavior/items/1.16.200/items.json index a8744cd4..18d692c3 100644 --- a/source/behavior/items/1.16.200/items.json +++ b/source/behavior/items/1.16.200/items.json @@ -64,7 +64,9 @@ "minecraft:shooter": { "$ref": "./components/minecraft.shooter.json" }, "minecraft:throwable": { "$ref": "./components/minecraft.throwable.json" }, "minecraft:weapon": { "$ref": "./components/minecraft.weapon.json" }, - "minecraft:wearable": { "$ref": "./components/minecraft.wearable.json" } + "minecraft:wearable": { "$ref": "./components/minecraft.wearable.json" }, + + "minecraft:hand_equipped": { "type": "boolean", "title": "Hand Equipped", "description": "Is this a hand equipped item." } } }, "events": { "$ref": "./events.json" } diff --git a/source/behavior/items/items.json b/source/behavior/items/items.json index 57ef69a0..5d4c298b 100644 --- a/source/behavior/items/items.json +++ b/source/behavior/items/items.json @@ -10,7 +10,7 @@ { "if": { "properties": { "format_version": { "type": "string", "const": "1.16" } } }, "then": { "$ref": "./1.16.0/items.json" } }, { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.0" } } }, "then": { "$ref": "./1.16.0/items.json" } }, { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.100" } } }, "then": { "$ref": "./1.16.100/items.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.200" } } }, "then": { "$ref": "./1.16.100/items.json" } }, + { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.200" } } }, "then": { "$ref": "./1.16.200/items.json" } }, { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } ] }