diff --git a/source/behavior/items/format/components/minecraft.armor.json b/source/behavior/items/format/components/armor.json similarity index 100% rename from source/behavior/items/format/components/minecraft.armor.json rename to source/behavior/items/format/components/armor.json diff --git a/source/behavior/items/format/components/minecraft.block_placer.json b/source/behavior/items/format/components/block_placer.json similarity index 100% rename from source/behavior/items/format/components/minecraft.block_placer.json rename to source/behavior/items/format/components/block_placer.json diff --git a/source/behavior/items/format/components/minecraft.cooldown.json b/source/behavior/items/format/components/cooldown.json similarity index 100% rename from source/behavior/items/format/components/minecraft.cooldown.json rename to source/behavior/items/format/components/cooldown.json diff --git a/source/behavior/items/format/components/minecraft.digger.json b/source/behavior/items/format/components/digger.json similarity index 100% rename from source/behavior/items/format/components/minecraft.digger.json rename to source/behavior/items/format/components/digger.json diff --git a/source/behavior/items/format/components/minecraft.display_name.json b/source/behavior/items/format/components/display_name.json similarity index 100% rename from source/behavior/items/format/components/minecraft.display_name.json rename to source/behavior/items/format/components/display_name.json diff --git a/source/behavior/items/format/components/minecraft.durability.json b/source/behavior/items/format/components/durability.json similarity index 100% rename from source/behavior/items/format/components/minecraft.durability.json rename to source/behavior/items/format/components/durability.json diff --git a/source/behavior/items/format/components/minecraft.dye_powder.json b/source/behavior/items/format/components/dye_powder.json similarity index 100% rename from source/behavior/items/format/components/minecraft.dye_powder.json rename to source/behavior/items/format/components/dye_powder.json diff --git a/source/behavior/items/format/components/minecraft.entity_placer.json b/source/behavior/items/format/components/entity_placer.json similarity index 100% rename from source/behavior/items/format/components/minecraft.entity_placer.json rename to source/behavior/items/format/components/entity_placer.json diff --git a/source/behavior/items/format/components/minecraft.food.json b/source/behavior/items/format/components/food.json similarity index 100% rename from source/behavior/items/format/components/minecraft.food.json rename to source/behavior/items/format/components/food.json diff --git a/source/behavior/items/format/components/minecraft.fuel.json b/source/behavior/items/format/components/fuel.json similarity index 100% rename from source/behavior/items/format/components/minecraft.fuel.json rename to source/behavior/items/format/components/fuel.json diff --git a/source/behavior/items/format/components/hand_equipped.json b/source/behavior/items/format/components/hand_equipped.json new file mode 100644 index 00000000..1384d01a --- /dev/null +++ b/source/behavior/items/format/components/hand_equipped.json @@ -0,0 +1,8 @@ +{ + "$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:hand_equiped", + "additionalProperties": false, + "required": ["texture"], + "type": "boolean", + "title": "Hand Equipped", + "description": "Is this a hand equipped item." +} diff --git a/source/behavior/items/format/components/minecraft.icon.json b/source/behavior/items/format/components/icon.json similarity index 100% rename from source/behavior/items/format/components/minecraft.icon.json rename to source/behavior/items/format/components/icon.json diff --git a/source/behavior/items/format/components/minecraft.knockback_resistance.json b/source/behavior/items/format/components/knockback_resistance.json similarity index 100% rename from source/behavior/items/format/components/minecraft.knockback_resistance.json rename to source/behavior/items/format/components/knockback_resistance.json diff --git a/source/behavior/items/format/components/max_stack_size.json b/source/behavior/items/format/components/max_stack_size.json new file mode 100644 index 00000000..649a1044 --- /dev/null +++ b/source/behavior/items/format/components/max_stack_size.json @@ -0,0 +1,9 @@ +{ + "$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:max_stack_size", + "additionalProperties": false, + "required": ["texture"], + "type": "integer", + "title": "Max Stack Size", + "description": "Maximum stack size.", + "minimum": 0 +} diff --git a/source/behavior/items/format/components/minecraft.on_use.json b/source/behavior/items/format/components/on_use.json similarity index 100% rename from source/behavior/items/format/components/minecraft.on_use.json rename to source/behavior/items/format/components/on_use.json diff --git a/source/behavior/items/format/components/minecraft.on_use_on.json b/source/behavior/items/format/components/on_use_on.json similarity index 100% rename from source/behavior/items/format/components/minecraft.on_use_on.json rename to source/behavior/items/format/components/on_use_on.json diff --git a/source/behavior/items/format/components/minecraft.projectile.json b/source/behavior/items/format/components/projectile.json similarity index 100% rename from source/behavior/items/format/components/minecraft.projectile.json rename to source/behavior/items/format/components/projectile.json diff --git a/source/behavior/items/format/components/minecraft.render_offsets.json b/source/behavior/items/format/components/render_offsets.json similarity index 100% rename from source/behavior/items/format/components/minecraft.render_offsets.json rename to source/behavior/items/format/components/render_offsets.json diff --git a/source/behavior/items/format/components/minecraft.repairable.json b/source/behavior/items/format/components/repairable.json similarity index 100% rename from source/behavior/items/format/components/minecraft.repairable.json rename to source/behavior/items/format/components/repairable.json diff --git a/source/behavior/items/format/components/minecraft.shooter.json b/source/behavior/items/format/components/shooter.json similarity index 100% rename from source/behavior/items/format/components/minecraft.shooter.json rename to source/behavior/items/format/components/shooter.json diff --git a/source/behavior/items/format/components/minecraft.throwable.json b/source/behavior/items/format/components/throwable.json similarity index 100% rename from source/behavior/items/format/components/minecraft.throwable.json rename to source/behavior/items/format/components/throwable.json diff --git a/source/behavior/items/format/components/use_duration.json b/source/behavior/items/format/components/use_duration.json new file mode 100644 index 00000000..3c7e3e0d --- /dev/null +++ b/source/behavior/items/format/components/use_duration.json @@ -0,0 +1,8 @@ +{ + "$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:use_duration", + "additionalProperties": false, + "required": ["texture"], + "type": "integer", + "title": "Use Duration", + "description": "How long to use before item is done being used." +} diff --git a/source/behavior/items/format/components/minecraft.weapon.json b/source/behavior/items/format/components/weapon.json similarity index 100% rename from source/behavior/items/format/components/minecraft.weapon.json rename to source/behavior/items/format/components/weapon.json diff --git a/source/behavior/items/format/components/minecraft.wearable.json b/source/behavior/items/format/components/wearable.json similarity index 100% rename from source/behavior/items/format/components/minecraft.wearable.json rename to source/behavior/items/format/components/wearable.json diff --git a/source/behavior/items/format/items.json b/source/behavior/items/format/items.json deleted file mode 100644 index 300127bc..00000000 --- a/source/behavior/items/format/items.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.1.16.200.items", - "description": "Minecraft items 1.16.200", - "required": ["format_version", "minecraft:item"], - "title": "Item", - "type": "object", - "properties": { - "format_version": { - "title": "Format Version", - "type": "string", - "description": "A version that tells minecraft what type of data format can be expected when reading this file." - }, - "minecraft:item": { - "additionalProperties": false, - "required": ["description"], - "type": "object", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "title": "Item", - "properties": { - "description": { - "additionalProperties": false, - "type": "object", - "title": "Description", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "properties": { - "identifier": { - "title": "Identifier", - "type": "string", - "description": "The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.", - "$ref": "../../../general/item/identifier.json" - }, - "category": { - "type": "string", - "default": "", - "description": "The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.", - "title": "Category", - "examples": ["Nature", "Equipment", "Construction", "Items"] - }, - "is_experimental": { - "type": "boolean", - "default": false, - "description": "If this item is experimental, it will only be registered if the world is marked as experimental.", - "title": "Is Experimental" - } - } - }, - "components": { - "additionalProperties": { "type": "object" }, - "type": "object", - "description": "The components of this item", - "properties": { - "minecraft:armor": { "$ref": "./components/minecraft.armor.json" }, - "minecraft:block_placer": { "$ref": "./components/minecraft.block_placer.json" }, - "minecraft:cooldown": { "$ref": "./components/minecraft.cooldown.json" }, - "minecraft:digger": { "$ref": "./components/minecraft.digger.json" }, - "minecraft:display_name": { "$ref": "./components/minecraft.display_name.json" }, - "minecraft:durability": { "$ref": "./components/minecraft.durability.json" }, - "minecraft:dye_powder": { "$ref": "./components/minecraft.dye_powder.json" }, - "minecraft:entity_placer": { "$ref": "./components/minecraft.entity_placer.json" }, - "minecraft:food": { "$ref": "./components/minecraft.food.json" }, - "minecraft:fuel": { "$ref": "./components/minecraft.fuel.json" }, - "minecraft:icon": { "$ref": "./components/minecraft.icon.json" }, - "minecraft:knockback_resistance": { "$ref": "./components/minecraft.knockback_resistance.json" }, - "minecraft:max_stack_size": { "type": "integer", "title": "Max Stack Size", "description": "Maximum stack size.", "minimum": 0 }, - "minecraft:use_duration": { - "type": "integer", - "title": "Use Duration", - "description": "How long to use before item is done being used." - }, - "minecraft:on_use": { "$ref": "./components/minecraft.on_use.json" }, - "minecraft:on_use_on": { "$ref": "./components/minecraft.on_use_on.json" }, - "minecraft:projectile": { "$ref": "./components/minecraft.projectile.json" }, - "minecraft:repairable": { "$ref": "./components/minecraft.repairable.json" }, - "minecraft:render_offsets": { "$ref": "./components/minecraft.render_offsets.json" }, - "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:hand_equipped": { "type": "boolean", "title": "Hand Equipped", "description": "Is this a hand equipped item." } - } - }, - "events": { "$ref": "./events.json" } - } - } - } -} diff --git a/source/behavior/items/format/minecraft.item.json b/source/behavior/items/format/minecraft.item.json new file mode 100644 index 00000000..676f3ac2 --- /dev/null +++ b/source/behavior/items/format/minecraft.item.json @@ -0,0 +1,71 @@ +{ + "$id": "blockception.minecraft.behavior.items", + "additionalProperties": false, + "required": ["description"], + "type": "object", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "title": "Item", + "properties": { + "description": { + "additionalProperties": false, + "type": "object", + "title": "Description", + "description": "UNDOCUMENTED", + "$comment": "UNDOCUMENTED", + "properties": { + "identifier": { + "title": "Identifier", + "type": "string", + "description": "The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.", + "$ref": "../../../general/item/identifier.json" + }, + "category": { + "type": "string", + "default": "", + "description": "The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.", + "title": "Category", + "examples": ["Nature", "Equipment", "Construction", "Items"] + }, + "is_experimental": { + "type": "boolean", + "default": false, + "description": "If this item is experimental, it will only be registered if the world is marked as experimental.", + "title": "Is Experimental" + } + } + }, + "components": { + "additionalProperties": { "type": "object" }, + "type": "object", + "description": "The components of this item", + "properties": { + "minecraft:armor": { "$ref": "./components/armor.json" }, + "minecraft:block_placer": { "$ref": "./components/block_placer.json" }, + "minecraft:cooldown": { "$ref": "./components/cooldown.json" }, + "minecraft:digger": { "$ref": "./components/digger.json" }, + "minecraft:display_name": { "$ref": "./components/display_name.json" }, + "minecraft:durability": { "$ref": "./components/durability.json" }, + "minecraft:dye_powder": { "$ref": "./components/dye_powder.json" }, + "minecraft:entity_placer": { "$ref": "./components/entity_placer.json" }, + "minecraft:food": { "$ref": "./components/food.json" }, + "minecraft:fuel": { "$ref": "./components/fuel.json" }, + "minecraft:hand_equipped": { "$ref": "./components/hand_equipped.json" }, + "minecraft:icon": { "$ref": "./components/icon.json" }, + "minecraft:knockback_resistance": { "$ref": "./components/knockback_resistance.json" }, + "minecraft:max_stack_size": { "$ref": "./components/max_stack_size.json" }, + "minecraft:on_use_on": { "$ref": "./components/on_use_on.json" }, + "minecraft:on_use": { "$ref": "./components/on_use.json" }, + "minecraft:projectile": { "$ref": "./components/projectile.json" }, + "minecraft:render_offsets": { "$ref": "./components/render_offsets.json" }, + "minecraft:repairable": { "$ref": "./components/repairable.json" }, + "minecraft:shooter": { "$ref": "./components/shooter.json" }, + "minecraft:throwable": { "$ref": "./components/throwable.json" }, + "minecraft:use_duration": { "$ref": "./components/use_duration.json" }, + "minecraft:weapon": { "$ref": "./components/weapon.json" }, + "minecraft:wearable": { "$ref": "./components/wearable.json" } + } + }, + "events": { "$ref": "./events.json" } + } +} diff --git a/source/behavior/items/items.json b/source/behavior/items/items.json index 421324cc..2a7bd8e0 100644 --- a/source/behavior/items/items.json +++ b/source/behavior/items/items.json @@ -1,16 +1,11 @@ { - "$schema": "http://json-schema.org/draft-07/schema", - "$id": "blockception.minecraft.behavior.items", - "examples": [{ "format_version": "1.16.200", "minecraft:item": { "description": { "identifier": "namespace:item" }, "components": {} } }], - "allOf": [ - { "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, "then": { "$ref": "./1.10.0/items.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/items.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.14" } } }, "then": { "$ref": "./1.14.0/items.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.14.0" } } }, "then": { "$ref": "./1.14.0/items.json" } }, - { "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.200/items.json" } }, - { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } - ] + "$id": "blockception.minecraft.behavior.1.16.200.items", + "description": "Minecraft items 1.16.200", + "required": ["format_version", "minecraft:item"], + "title": "Item", + "type": "object", + "properties": { + "format_version": { "$ref": "../../general/format_version.json" }, + "minecraft:item": { "$ref": "./format/minecraft.item.json" } + } }