创建农夫傀儡
垂直放置两个干草块,并在顶部放置一个雕刻南瓜。如果你拥有生成权限且未达到傀儡数量上限,该结构将变成一个农夫傀儡。在此过程中,南瓜和干草块会被消耗。
功能特性
- 农夫傀儡会在可配置的半径范围内搜索成熟的作物和果实方块。
- 支持的作物包括小麦、胡萝卜、马铃薯、甜菜根、西瓜、南瓜、下界疣、甘蔗、可可豆、甜浆果、仙人掌和竹子。全局设置和每个傀儡的设置可以选择具体收割哪些类型的作物。
- 当傀儡背包中包含对应的种子或作物物品时,成熟的小麦、胡萝卜、马铃薯、甜菜根和下界疣会被重新种植。西瓜和南瓜的茎保持完整;成熟的果实方块会被收割。
- 可可豆和甜浆果灌木会被收割并保留在较早的生长阶段。甘蔗、仙人掌和竹子会从它们较高的生长部分进行收割,从而保留其基部。
- 每个傀儡都有一个 36 格的背包。傀儡的所有者或服务器管理员可以通过右键点击它来打开背包。当傀儡死亡时,背包中的物品会掉落。
- 启用后,傀儡会将不可重新种植的物品存入最近的箱子中。它们会保留用于重新种植的小麦种子、胡萝卜、马铃薯、甜菜根种子、西瓜种子、南瓜种子和下界疣。存入操作按照配置的时间间隔运行,当背包容量超过 75% 时也可能尝试存入。
- 傀儡的所有权、存储的背包内容以及个别设置会在服务器重启和区块卸载后保持不变。
- 静止不动的傀儡会定期尝试通过移动到成熟作物附近的安全位置来自我恢复。如果没有合适的作物或安全位置,它会停留在原地。
命令
主要命令别名为 /fg 和 /fgolem。
| 命令 |
描述 |
权限 |
/farmergolem help |
显示命令帮助和创建结构说明。 |
无 |
/farmergolem list |
列出你的傀儡、坐标、距离以及存储的物品数量。 |
farmergolem999.list |
/farmergolem locate [number] |
显示你编号为某个数字的傀儡所在的维度及坐标;默认为 1 号。 |
farmergolem999.list |
/farmergolem settings <number> <setting> <value> |
更改你拥有的某个傀儡的个别设置。 |
傀儡所有者 |
/farmergolem info <player> |
显示其他玩家的傀儡、位置、生命值及背包状态。 |
farmergolem999.info |
/farmergolem reload |
重载全局配置,并将更改后的默认值应用于未覆盖这些设置的傀儡。 |
farmergolem999.reload |
settings 命令接受的个别设置:
searchRadius 和 chestSearchRadius:1 到 8 之间的整数。
harvestInterval 和 depositInterval:1 到 3600 秒之间的数值。
chestEnabled:true 或 false。
cropTypes:以逗号分隔的作物名称,例如 WHEAT,CARROTS,SWEET_BERRIES。
作物名称为 WHEAT、CARROTS、POTATOES、BEETROOTS、MELON、PUMPKIN、NETHER_WART、SUGAR_CANE、COCOA、SWEET_BERRIES、CACTUS 和 BAMBOO。个别设置会与傀儡一起保存,并与全局默认值分开存储。
权限
| 权限 |
默认值 |
用途 |
farmergolem999.spawn |
所有人 |
创建农夫傀儡。 |
farmergolem999.list |
所有人 |
列出并定位你自己的傀儡。 |
farmergolem999.info |
操作员 |
查看其他玩家的傀儡。 |
farmergolem999.reload |
操作员 |
重载配置。 |
farmergolem999.manage |
操作员 |
打开任何农夫傀儡的背包。 |
farmergolem999.bypass.limit |
操作员 |
忽略每位玩家的数量上限。 |
farmergolem999.* |
操作员 |
授予所有 FarmerGolem999 权限。 |
配置
以下全局选项位于 config.yml 中。所示值为新傀儡以及没有个别覆盖设置的傀儡的默认值。现有安装在升级时会保留其当前的 cropTypes 列表;如果希望在全局范围内收割这些新增支持的作物,请将其作物名称添加到此列表中。
| 选项 |
默认值 |
效果 |
searchRadius |
8 |
水平方向搜索作物的半径(单位:方块),限制在 1–8 之间。作物扫描范围还包括傀儡上下各三个方块的高度。 |
chestSearchRadius |
8 |
向各个方向搜索箱子的距离,限制在 1–8 之间。 |
chestEnabled |
true |
启用自动存入箱子功能。 |
debugMode |
false |
在服务器日志中添加详细的插件活动消息。 |
maxGolemsPerPlayer |
5 |
每位玩家最多拥有的傀儡数量;使用 -1 表示无限制。 |
harvestInterval |
1 |
两次作物扫描之间的时间间隔(秒),限制在 1–3600 之间。 |
depositInterval |
30 |
两次自动存入尝试之间的时间间隔(秒),限制在 1–3600 之间。 |
stuckRecoveryDelaySeconds |
60 |
在无移动状态下等待多少秒后才尝试安全恢复,限制在 10–3600 之间。 |
cropTypes |
全新安装时支持的所有作物 |
新傀儡及未被覆盖设置的傀儡所收割的作物类型全局列表。 |
messages |
内置消息 |
可自定义的玩家消息;支持 & 颜色代码。 |
使用 /farmergolem settings 更改的傀儡设置将覆盖该傀儡对应的全局选项。/farmergolem reload 会更新全局默认值,同时保留那些个别覆盖设置。
Creating a Farmer Golem
Build two hay blocks vertically and place a carved pumpkin on top. If you have the spawn permission and have not reached your golem limit, the structure becomes a Farmer Golem. The pumpkin and hay blocks are consumed in the process.
Features
- Farmer Golems search within a configurable radius for mature crops and fruit blocks.
- Supported crops are wheat, carrots, potatoes, beetroot, melons, pumpkins, nether wart, sugar cane, cocoa, sweet berries, cactus, and bamboo. The global and per-golem crop lists can select which types are harvested.
- Mature wheat, carrots, potatoes, beetroot, and nether wart are replanted when the golem has the matching seed or crop item in its inventory. Melon and pumpkin stems are left intact; mature fruit blocks are harvested.
- Cocoa and sweet berry bushes are harvested and left at an earlier growth stage. Sugar cane, cactus, and bamboo are harvested from their upper growth segments so their base remains.
- Each golem has a 36-slot inventory. Its owner or a server administrator can right-click it to open the inventory. Items in the inventory drop when the golem dies.
- When enabled, golems deposit non-replanting items into the nearest nearby chest. They retain wheat seeds, carrots, potatoes, beetroot seeds, melon seeds, pumpkin seeds, and nether wart for replanting. Depositing runs on its configured interval and may also be attempted when the inventory is more than 75% full.
- Golem ownership, stored inventory, and individual settings persist across server restarts and chunk unloads.
- A stationary golem periodically attempts to recover by moving safely near a mature crop. If there is no suitable crop or safe position, it stays where it is.
Commands
The main command aliases are /fg and /fgolem.
| Command |
Description |
Permission |
/farmergolem help |
Shows command help and the creation structure. |
None |
/farmergolem list |
Lists your golems, coordinates, distance, and stored item counts. |
farmergolem999.list |
/farmergolem locate [number] |
Shows the world and coordinates of one of your numbered golems; defaults to number 1. |
farmergolem999.list |
/farmergolem settings <number> <setting> <value> |
Changes an individual setting for one of your golems. |
Golem owner |
/farmergolem info <player> |
Shows another player's golems, locations, health, and inventory status. |
farmergolem999.info |
/farmergolem reload |
Reloads global configuration and applies changed defaults to golems that do not override them. |
farmergolem999.reload |
Individual settings accepted by the settings command:
searchRadius and chestSearchRadius: whole numbers from 1 to 8.
harvestInterval and depositInterval: seconds from 1 to 3600.
chestEnabled: true or false.
cropTypes: comma-separated crop names, such as WHEAT,CARROTS,SWEET_BERRIES.
Crop names are WHEAT, CARROTS, POTATOES, BEETROOTS, MELON, PUMPKIN, NETHER_WART, SUGAR_CANE, COCOA, SWEET_BERRIES, CACTUS, and BAMBOO. Individual settings are saved with the golem and remain separate from global defaults.
Permissions
| Permission |
Default |
Purpose |
farmergolem999.spawn |
Everyone |
Create Farmer Golems. |
farmergolem999.list |
Everyone |
List and locate your own golems. |
farmergolem999.info |
Operators |
View another player's golems. |
farmergolem999.reload |
Operators |
Reload configuration. |
farmergolem999.manage |
Operators |
Open any Farmer Golem's inventory. |
farmergolem999.bypass.limit |
Operators |
Ignore the per-player golem limit. |
farmergolem999.* |
Operators |
Grants all FarmerGolem999 permissions. |
Configuration
The following global options are in config.yml. The values shown are defaults for new golems and for golems without an individual override. Existing installations keep their current cropTypes list when upgrading; add any newly supported crop names there if you want those crops harvested globally.
| Option |
Default |
Effect |
searchRadius |
8 |
Horizontal crop search radius in blocks, clamped to 1–8. Crop scanning covers three blocks below and above the golem as well. |
chestSearchRadius |
8 |
Chest search distance in each direction, clamped to 1–8. |
chestEnabled |
true |
Enables automatic chest deposits. |
debugMode |
false |
Adds detailed plugin activity messages to the server log. |
maxGolemsPerPlayer |
5 |
Maximum owned golems; use -1 for no limit. |
harvestInterval |
1 |
Seconds between crop scans, clamped to 1–3600. |
depositInterval |
30 |
Seconds between automatic deposit attempts, clamped to 1–3600. |
stuckRecoveryDelaySeconds |
60 |
Seconds without movement before safe recovery is attempted, clamped to 10–3600. |
cropTypes |
All supported crops on a fresh install |
Global list of crop types new and non-overridden golems harvest. |
messages |
Built-in messages |
Customizable player messages; & color codes are supported. |
A golem setting changed with /farmergolem settings overrides the matching global option for that golem. /farmergolem reload updates global defaults while preserving those individual overrides.
评论 0
登录后参与评分
还没有评论,来抢沙发吧