LavaGolem
五个辛勤工作的铜傀儡,自动化处理原版中最枯燥的部分——无需资源包、无需客户端模组,且不破坏生存体验。 你仍需自行构建基础设施;傀儡只是帮你省去无休止的来回奔波。
厌倦了为了熔炼一些矿石而建造巨型超级熔炉吗?那意味着成堆的熔炉、漏斗连线、矿车循环、物品分拣器以及半个区块的红石电路?只需在几个熔炉和几个贴有标签的箱子旁放置一个 熔炉傀儡 (Smelter Golem) 即可。受够了站在酿造台前一瓶一瓶地更换药水瓶?那是 炼金术士傀儡 (Alchemist Golem) 的工作。厌倦了在脆弱的 AFK 钓鱼装置上按住右键吗?渔夫傀儡 (Fisher Golem) 会代替你的鱼竿进行作业。想要自动收集滴水石-锅岩浆农场产生的岩浆?这就是 岩浆傀儡 (Lava Golem) 的用武之地。而 信使傀儡 (Courier Golem) 则在这些设施之间运输货物,让你的工作站不必堆成一团。
五个小小的傀儡可以取代整整一房间的各种装置。
傀儡详解
岩浆傀儡 - 岩浆搬运工
原版已经允许你让岩浆源通过尖锐滴水石滴入锅中,从而缓慢积累岩浆——但你必须站在那里用桶将其舀出。岩浆傀儡代劳:它拿起一个空桶,在全满的岩浆锅中装满,然后将岩浆桶放入你的存储系统中。永不停歇。
熔炉傀儡 - 熔炉守护者
为你的熔炉供料并运出成品,这样你就不需要漏斗和铁轨组成的熔炼工厂了。它非常智能:
- 读取库存 - 从
[Smelt](熔炼)箱子中取出最充足的原料。
- 选择正确的燃料 - 大批次使用岩浆桶,小批次使用煤炭,如果只有木头就用木头——尺寸恰到好处,确保没有浪费。
- 分散负载 - 将大量原料均匀分配到所有熔炉中并行运行,而不是全部倾倒进其中一个。
- 闭环岩浆利用 - 耗尽的岩浆桶变为空桶;傀儡将其取出并返还,防止堵塞熔炉。
- 工作模式 - 右键点击熔炉傀儡打开其菜单,设置为 平衡 (Balanced)、仅加载 (Load only) 或 仅收集 (Collect only)。如果你喜欢,可以运行一个负责加载的傀儡和一个负责收集的傀儡。
炼金术士傀儡 - 酿造者
操作你的酿造台,让你再也不用站在那里一瓶一瓶地更换药水瓶。一个箱子容纳一切 - 玻璃瓶、下界疣、烈焰粉和原料都投入单个 [Brew](酿造)容器中,傀儡会自动识别每种物品的用途。
- 自行取水 - 在水源或水锅中为瓶子注水(雨水和滴水石可免费补充水锅)。
- 通过填充箱子来设定配方 - 它会分阶段酿造(水 → 下界疣 → 尴尬药水 → 效果原料 → 一种修饰剂),并在原料充足时持续进行。箱子里有下界疣、烈焰粉和红石吗?那就是长效力量药水。它只启动能够完成的批次,因此绝不会生产出没人想要的尴尬药水基底。
- 选择允许的酿造列表 - 右键点击它以查看每种药水的列表,显示为真实的药水图标。点击可切换每种药水(包括修饰剂)的开/关状态,即使原料在箱子里,被禁用的原料也会被忽略。
- 智能处理烈焰粉 - 它既是燃料又是力量药水原料,因此傀儡仅在燃料槽保留 一小撮(已够酿造20次),其余留给药水制作。
- 研磨烈焰棒 - 如果你拥有的是烈焰棒而非粉末,它会在合成台上将其研磨成粉末——使用原版真正的合成配方。
渔夫傀儡 - 垂钓者
AFK 钓鱼虽然存在,但它是一个精巧易碎的装置,打个喷嚏都可能弄坏它,而且需要你按住按钮。渔夫傀儡从你的 [Rods](鱼竿)箱子中取出一根鱼竿,并利用游戏自身的钓鱼权重机制,一次钓一条地进行作业。
- 鱼竿是运行成本 - 每根鱼竿约可钓鱼64次,每次约17秒,即每根鱼竿约 18分钟。全天候钓鱼意味着稳定的鱼竿供应,进而带来线和小木棍,最终促成相关农场的基础设施仍由你构建。
- 附魔至关重要 - 海洋眷顾根据原版权重改善掉落品质,快钓缩短等待时间,耐久度延长使用寿命。
- 经验修补无效,故意如此 - 傀儡不获取经验值。这是不用亲自站在那里的代价,这也防止了渔夫成为永动机。
- 宝藏需要开阔水域,与原版一致:上方有空气的5x5水面。地板上的1x1孔洞永远只能钓到鱼和垃圾,绝不会出现宝藏。挖一个真正的水池吧。
- 分类捕获物 - 添加可选的
[Treasure](宝藏)容器,宝藏归于此,鱼和垃圾归入 [Output](输出)。若跳过此步骤,所有物品均落入 [Output]。
- 添加自定义捕获物 - 服务器管理员可在配置文件中将任何物品添加到鱼、垃圾或宝藏池中,并与原版条目进行权重对比。
信使傀儡 — 搬运工
在你标记的容器之间运送物品,让你的工作站不必紧挨着彼此。右键点击它以打开路线编辑器:
- 自定义路线 - 添加任意数量的路线;每条路线将物品从一个标签移动至另一个标签。左击槽位可循环浏览其能看到的附近标签,或右击以输入任意你想要的标签——标签只是容器上的告示牌/名称,因此没有任何硬编码限制。
- 物品过滤器 - 按住 Shift 键将背包中的物品拖入过滤器,并选择模式:黑名单(“携带除这些之外的所有物品”,默认)或白名单(“仅携带这些”)。针对每条路线单独设置。
- 实时状态 - 菜单会明确告诉你某条路线未运行的原因:无源容器、目标容器已满、过滤器过滤掉了所有物品、两端解析为同一个箱子。
- 自动寻路 - 插件会在后台线程上基于缓存的地图规划每条路线,该地图记录了傀儡可以站立的方块,然后让原版游戏处理中间短距离的移动。楼梯、门口、拐角、绕过建筑物的长路径:它都能自行解决,跨越数百个方块,无需你进行任何设置。
[航标] 告示牌现在是可选的 - 附近有航标的区域路由成本更低,因此傀儡会优先使用你实际建造的道路,而不是在原始地形上乱跑。保留它们用于景观路线,或者完全跳过它们都不会导致问题。
- 不再传送 - 此功能默认关闭。如果傀儡无法到达目标,说明路线已损坏,它会如实反映这一点:它将负载带回某个容器,而不是将其遗弃,其名字会被加上
(stuck),并在路线状态中注明原因。重建楼梯后,它会自动重新拾取该路线。
经典配置:[Lava] → [Fuel] 以便由搬运工向熔炉提供燃料,以及 [Output] → your storage 以清空成品 —— 将所有五个傀儡连接到一个循环回路中。
合成配方
所有五种傀儡共享相同的形状——只有中心方块不同:
C R C C = 铜锭
R X R R = 红石粉
C R C
- 岩浆傀儡 -
X = 岩浆桶
- 熔炉傀儡 -
X = 熔炉
- 炼金傀儡 -
X = 酿造台
- 渔夫傀儡 -
X = 钓鱼竿
- 信使傀儡 -
X = 漏斗
结果是一个“傀儡之心”(一个带有标签的铜傀儡刷怪蛋)。在地面上右击它即可放置傀儡。
设置站点
存储容器可以是箱子、陷阱箱、木桶或潜影盒。通过以下方式标记每个容器:
- 在其任意一侧放置带有匹配文本的告示牌,或
- 在铁砧中重命名容器本身以匹配文本(无需告示牌——更整洁的建筑)。
岩浆傀儡站点: 一个装有空桶的 [Buckets] 容器,旁边有一个岩浆釜,以及一个用于输出的 [Lava] 容器。
熔炉傀儡站点: 范围内的熔炉,以及标记为 [Smelt](待熔炼的矿石/食物)、[Fuel](任何原版燃料)和 [Output](成品——用过的桶也会返回此处)的容器。
炼金傀儡站点: 范围内的酿造台,单个 [Brew] 容器(瓶子 + 下界疣 + 烈焰粉/棒 + 材料,全部混合),附近有水(水源方块或水釜),以及用于药水的 [Output] 容器。如果你储备的是烈焰棒而非烈焰粉,请添加一个工作台。
渔夫傀儡站点: 范围内的水域(如果你想获得宝藏,可以建造一个真正的 5x5 池塘),一个装有钓鱼竿的 [Rods] 容器,以及用于捕获物的 [Output] 容器。如果你希望将宝藏分开存放,请添加一个 [Treasure] 容器。
信使傀儡: 没有固定站点——只需标记两端的容器(任何你想要的标签),并在其菜单中设置路线。它自行解决行走部分;两端只需在步行可达范围内,且彼此之间的距离在 courier-search-radius 之内。
将匹配的傀儡之心放在附近,它就会开始工作。
兼容普通熔炉、高炉和烟熏炉——并且会自动路由:矿石送往你的高炉,食物送往你的烟熏炉,其他一切送往普通熔炉。
日常使用
- 区分它们 - 岩浆傀儡身上着火,炼金傀儡身后有魔法粒子效果,渔夫傀儡手持鱼竿(均为纯视觉效果,无需资源包,也不会造成伤害)。
- 属性/设置 - 空手右击傀儡:每个傀儡都会打开一个包含其属性的菜单(熔炉傀儡还有其工作模式,信使傀儡有其路线,炼金傀儡有其药水列表)。
- 关闭其中一个 - 每个菜单都有一个电源按钮:傀儡会停在原地,直到你再次将其开启。在你重建站点时非常有用。
- 拆解 - 潜行 + 空手右击。傀儡之心掉落,连同它携带的任何物品一起掉落。
- 重启后存活 - 当区块加载时,傀儡(及其当前工作和模式)会自动恢复。
所有权与保护
放置心的人拥有该傀儡。 只有所有者才能打开其菜单、重新标记其容器、编辑其路线或拆解它——除非你授予某人 lavagolem.use.others 权限。心形物品本身永远不会被打上标签,因此心形物品可以自由交易。
- 1.1 版本之前放置的傀儡仍对所有人有效,正如以前一样。更新绝不会锁定正在运行的基地。
/lavagolem claim 接管最近的一个无主傀儡就地,保留其统计数据、标签和工作模式。(拆解并重新放置也可以,但那将是全新的傀儡,计数器归零。)
max-golems-per-player 限制了每个人可以放置的数量。被拒绝的放置不会消耗心形物品。
- 合成、放置和使用权限都是独立的,因此你可以发放心形物品而不赋予制作它们的权限。
尊重领地保护。 快递员会直接打开容器,这不会触发任何事件——因此在此功能之前,没有任何领地插件能感知到这一行为,停在他人箱子旁的快递员本质上是一个自动化的窃贼。现在,容器访问权限会直接针对 GriefPrevention 和 WorldGuard 进行检查,并包含一个通用的回退机制,用于在所有者在线时覆盖其他保护插件。protection-mode(保护模式)决定当无法获取验证结果时的处理方式:cached(默认值)信任所有者在线期间获得的最后一次验证结果;strict 拒绝所有无法验证的操作;off 则完全关闭检查功能。
直白地说: 我并没有运行这两个插件中的任何一个,因此 GriefPrevention 和 WorldGuard 的适配模块从未在实际服务器环境中经过充分测试。我所处理的是它们的失败情况——如果挂钩出现异常,会被忽略而不是被采信,从而确保铁傀儡绝不会因此卡死,并且在多次失败后会自动禁用该功能,而不是刷屏你的控制台日志。如果你正在使用其中任一插件,请提交 Issue 并告知我你遇到的情况。
命令
所有命令均位于 /lavagolem 之下(简写为 /lg),且全部需要 lavagolem.admin 权限。
| 命令 |
描述 |
/lavagolem stats |
查看全服统计数据 |
/lavagolem reload |
无需重启服务器即可重新读取配置——包括开启或关闭傀儡角色 |
/lavagolem debug [all|<role>] |
实时决策追踪:追踪最近的傀儡、所有傀儡或特定角色。它会告诉你傀儡无法正常工作的确切原因 |
/lavagolem claim |
认领最近的无人认领傀儡 |
/lavagolem remove <all|player> |
移除所有傀儡,或仅移除某位玩家的傀儡 |
旧版命令名(/golemstats、/removegolems、/golemdebug)仍然有效,并将引导你使用新版替代命令。
追踪日志可以输出到文件而非聊天栏——设置 golemdebug-output: file,然后在离线状态下让快递员进行追踪,之后读取 plugins/LavaGolem/golemdebug.log 即可查看结果。
配置
plugins/LavaGolem/config.yml:
search-radius: 8 # 傀儡搜索容器、锅和熔炉的范围
reach-distance: 2.2
search-cooldown-ticks: 40
tick-period: 10
bucket-sign-text: "[Buckets]"
lava-sign-text: "[Lava]"
smelt-sign-text: "[Smelt]"
fuel-sign-text: "[Fuel]"
output-sign-text: "[Output]"
brew-sign-text: "[Brew]" # 炼金术士——瓶子+燃料+原料,全部在一个容器中
rods-sign-text: "[Rods]" # 渔夫——用于垂钓的鱼竿
treasure-sign-text: "[Treasure]" # 渔夫——可选,宝藏将存入此处而非 [Output]
fisher-min-wait-ticks: 100 # 仅限渔夫——原版等待窗口为 100-600;附魔“钓力”每级减少 100 ticks
fisher-max-wait-ticks: 600
fisher-treasure: true # false = 仅鱼和杂物
fisher-custom-catches: [] # 自定义掉落物品——见下文
enable-lava-golem: true # 角色开关;禁用的角色将停止工作直到重新启用
enable-smelter-golem: true
enable-courier-golem: true
enable-alchemist-golem: true
enable-fisher-golem: true
courier-search-radius: 24 # 仅限快递员——各个方向范围相同,必须覆盖路线的两端(最大值为 32)
courier-carry-limit: 16 # 每次行程携带的物品数量
waypoint-sign-text: "[Waypoint]"
courier-teleport: false # 遗留功能:瞬移至目标点;建议保持关闭并修复路线
nav-max-distance: 256 # 单条规划路线的最大距离
nav-search-margin: 32 # 路线偏离直线的最大距离,用于绕过障碍物
nav-chunk-cache-seconds: 600 # 可行走地图缓存的有效时间(挖掘操作会立即使其失效)
max-golems-per-player: 0 # 0 = 无限制
protection-mode: cached # cached | strict | off - 参见上方的“所有权与保护”章节
protection-cache-seconds: 300
golemdebug-output: chat # chat | file | both
locale: en # en 或 ru
bstats: true
上述所有标签文本既可以作为告示牌文字,也可以作为容器自身的名称使用。
这些仅仅是默认值。 打开任意傀儡的菜单并右键点击容器槽位,即可为该傀儡分配专属标签(左键点击可重置)。因此,酿酒厂和冶炼厂可以并肩而立而互不干扰——只需将一个指向 [Potions] 即可完成配置。
自定义掉落。 fisher-custom-catches 允许你将任意物品加入渔夫的掉落池中。每个条目归属于一个池子,并根据权重与原版的掉落物品竞争:
fisher-custom-catches:
- { material: DIAMOND, weight: 2, amount: 1, pool: treasure }
- { material: EMERALD, weight: 5, amount: 1, pool: junk }
pool 可以是 fish、junk 或 treasure;宝藏类型的条目仅在约 5% 的投掷判定为“宝藏”时出现,并通过 [Treasure] 路由进行分拣。各池的大致总权重比例:鱼 ~100,杂物 ~100,宝藏 ~6。
快递员扫描的是一个立方体区域,因此其计算成本随半径的立方增长——请将 courier-search-radius 设置为实际路线所需的最大值即可,不要过大。
需要更多信息? 完整指南 详细介绍了每种傀儡的功能、快递员的寻路逻辑,以及当快递员无法移动时的故障排除清单。
只有使用自定义配方创造的傀儡受此控制——原版的铜傀儡行为不受影响。
LavaGolem
Five hard-working Copper Golems that automate the most tedious parts of vanilla - without a resource pack, without client mods, and without breaking the survival spirit. You still build the infrastructure yourself; the golems just save you the endless walking back and forth.
Tired of building a giant super-smelter - stacks of furnaces wired up with hoppers, minecart loops, item sorters and half a chunk of redstone just to melt some ore? Drop a Smelter Golem next to a few furnaces and a couple of labeled chests instead. Sick of standing at a brewing stand swapping bottles one at a time? That's the Alchemist Golem. Tired of holding right-click at a fragile AFK fishing contraption? The Fisher Golem works through your rods instead. Want your dripstone-and-cauldron lava farm collected for you? That's what the Lava Golem is for. And the Courier Golem carries goods between them all, so your stations don't have to be one big pile.
Five little golems can replace a whole room of contraptions.
The golems
Lava Golem - the lava hauler
Vanilla already lets you drip a lava source through pointed dripstone into a cauldron and slowly accumulate lava - but you have to stand there and bucket it out. The Lava Golem does that for you: it grabs an empty bucket, fills it at a full lava cauldron, and drops the lava bucket into your storage. Forever.
Smelter Golem - the furnace keeper
Feeds your furnaces and hauls out the results, so you don't need a hopper-and-rail smelting factory. It's genuinely smart about it:
- Reads your stock - takes the most abundant smeltable from the
[Smelt] chest.
- Picks the right fuel - lava buckets for big batches, coal for small ones, wood if that's all you have - sized so nothing is wasted.
- Spreads the load - splits a big pile evenly across all your furnaces so they run in parallel, instead of dumping it all into one.
- Closes the lava loop - a spent lava bucket becomes an empty bucket; the golem pulls it back out and returns it, so it never clogs the furnace.
- Work modes - right-click a Smelter Golem to open its menu and set it to Balanced, Load only, or Collect only. Run one golem that loads and another that collects if you like.
Alchemist Golem - the brewer
Runs your brewing stands, so you never stand there swapping bottles one at a time again. One chest holds everything - glass bottles, nether wart, blaze powder and ingredients all go into a single [Brew] container, and the golem works out what each item is for.
- Fetches its own water - fills bottles at a water source or a water cauldron (the one rain and dripstone refill for free).
- You set the recipe by stocking the chest - it brews in stages (water → nether wart → awkward → your effect ingredient → one modifier) and keeps going for as long as the ingredients are there. Nether wart, blaze powder and redstone in the chest? Long Strength. It only starts a batch it can finish, so it never churns out awkward bases nobody asked for.
- Pick what it's allowed to brew - right-click it for a list of every potion, drawn as the real potion. Click to switch each one on or off (modifiers too), and it'll ignore that ingredient even if it's in the chest.
- Smart about blaze powder - it's both fuel and the Strength ingredient, so the golem keeps only one pinch in the fuel slot (already 20 brews) and leaves the rest for potions.
- Grinds blaze rods into powder at a crafting table if rods are what you have - using the real vanilla recipe.
Fisher Golem - the angler
AFK fishing already exists, but it's a fiddly contraption that breaks if you sneeze at it, and it needs you holding the button. The Fisher Golem takes a rod out of your [Rods] chest and works through it, catch by catch, on the game's own fishing weights.
- The rod is the running cost - 64 catches at roughly 17 seconds each, so about 18 minutes per rod. Fishing round the clock means a steady supply of rods, which means string and sticks, which means farms. The infrastructure is still yours to build.
- Your rod's enchantments are what matter - Luck of the Sea improves the catch on vanilla's own weights, Lure shortens the wait, Unbreaking makes it last.
- Mending does nothing, on purpose - the golem earns no XP. That's the trade for not standing there yourself, and it's what stops a fisher from being a perpetual motion machine.
- Treasure needs open water, exactly as in vanilla: 5x5 of water with air above. A 1x1 hole in the floor catches fish and junk forever and never a single treasure. Dig a real pond.
- Sorts the catch - add an optional
[Treasure] container and treasure goes there while fish and junk go to [Output]. Skip it and everything lands in [Output].
- Add your own catches - server owners can drop any item into the fish, junk or treasure pool from the config, weighted against the vanilla entries.
Courier Golem — the porter
Carries items between your tagged containers so your stations don't have to sit next to each other. Right-click it to open a route editor:
- Custom routes - add as many routes as you like; each moves items From one tag To another. Left-click a slot to cycle through the tags it can see nearby, or right-click to type any tag you want - the tags are just the signs/names on your containers, so nothing is hardcoded.
- Item filter - shift-click items from your inventory into the filter and choose the mode: blacklist ("carry everything except these", the default) or whitelist ("carry only these"). Per route.
- Live status - the menu tells you exactly why a route isn't running: no source container, destination full, filter lets nothing through, both ends resolve to the same chest.
- It finds its own way - the plugin plans each route itself, on a background thread, over a cached map of ground it knows a golem can stand on, then lets vanilla walk the short legs in between. Stairs, doorways, corners, the long way round a building: it works them out on its own, over hundreds of blocks, with nothing for you to set up.
[Waypoint] signs are optional now - ground near one is cheaper to route through, so golems prefer a road you actually built over scrambling across raw terrain. Keep them for scenic routes, skip them entirely and nothing breaks.
- No more teleporting - it's off by default. A golem that can't reach its target is telling you the route is broken, so it says so: it carries its load back to a container instead of stranding it, gets
(stuck) added to its name, and puts the reason in its route status. Rebuild the stairs and it picks the route back up by itself.
Classic setup: [Lava] → [Fuel] to feed the smelter from the hauler, and [Output] → your storage to clear finished goods — wiring all five golems into one loop.
Recipes
All five golems share the same shape - only the center changes:
C R C C = Copper Ingot
R X R R = Redstone Dust
C R C
- Lava Golem -
X = Lava Bucket
- Smelter Golem -
X = Furnace
- Alchemist Golem -
X = Brewing Stand
- Fisher Golem -
X = Fishing Rod
- Courier Golem -
X = Hopper
The result is a "Golem Heart" (a labeled Copper Golem Spawn Egg). Right-click it on the ground to place the golem.
Setting up a station
Storage containers can be chests, trapped chests, barrels or shulker boxes. Tag each one either by:
- placing a sign with the matching text on any of its 6 sides, or
- renaming the container itself in an anvil to the matching text (no sign needed - cleaner build).
Lava Golem station: a [Buckets] container with empty buckets, a lava cauldron nearby, and a [Lava] container for the output.
Smelter Golem station: furnaces within range, plus containers tagged [Smelt] (ore/food to melt), [Fuel] (any vanilla fuel), and [Output] (finished goods - spent buckets come back here too).
Alchemist Golem station: brewing stands within range, a single [Brew] container (bottles + nether wart + blaze powder/rods + ingredients, all mixed), water nearby (a source block or a water cauldron), and an [Output] container for the potions. Add a crafting table if you stock blaze rods instead of powder.
Fisher Golem station: water in range (a real 5x5 pond if you want treasure), a [Rods] container with fishing rods, and an [Output] container for the catch. Add a [Treasure] container if you'd like the treasure kept separately.
Courier Golem: no fixed station - just tag the containers on both ends (any tag you like) and set the route in its menu. It works out the walking part by itself; the two ends only have to be genuinely reachable on foot and within courier-search-radius of each other.
Drop the matching Golem Heart nearby and it gets to work.
Works with regular furnaces, blast furnaces and smokers — and routes automatically: ores go to your blast furnaces, food to your smokers, everything else to regular furnaces.
Everyday use
- Telling them apart - the Lava Golem is on fire, the Alchemist trails magic particles, and the Fisher holds a rod (all purely visual, no resource pack, no damage).
- Stats / settings - right-click a golem with an empty hand: every golem opens a menu with its stats (the Smelter also has its work modes, the Courier its routes, the Alchemist its potion list).
- Switch one off - every menu has a power button: the golem stops where it stands until you switch it back on. Handy while you rebuild a station.
- Disassemble - sneak + right-click with an empty hand. The Golem Heart drops back, along with anything it was carrying.
- Survives restarts - golems (and their current job and mode) are restored automatically when their chunk loads.
Ownership & protection
Whoever places a Heart owns the golem. Only the owner can open its menu, retag its containers, edit its routes or take it apart - unless you give someone lavagolem.use.others. The Heart item itself is never tagged, so hearts stay freely tradeable.
- Golems placed before 1.1 keep working for everyone, exactly as they did. Updating never locks a running base.
/lavagolem claim adopts the nearest unowned golem where it stands, keeping its statistics, tags and work mode. (Disassembling and re-placing also works, but that's a brand-new golem with its counters at zero.)
max-golems-per-player caps how many anyone may place. A refused placement never eats the Heart.
- Permissions for crafting, placing and using are all separate, so you can hand out hearts without handing out the ability to make them.
Land protection is respected. A courier reaches into containers directly, which fires no event at all - so before this, no claim plugin ever saw it, and a courier parked next to someone else's chests was an automated thief. Container access is now checked against GriefPrevention and WorldGuard directly, with a generic fallback that covers other protection plugins while the owner is online. protection-mode decides what happens when nothing can answer: cached (default) trusts the last answer from while the owner was online, strict refuses what it can't verify, off turns checking off entirely.
Said plainly: I don't run either plugin, so the GriefPrevention and WorldGuard adapters have never been exercised on a live server. What is handled is how they fail - a misbehaving hook is ignored rather than believed, so it can never freeze a golem, and it switches itself off after repeated failures instead of filling your console. If you run either, please open an issue and tell me what you see.
Commands
Everything lives under /lavagolem (short form /lg), and all of it needs lavagolem.admin.
| Command |
Description |
/lavagolem stats |
Server-wide statistics |
/lavagolem reload |
Re-read the config without restarting - including switching golem roles on and off |
/lavagolem debug [all|<role>] |
Live decision tracing: the nearest golem, every golem, or one role. It tells you exactly why a golem isn't working |
/lavagolem claim |
Take ownership of the nearest unowned golem |
/lavagolem remove <all|player> |
Remove every golem, or only one player's |
The old names (/golemstats, /removegolems, /golemdebug) still work and will point you at their replacements.
Tracing can go to a file instead of chat - set golemdebug-output: file and leave a courier tracing while you're logged off, then read plugins/LavaGolem/golemdebug.log afterwards.
Configuration
plugins/LavaGolem/config.yml:
search-radius: 8 # how far a golem looks for containers, cauldrons and furnaces
reach-distance: 2.2
search-cooldown-ticks: 40
tick-period: 10
bucket-sign-text: "[Buckets]"
lava-sign-text: "[Lava]"
smelt-sign-text: "[Smelt]"
fuel-sign-text: "[Fuel]"
output-sign-text: "[Output]"
brew-sign-text: "[Brew]" # alchemist - bottles + fuel + ingredients, all in one container
rods-sign-text: "[Rods]" # fisher - fishing rods to work through
treasure-sign-text: "[Treasure]" # fisher - optional, treasure goes here instead of [Output]
fisher-min-wait-ticks: 100 # fisher only - vanilla's wait window is 100-600; Lure takes 100 off per level
fisher-max-wait-ticks: 600
fisher-treasure: true # false = fish and junk only
fisher-custom-catches: [] # your own items in the catch - see below
enable-lava-golem: true # roles on/off; a disabled one stops working until switched back on
enable-smelter-golem: true
enable-courier-golem: true
enable-alchemist-golem: true
enable-fisher-golem: true
courier-search-radius: 24 # courier only - same in every direction, must cover both ends of a route (max 32)
courier-carry-limit: 16 # items per trip
waypoint-sign-text: "[Waypoint]"
courier-teleport: false # legacy blink-to-target; leave off and fix the route instead
nav-max-distance: 256 # how far one planned route may reach
nav-search-margin: 32 # how far off the straight line a route may detour to get around things
nav-chunk-cache-seconds: 600 # how long the walkability map is trusted (digging invalidates it instantly)
max-golems-per-player: 0 # 0 = unlimited
protection-mode: cached # cached | strict | off - see Ownership & protection above
protection-cache-seconds: 300
golemdebug-output: chat # chat | file | both
locale: en # en or ru
bstats: true
Every tag text above works either as a sign or as the container's own name.
These are only the defaults. Open any golem's menu and right-click a container slot to give that golem its own tag (left-click resets it). So a brewery and a smeltery can stand side by side without fighting over one shared [Output] — point one at [Potions] and you're done.
Custom catches. fisher-custom-catches drops any item you like into the fisher's loot. Each entry joins one pool and competes with the vanilla items there by weight:
fisher-custom-catches:
- { material: DIAMOND, weight: 2, amount: 1, pool: treasure }
- { material: EMERALD, weight: 5, amount: 1, pool: junk }
pool is fish, junk or treasure; a treasure entry only turns up on the ~5% of casts that roll treasure, and rides the [Treasure] routing. Rough pool totals: fish ~100, junk ~100, treasure ~6.
The courier scans a cube, so its cost grows as radius³ - keep courier-search-radius only as big as your routes actually need.
Need more? The full guide covers each golem in detail, exactly how the courier finds its way, and a troubleshooting checklist for when a courier won't move.
Only golems created from the custom recipes are controlled - vanilla copper golems behave normally.
评论 0
登录后参与评分
还没有评论,来抢沙发吧