minecraft:support for you with a switch.Get GodCraftOverview
minecraft:support is a block component: it goes in the components object of a custom block. Gives the block the support shape of a fence or stairs, so other blocks can attach to it the same way. Custom stairs also need the vertical half and direction states from the placement_direction trait.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
shape | Support Shape | none | The shape to copy: "fence" or "stair". |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:support": {
"shape": {}
}
}