1. Wiki
  2. /方块
  3. /minecraft:placement_filter

minecraft:placement_filter

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:placement_filter。Get GodCraft

概览

minecraft:placement_filter 是一个方块组件:写在自定义方块的 components 对象中。 限制方块可以放在哪里,并在支撑物消失时让方块被破坏,就像需要下方有泥土的花一样。

字段

字段类型默认值说明
conditionsPlacement Condition[]无规则列表:可以附着在哪些面上,以及可以放在哪些方块上。满足任意一条规则即可。

示例

写在 BP/blocks/<name>.json 的 components 对象中(值为默认值或占位值):

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

方块: 行为包

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