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

minecraft:entity_fall_on

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

概览

minecraft:entity_fall_on 是一个方块组件:写在自定义方块的 components 对象中。 设置生物或玩家至少要从多高摔到这个方块上才算落地,让脚本可以对落地做出反应。

字段

字段类型默认值说明
min_fall_distancenumber0落地被计算在内所需的下落高度(方块)。

示例

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

BP/blocks/<name>.json
{
  "minecraft:entity_fall_on": {
    "min_fall_distance": 0
  }
}

方块: 行为包

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