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

minecraft:strength

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

概览

minecraft:strength 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 设置实体的强度,它决定实体能携带多少物品,比如羊驼箱子的大小。

字段

字段类型默认值说明
maxInteger"5"这个实体能拥有的最高强度。
valueInteger"1"实体初始的强度。

示例

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

BP/entities/<name>.json
{
  "minecraft:strength": {
    "max": "5",
    "value": "1"
  }
}

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