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

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