From 3b3d192154eecc1aa42aeabba89abe9d54583dc1 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sun, 3 Jan 2021 18:59:21 +0100 Subject: [PATCH] Adding item components --- behaviour/items/1.16.0/items.json | 16 +++- .../1.16.100/components/minecraft.armor.json | 22 ++++++ .../components/minecraft.block_placer.json | 38 ++++++++++ .../components/minecraft.cooldown.json | 21 +++++ .../1.16.100/components/minecraft.digger.json | 65 ++++++++++++++++ .../components/minecraft.display_name.json | 16 ++++ .../components/minecraft.durability.json | 35 +++++++++ .../components/minecraft.dye_powder.json | 33 ++++++++ .../components/minecraft.entity_placer.json | 11 +++ .../1.16.100/components/minecraft.food.json | 11 +++ .../1.16.100/components/minecraft.fuel.json | 11 +++ .../1.16.100/components/minecraft.icon.json | 11 +++ .../minecraft.knockback_resistance.json | 11 +++ .../1.16.100/components/minecraft.on_use.json | 11 +++ .../components/minecraft.on_use_on.json | 11 +++ .../components/minecraft.projectile.json | 11 +++ .../components/minecraft.repairable.json | 11 +++ .../components/minecraft.shooter.json | 11 +++ .../components/minecraft.throwable.json | 11 +++ .../1.16.100/components/minecraft.weapon.json | 11 +++ .../components/minecraft.wearable.json | 0 behaviour/items/1.16.100/items.json | 76 +++++++++++++++++++ 22 files changed, 452 insertions(+), 2 deletions(-) create mode 100644 behaviour/items/1.16.100/components/minecraft.armor.json create mode 100644 behaviour/items/1.16.100/components/minecraft.block_placer.json create mode 100644 behaviour/items/1.16.100/components/minecraft.cooldown.json create mode 100644 behaviour/items/1.16.100/components/minecraft.digger.json create mode 100644 behaviour/items/1.16.100/components/minecraft.display_name.json create mode 100644 behaviour/items/1.16.100/components/minecraft.durability.json create mode 100644 behaviour/items/1.16.100/components/minecraft.dye_powder.json create mode 100644 behaviour/items/1.16.100/components/minecraft.entity_placer.json create mode 100644 behaviour/items/1.16.100/components/minecraft.food.json create mode 100644 behaviour/items/1.16.100/components/minecraft.fuel.json create mode 100644 behaviour/items/1.16.100/components/minecraft.icon.json create mode 100644 behaviour/items/1.16.100/components/minecraft.knockback_resistance.json create mode 100644 behaviour/items/1.16.100/components/minecraft.on_use.json create mode 100644 behaviour/items/1.16.100/components/minecraft.on_use_on.json create mode 100644 behaviour/items/1.16.100/components/minecraft.projectile.json create mode 100644 behaviour/items/1.16.100/components/minecraft.repairable.json create mode 100644 behaviour/items/1.16.100/components/minecraft.shooter.json create mode 100644 behaviour/items/1.16.100/components/minecraft.throwable.json create mode 100644 behaviour/items/1.16.100/components/minecraft.weapon.json create mode 100644 behaviour/items/1.16.100/components/minecraft.wearable.json create mode 100644 behaviour/items/1.16.100/items.json diff --git a/behaviour/items/1.16.0/items.json b/behaviour/items/1.16.0/items.json index 0bc26245..d024c7fd 100644 --- a/behaviour/items/1.16.0/items.json +++ b/behaviour/items/1.16.0/items.json @@ -25,9 +25,21 @@ "identifier": { "title": "Identifier", "type": "string", - "description": "TODO", + "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" + }, + "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": { diff --git a/behaviour/items/1.16.100/components/minecraft.armor.json b/behaviour/items/1.16.100/components/minecraft.armor.json new file mode 100644 index 00000000..a176282f --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.armor.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:armor", + "title": "Armor", + "description": "The armor item componenent determines the amount of protection you have in your armor item.", + "type": "object", + "additionalProperties": false, + "required": ["protection", "texture_type"], + "properties": { + "protection": { + "type": "number", + "description": "How much protection does the armor item have.", + "title": "protection" + }, + "texture_type": { + "type": "string", + "default": "", + "description": "Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.", + "title": "texture type" + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.block_placer.json b/behaviour/items/1.16.100/components/minecraft.block_placer.json new file mode 100644 index 00000000..39d613da --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.block_placer.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:block_placer", + "title": "Block placer", + "description": "Planter item component. planter items are items that can be planted.", + "type": "object", + "additionalProperties": false, + "required": ["block"], + "definitions": { + "use_on_item": { + "type": "object", + "title": "Allowed block", + "description": "A block descriptor that allows to be placed", + "properties": { + "tags": { + "title": "Tags", + "description": "Tags", + "$ref": "../../../../general/molang/1.8.0/string.json" + } + } + } + }, + "properties": { + "block": { + "type": "string", + "description": "Set the placement block name for the planter item.", + "title": "protection" + }, + "use_on": { + "description": "List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.", + "title": "Use on", + "type": "array", + "items": { + "$ref": "#/definitions/use_on_item" + } + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.cooldown.json b/behaviour/items/1.16.100/components/minecraft.cooldown.json new file mode 100644 index 00000000..834b7230 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.cooldown.json @@ -0,0 +1,21 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:cooldown", + "title": "Cooldown", + "description": "Cool down time for a component. After you use an item it becomes unusable for the duration specified by the 'cool down time' setting in this component.", + "type": "object", + "additionalProperties": false, + "required": ["category", "duration"], + "properties": { + "category": { + "type": "string", + "description": "The type of cool down for this item.", + "title": "Category" + }, + "duration": { + "description": "The duration of time this item will spend cooling down before becoming usable again.", + "title": "Duration", + "type": "number" + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.digger.json b/behaviour/items/1.16.100/components/minecraft.digger.json new file mode 100644 index 00000000..233c9f53 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.digger.json @@ -0,0 +1,65 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:digger", + "title": "Digger", + "description": "Digger item. Component put on items that dig.", + "type": "object", + "additionalProperties": false, + "required": ["destroy_speeds"], + "properties": { + "use_efficiency": { + "title": "Use efficiency", + "type": "boolean", + "description": "Use efficiency? Default is set to false.", + "default": "false" + }, + "destroy_speeds": { + "type": "array", + "title": "Destroy speeds", + "description": "Destroy speed per block.", + "items": { + "title": "Destroy speed", + "description": "Destroy speed per block.", + "type": "object", + "additionalProperties": false, + "properties": { + "speed": { + "title": "Speed", + "description": "Speed", + "type": "number" + }, + "on_dig": { + "type": "string", + "title": "On dig", + "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" + }, + "block": { + "title": "Block", + "oneOf": [ + { + "type": "string", + "description": "The block identifier" + }, + { + "type": "object", + "additionalProperties": false, + "description": "Block descriptor", + "properties": { + "any_tag": { + "type": "array", + "title": "Any block tag", + "description": "The block tag", + "items": { + "type": "string", + "title": "Block tag" + } + } + } + } + ] + } + } + } + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.display_name.json b/behaviour/items/1.16.100/components/minecraft.display_name.json new file mode 100644 index 00000000..33ed9390 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.display_name.json @@ -0,0 +1,16 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:display_name", + "title": "display_name", + "description": "Display Name item component. Display Names display the name of an item.", + "type": "object", + "additionalProperties": false, + "required": ["value"], + "properties": { + "value": { + "type": "string", + "title": "Value", + "description": "Set the display name for an item." + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.durability.json b/behaviour/items/1.16.100/components/minecraft.durability.json new file mode 100644 index 00000000..dd9f9dc9 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.durability.json @@ -0,0 +1,35 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:durability", + "title": "Durability", + "description": "Durability item component: how much damage can this item take before breaking.", + "type": "object", + "additionalProperties": false, + "required": ["damage_chance"], + "properties": { + "damage_chance": { + "type": "object", + "title": "Damange chance", + "description": "Damange chance", + "additionalProperties": false, + "required": ["min", "max"], + "properties": { + "min": { + "title": "Min", + "type": "integer", + "description": "The minimum" + }, + "max": { + "title": "Max", + "type": "integer", + "description": "The minimum" + } + } + }, + "max_durability": { + "title": "Max durability", + "description": "Max durability is the amount of damage that this item can take before breaking.", + "type": "number" + } + } +} diff --git a/behaviour/items/1.16.100/components/minecraft.dye_powder.json b/behaviour/items/1.16.100/components/minecraft.dye_powder.json new file mode 100644 index 00000000..f8a0e56c --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.dye_powder.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:dye_powder", + "title": "Dye powder", + "description": "Dye powder, there are 16 kinds of dye.", + "type": "object", + "additionalProperties": false, + "required": ["color"], + "properties": { + "color": { + "type": "string", + "title": "Color", + "description": "Defines what color the dye is.", + "enum": [ + "brown", + "white", + "black", + "blue", + "cyan", + "gray", + "green", + "lightblue", + "silver", + "lime", + "magenta", + "pink", + "purple", + "red", + "yellow" + ] + } + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.entity_placer.json b/behaviour/items/1.16.100/components/minecraft.entity_placer.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.entity_placer.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.food.json b/behaviour/items/1.16.100/components/minecraft.food.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.food.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.fuel.json b/behaviour/items/1.16.100/components/minecraft.fuel.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.fuel.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.icon.json b/behaviour/items/1.16.100/components/minecraft.icon.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.icon.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.knockback_resistance.json b/behaviour/items/1.16.100/components/minecraft.knockback_resistance.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.knockback_resistance.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.on_use.json b/behaviour/items/1.16.100/components/minecraft.on_use.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.on_use.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.on_use_on.json b/behaviour/items/1.16.100/components/minecraft.on_use_on.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.on_use_on.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.projectile.json b/behaviour/items/1.16.100/components/minecraft.projectile.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.projectile.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.repairable.json b/behaviour/items/1.16.100/components/minecraft.repairable.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.repairable.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.shooter.json b/behaviour/items/1.16.100/components/minecraft.shooter.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.shooter.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.throwable.json b/behaviour/items/1.16.100/components/minecraft.throwable.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.throwable.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.weapon.json b/behaviour/items/1.16.100/components/minecraft.weapon.json new file mode 100644 index 00000000..f8203bd2 --- /dev/null +++ b/behaviour/items/1.16.100/components/minecraft.weapon.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items.minecraft:", + "title": "", + "description": "", + "type": "object", + "additionalProperties": false, + "required": [""], + "properties": { + } +} \ No newline at end of file diff --git a/behaviour/items/1.16.100/components/minecraft.wearable.json b/behaviour/items/1.16.100/components/minecraft.wearable.json new file mode 100644 index 00000000..e69de29b diff --git a/behaviour/items/1.16.100/items.json b/behaviour/items/1.16.100/items.json new file mode 100644 index 00000000..b3e5b2ad --- /dev/null +++ b/behaviour/items/1.16.100/items.json @@ -0,0 +1,76 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "blockception.minecraft.behaviour.1.16.100.items", + "description": "Minecraft items 1.16.100", + "required": ["format_version", "minecraft:item"], + "title": "Item", + "properties": { + "format_version": { + "type": "string", + "description": "TODO description", + "title": "TODO title" + }, + "minecraft:item": { + "additionalProperties": false, + "required": ["description"], + "type": "object", + "description": "TODO", + "title": "Minecraft item", + "properties": { + "description": { + "additionalProperties": false, + "type": "object", + "title": "Description", + "description": "TODO", + "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" + }, + "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": false, + "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: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: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" } + } + } + } + } + } +}