Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/block_placer.json

32 lines
1.2 KiB
JSON
Raw Normal View History

2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id": "blockception.minecraft.behavior.items.minecraft:block_placer",
2022-06-07 20:42:18 +02:00
"title": "Block Placer",
"description": "Planter item component. planter items are items that can be planted.",
"type": "object",
"additionalProperties": false,
2024-11-18 19:33:19 +05:00
"required": [ "block" ],
2022-06-07 20:42:18 +02:00
"definitions": {
"use_on_item": {
"type": "object",
"title": "Allowed Block",
2022-07-22 19:41:04 +02:00
"description": "A block descriptor that allows to be placed.",
"properties": { "tags": { "title": "Tags", "description": "Tags.", "$ref": "../../../../molang/string.json" } }
2022-06-07 20:42:18 +02:00
}
},
"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/use_on_item" }
2024-11-18 19:33:19 +05:00
},
"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
2022-06-07 20:42:18 +02:00
}
}
}