Updated item components

This commit is contained in:
DaanV2
2021-09-21 23:24:24 +02:00
parent a5fb7c8da7
commit a742b8f721
5 changed files with 24 additions and 20 deletions

View File

@@ -1,17 +1,18 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:armor", "$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:armor",
"title": "Armor", "title": "Armor",
"description": "The armor item componenent determines the amount of protection you have in your armor item.", "description": "The armor item component determines the amount of protection you have in your armor item.",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["protection", "texture_type"], "required": ["protection", "texture_type"],
"properties": { "properties": {
"protection": { "type": "number", "description": "How much protection does the armor item have.", "title": "Protection" }, "protection": { "type": "integer", "description": "How much protection does the armor item have.", "title": "Protection", "minimum": 0 },
"texture_type": { "texture_type": {
"type": "string", "type": "string",
"default": "", "default": "gold",
"description": "Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.", "description": "Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.",
"title": "Texture Type" "title": "Texture Type",
"enum": ["gold", "none", "leather", "chain", "iron", "diamond", "elytra", "turtle", "netherite"]
} }
} }
} }

View File

@@ -14,7 +14,7 @@
} }
}, },
"properties": { "properties": {
"block": { "type": "string", "description": "Set the placement block name for the planter item.", "title": "Protection" }, "block": { "type": "string", "description": "Set the placement block name for the planter item.", "title": "Block" },
"use_on": { "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.", "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", "title": "Use On",

View File

@@ -45,6 +45,7 @@
} }
} }
} }
} },
"on_dig": { "type": "string", "title": "On Dig", "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" }
} }
} }

View File

@@ -11,21 +11,22 @@
"title": "Color", "title": "Color",
"description": "Defines what color the dye is.", "description": "Defines what color the dye is.",
"enum": [ "enum": [
"brown",
"white",
"black", "black",
"blue",
"cyan",
"gray",
"green",
"lightblue",
"silver",
"lime",
"magenta",
"pink",
"purple",
"red", "red",
"yellow" "green",
"brown",
"blue",
"purple",
"cyan",
"silver",
"gray",
"pink",
"lime",
"yellow",
"lightblue",
"magenta",
"orange",
"white"
] ]
} }
} }

View File

@@ -11,11 +11,12 @@
"description": "equipment_slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest", "description": "equipment_slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest",
"type": "string", "type": "string",
"enum": [ "enum": [
"slot.armor.legs",
"none",
"slot.weapon.mainhand", "slot.weapon.mainhand",
"slot.weapon.offhand", "slot.weapon.offhand",
"slot.armor.head", "slot.armor.head",
"slot.armor.chest", "slot.armor.chest",
"slot.armor.legs",
"slot.armor.feet", "slot.armor.feet",
"slot.hotbar", "slot.hotbar",
"slot.inventory", "slot.inventory",