1. Wiki
  2. /实体
  3. /minecraft:is_collidable

minecraft:is_collidable

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

概览

minecraft:is_collidable 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让其他生物撞上这个生物而不是穿过去,甚至可以站在它身上。两个生物都需要 minecraft:collision_box,并且这个生物保持静止时效果最好。

示例

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

BP/entities/<name>.json
{
  "minecraft:is_collidable": {}
}

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