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

minecraft:leashable

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

概览

minecraft:leashable 是一个方块组件:写在自定义方块的 components 对象中。 让玩家可以把拴绳系在方块上,就像栅栏柱一样。

字段

字段类型默认值说明
offsetvec3[0,0.25,0]拴绳结的位置,从方块中心开始计算。

示例

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

BP/blocks/<name>.json
{
  "minecraft:leashable": {
    "offset": [
      0,
      0.25,
      0
    ]
  }
}

方块: 行为包

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