1. Wiki
  2. /Blocks
  3. /minecraft:support

minecraft:support

Don't want to write this by hand? GodCraft sets minecraft:support for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
shapeSupport ShapenoneThe 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": {}
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more