Better Farmland 的设计是为了改善你的农田体验。
但对于那些想要更高级功能的人来说,它也有其他功能。
如果你对这个插件/模组有任何建议,请使用 [讨论](https://www.spigotmc.org/threads/better-farmland.566196/) 功能。
这个模组也存在为 [spigot](https://www.spigotmc.org/resources/better-farmland.103677/) 的插件。
对于开发者:如果你想扩展我的模组或使其兼容,你可以使用我的 [repo](https://repo.rafa.run/)。
## 示例 1
```
{
"configVersion": 1,
"mod": {},
"event": {
"prevent": true,
"crops": {
"change": true,
"changes": [
{
"use": true,
"sound": {
"sound": "minecraft:block.crop.break",
"volume": 1.0,
"pitch": 1.0
},
"from": 0,
"to": "minecraft:air",
"drop": {
"item": 0,
"amount": -1
},
"newAge": -1
},
{
"use": false,
"sound": {
"sound": "minecraft:block.crop.break",
"volume": 1.0,
"pitch": 1.0
},
"from": 0,
"to": 0,
"drop": null,
"newAge": 0
}
]
}
}
}
```
# 文档
## 文件
```
Config » config/betterfarmland/config.json
```
## 配置
```
{
"configVersion": 2,
"mod": {},
"rightClickHarvest": {
"use": false,
"sounds": [
{
"sound": "minecraft:block.crop.break",
"volume": 1.0,
"pitch": 1.0
},
{
"sound": "minecraft:block.pumpkin.carve",
"volume": 0.75,
"pitch": 1.0
}
]
},
"landedUpon": {
"preventBreak": true,
"crops": {
"change": false,
"changes": [
{
"use": false,
"sound": {
"sound": "minecraft:block.crop.break",
"volume": 1.0,
"pitch": 1.0
},
"from": 0,
"to": "minecraft:air",
"drop": {
"item": 0,
"amount": -1
},
"newAge": -1
},
{
"use": false,
"sound": {
"sound": "minecraft:block.crop.break",
"volume": 1.0,
"pitch": 1.0
},
"from": 0,
"to": 0,
"drop": null,
"newAge": 0
}
]
}
}
}
```
```
configVersion: 设置为当前配置版本。
prevent: 插件是否应该取消事件。效果:农田没有任何变化。
change 和 changes: 在 change 中,你可以指定是否使用 changes 功能。changes 功能确定了实体/玩家跳到农田上时应该发生什么。
# rightClickHarvest:
use: 是否使用右键功能。
sounds: 在收获植物时播放哪些声音。
# landedUpon:
use: 规则是否生效。
sound: 使用此规则时播放什么声音。
from: 从哪个方块
to: 到哪个方块
drop: 你可以指定应该掉落什么物品。
newAge: 你可以更改新方块的年龄。-1 = 与旧的相同
```