Block Documentation - minecraft:crafting_table
minecraft:crafting_table
is a JSON Object
component that makes your block into a custom crafting table which enables the crafting table UI and the ability to craft recipes. This component supports only recipe_shaped
and recipe_shapeless
typed recipes and not others like recipe_furnace
or recipe_brewing_mix
. If there are two recipes for one item, the recipe book will pick the first that was parsed. If two input recipes are the same, crafting may assert and the resulting item may vary.
Default Value of the Component
This component is specified as a JSON Object
, so it does not have a default value. You must provide this component in order for your block to become a custom crafting table.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
crafting_tags | not set | Array | Defines the tags recipes should define to be crafted on this table. Limited to 64 tags. Each tag is limited to 64 characters. |
table_name | not set | String | Specifies the language file key that maps to what text will be displayed in the UI of this table. If the string given can not be resolved as a loc string, the raw string given will be displayed. If this field is omitted, the name displayed will default to the name specified in the "display_name" component. If this block has no "display_name" component, the name displayed will default to the name of the block. |
Example
"minecraft:crafting_table": {
"crafting_tags": ["crafting_table", "custom_crafting_tag"],
"table_name": "My Crafting Table"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈