minecraft:crafting_table for you with a switch.Get GodCraftOverview
minecraft:crafting_table is a block component: it goes in the components object of a custom block. Turns the block into a crafting station that opens the 3x3 crafting screen. Recipes with a matching tag can be crafted on it.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
crafting_tags | string[] | none | Tags that recipes list in their "tags" to be made on this table, like "crafting_table" or your own tag. |
table_name | string | "" | Title shown at the top of the crafting screen: a translation key or plain text. If left out, the block's name is used. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:crafting_table": {
"crafting_tags": [],
"table_name": ""
}
}