概览
minecraft:grows_crop 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体经过农作物时有概率催熟它们,就像带着花粉的蜜蜂。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
charges | integer | 10 | 可以催熟农作物的次数。 |
chance | number | 0 | 每刻催熟农作物的概率,范围 0 到 1。 |
示例
写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):
BP/entities/<name>.json
{
"minecraft:grows_crop": {
"charges": 10,
"chance": 0
}
}