Adding item components

This commit is contained in:
DaanV2
2021-01-03 18:59:21 +01:00
parent 8979b76808
commit 3b3d192154
22 changed files with 452 additions and 2 deletions

View File

@@ -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": {

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}
}
}

View File

@@ -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"
}
}
}

View File

@@ -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"
}
}
}
}
]
}
}
}
}
}
}

View File

@@ -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."
}
}
}

View File

@@ -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"
}
}
}

View File

@@ -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"
]
}
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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": {
}
}

View File

@@ -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" }
}
}
}
}
}
}