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

minecraft:placement_filter

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

Overview

minecraft:placement_filter is a block component: it goes in the components object of a custom block. Limits where the block can be placed and makes it break if its support goes away, like a flower that needs dirt below it.

Fields

FieldTypeDefaultDescription
conditionsPlacement Condition[]noneList of rules: which faces it may attach to and which blocks it may sit on. Meeting any one rule is enough.

Example

Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):

BP/blocks/<name>.json
{
  "minecraft:placement_filter": {
    "conditions": []
  }
}

Blocks: Behavior pack

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