概览
minecraft:strength 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 设置实体的强度,它决定实体能携带多少物品,比如羊驼箱子的大小。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
max | Integer | "5" | 这个实体能拥有的最高强度。 |
value | Integer | "1" | 实体初始的强度。 |
示例
写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):
BP/entities/<name>.json
{
"minecraft:strength": {
"max": "5",
"value": "1"
}
}