Files
minecraft-bedrock-json-schemas/behavior/items/items.json

1 line
38 KiB
JSON
Raw Normal View History

{"$id":"blockception.minecraft.behavior.items","defaultSnippets":[{"label":"New item","body":{"format_version":"${1:1.20.80}","minecraft:item":{"description":{"identifier":"$2:${3:${TM_FILENAME/[\\.].*//}}","menu_category":{"category":"${4:items}"}},"components":{"minecraft:icon":"$2.${3:${TM_FILENAME/[\\.].*//}}"}}}}],"description":"Minecraft items","required":["format_version","minecraft:item"],"title":"Item","type":"object","properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:item":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"C":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"D":{"type":"string","title":"Category","description":"Determines which category this block/item will be placed under in the inventory and crafting table container screens.","enum":["construction","equipment","items","nature","none"]},"E":{"title":"Allow Off Hand","description":"The allow off hand component determines whether the item can be placed in the off hand slot of the inventory.","default":false,"examples":[true,{"value":true}],"oneOf":[{"type":"boolean"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"title":"Value","description":"Whether the item can be placed in the off hand slot","type":"boolean","default":false}}}]},"F_use_on_item":{"type":"object","title":"Allowed Block","description":"A block descriptor that allows to be placed.","properties":{"tags":{"title":"Tags","description":"Tags.","$ref":"#/definitions/G"}}},"G":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"F":{"title":"Block Placer","description":"Planter item component. planter items are items that can be planted.","type":"object","additionalProperties":false,"required":["block"],"properties":{"block":{"type":"string","description":"Set the placement block name for the planter item.","title":"Block"},"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/F_use_on_item"}},"replace_block_item":{"title":"Replace Block Item","description":"Allows you to specify that this item should replace the default item created for the data-driven block it places.","type":"boolean","default":false}}},"H":{"title":"Bundle Interaction","description":"Adds bundle-specific interactions and tooltip to the item.","type":"object","properties":{"num_viewable_slots":{"description":"The maximum number of slots in the bundle viewable by the plater. Can be from 1 to 64. Default is 12.","type":"integer","minimum":1.0,"maximum":64.0}}},"I":{"title":"Can Destroy In Creative","description":"The can destroy in creative component determines if the item will break blocks in creative when swinging.","default":true,"examples":[false,{"value":false}],"oneOf":[{"type":"boolean"},{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"title":"Value","description":"Whether the item can destroy blocks while in creative","type":"boolean","default":true}}}]},"J":{"title":"Compostable","description":"Allows items to be compostable in the composter block.","type":"object","additionalProperties":false,"required":[],"properties":{"composting_chance":{"description":"The chance of this item generating a compost layer when supplied to the composter block.","title":"Composting Chance","type":"intege