铜傀儡职员
现招聘:储物管理员。 必须体型小巧、闪闪发亮,且擅长整理箱子。薪资为一个铜块和一颗南瓜。你的新职员会按照你的意愿进行整理:桦木原木与橡木原木归为一类,镐子与工具归为一类,无论告示牌上写着什么就按什么分类,它们触碰过的每一个箱子都会保持整洁。大约 50 个预置的物品组意味着只要你安装好插件,它们就能立即开始工作。
对于服务器所有者来说,这些职员很有礼貌:命令尊重 GriefPrevention 的领地声明,为领地所有者提供满箱提醒,每个领地可选设限傀儡数量,并且几乎所有功能都可以通过一个配置文件进行调整。它们从不要求加薪,也从不抱怨圆石。
我始终欢迎关于此插件的新想法。请在 GitHub 上提交增强请求:
本插件将在 GitHub 上维护,最新版本将通过 Hangar 提供。请前往查看最新版本。
你的傀儡学会了什么
📦 按种类分类,而不仅仅是精确物品
携带云杉木板的傀儡会使用你的橡木木板箱。炖菜归入食物,剑归入武器,所有颜色的羊毛放在一起。分组是配置文件中简单的列表,因此你可以修改它们或创建自己的分组。
🏷️ 读取告示牌和物品展示框
在箱子的告示牌上写上 [logs]、[ores]、[oak log]、[*_ORE] 或 [#planks],或者在展示框中挂上一个物品,那么该物品就会存入此处。当多个箱子都可以接收某物品时,最具体的规则优先:对于一碗炖菜,[stews] 的优先级高于 [food]。
| 告示牌 |
含义 |
[logs] |
日志组中的任何物品 |
[oak log] |
仅橡木原木 |
[*_ORE] |
所有矿石方块 |
[#planks] |
Minecraft 物品标签中的所有物品 |
[Overflow] |
没有归属地的物品的兜底箱 |
[No Golems] |
傀儡不得进入 |
[Only Logs] |
在铜箱上:傀儡只取出其中的原木 |
♻️ 自动清空的溢出箱
没有归属地的物品会落入你的 [Overflow] 箱中。稍后为其添加一个箱子,空闲的傀儡会自动将它们搬运过去。
🗄️ 更大的储物空间
- 整理有序:合并部分堆叠,同类物品保持在一起。
- 互相避让:在一格宽的过道中侧身让路,而不是卡住。
- 可选功能(通过设置开启):
- 可触及最高 6 层 高的堆叠箱子(原版:2 层);
- 每次行程可携带最多 64 个物品(原版:16 个);
- 使用 桶和潜影盒 以及箱子。
🦺 自我照顾
- 掉进竖井或走远的傀儡会 自行回家;被困住的傀儡会被报告其位置。
- 傀儡 避开活板门 并 远离传送门。
- 每个铜傀儡的死亡原因都会记录到服务器日志中,以便你查看失踪傀儡的情况。
玩家用法
/cgc find diamond: 列出你附近存放钻石的箱子,最近的排在前面(包括潜影盒内的钻石),最近的几个箱子会发光几秒。默认情况下,它只搜索你自己的 GriefPrevention 领地,因此没人能利用它来窥探他人。
/cgc check 解释一个你可以打开的箱子,/cgc overflow 显示溢出箱中堆积的物品,/cgc stats 显示你的领地内傀儡已整理的物品统计。
- 手持竹子 可在每个傀儡头顶看到标签,显示其当前状态(如“携带 16 根桦木原木”、“获取花岗岩”、“迷路,正在回家”)及其风化程度。
- 用竹子右键点击傀儡 可将该傀儡切换回原版排序模式。
- 在 GriefPrevention 领地中,当其中一个标有标签的箱子装满时,你会收到通知(即使当时你离线),并在你离开期间获得傀儡整理工作的摘要。
管理员用法
/cgc check 解释任意箱子:其标签的含义、接收的物品类型,以及阻止傀儡使用的任何因素。
/cgc overflow 列出溢出箱中的内容,并为每个物品提供归属标签建议。
/cgc golems 显示傀儡的位置、携带的物品以及是否有傀儡迷路。
/cgc stats 显示服务器范围内傀儡已整理的物品总量。
- 玩家只能查看他们可以自行打开的内容;管理员可以查看每个领地的内容。
- 可选的傀儡限制上限规定了单个领地中可使用此插件的傀儡数量(默认关闭)。
- 该插件不会增加可测量的刻时间:有无该插件时,一个工作的铜傀儡每刻消耗约 0.1 毫秒(在多达 200 个傀儡的情况下测量得出)。
- 几乎所有功能都可以在
config.yml 中关闭或调整,并通过 /cgc reload 应用更改而无需重启。
- 仅影响铜傀儡。铁傀儡、雪傀儡、村民和其他生物不受影响。
入门指南
- 将 jar 文件放入
plugins/ 目录并重启服务器。
- 放置一个铜箱并填入混合物品。
- 在水平 32 格以内、上下 8 格以内的范围内放置一些箱子。在每个箱子中放入一件物品以指示用途,或添加类似
[logs] 的告示牌。
- 在铜箱旁建造一个铜傀儡(铜块上放置一个雕刻南瓜)。
- 留在附近(傀儡仅在加载的区块中工作),观察它们整理所有物品。
要求
- Paper 26.3,构建版本 190 或更高(不支持 Spigot 和 Bukkit:插件使用了 Paper 的傀儡事件)
- Java 25
- 推荐:GriefPrevention。启用后,提醒将发送给领地所有者,玩家的命令仅限于其自身领地,且只有在该处拥有建筑权限的玩家才能控制那里的傀儡。未启用时,提醒将发送给 OP,且玩家在管理员允许之前无法使用
/cgc find 查找任何内容。
权限
所有权限均为标准节点,因此可与 LuckPerms 或其他任何权限插件配合使用。
| 权限 |
默认值 |
允许操作 |
coppergolemclerk.find, .check, .overflow, .stats |
所有人 |
玩家命令,限制于其自身领地或可访问的范围 |
coppergolemclerk.golems |
所有人 |
/cgc golems(仅针对自己的傀儡),如果服务器启用此功能 |
coppergolemclerk.toggle |
所有人 |
将傀儡切换为原版并返回 |
coppergolemclerk.allclaims |
op |
上述命令可查看每个领地的信息 |
coppergolemclerk.alerts |
op |
关于超出任何领地范围的警报,即没有所有者可以通知的情况 |
coppergolemclerk.admin |
op |
所有 /cgc 命令 |
链接
Copper Golem Clerk
Now hiring: storage clerks. Must be small, shiny and good with chests. Pay is one copper
block and a pumpkin. Your new clerks sort the way you would: birch logs in with the oak logs,
pickaxes with the tools, whatever your signs say where they say it, and every chest they touch
left tidy. About 50 ready-made item groups mean they start work the moment you drop the plugin in.
For server owners, the clerks come with good manners: commands that respect GriefPrevention
claims, full-chest alerts for claim owners, optional golem limits per claim, and nearly
every feature tunable in one config file. They never ask for a raise and never complain about the
cobblestone.
I'm always open to new ideas for this plugin. Open an enhancement request on GitHub:
This plugin will be maintained on GitHub and newest releases will be provided through Hangar. Please check there for latest releases.
What your golems learn
📦 Sort by kind, not just by exact item
A golem carrying spruce planks uses your chest of oak planks. Stews go with the food,
swords with the weapons, every colour of wool together. Groups are plain lists in the
config, so you can change them or make your own.
🏷️ Read signs and item frames
Write [logs], [ores], [oak log], [*_ORE] or [#planks] on a sign on a chest, or
hang an item in a frame, and that's what goes there. When several chests would take an
item, the most specific one wins: [stews] beats [food] for a bowl of stew.
| Sign |
Means |
[logs] |
anything in the logs group |
[oak log] |
just oak logs |
[*_ORE] |
every ore block |
[#planks] |
everything in a Minecraft item tag |
[Overflow] |
a catch-all for things with no home |
[No Golems] |
golems keep out |
[Only Logs] |
on a copper chest: golems take only the logs out |
♻️ An overflow chest that empties itself
Items with no home land in your [Overflow] chest. Add a chest for them later and idle
golems carry them over by themselves.
🗄️ Bigger storage rooms
- Tidy as they go: partial stacks merged, like items kept together.
- Step aside for each other in one-wide aisles instead of getting stuck.
- Optional, with a setting:
- reach chests stacked up to 6 high (vanilla: 2);
- carry up to 64 items a trip (vanilla: 16);
- use barrels and shulker boxes as well as chests.
🦺 Look after themselves
- A golem that falls down a shaft or wanders off walks back home; one that's stuck gets
reported, with where it is.
- Golems keep off trapdoors and stay out of portals.
- Every copper golem death is written to the server log with its cause, so you can see what
happened to a golem that went missing.
For players
/cgc find diamond: lists the chests near you that hold diamonds, nearest first
(including diamonds inside shulker boxes), and the nearest few glow for a few seconds.
By default it only looks in your own GriefPrevention claims, so nobody can use it to snoop.
/cgc check explains a chest you can open, /cgc overflow shows what's piling
up in your overflow chests, and /cgc stats shows what golems have sorted in your claims.
- Hold bamboo to see a label over each golem saying what it's doing ("carrying 16 birch
log", "fetching granite", "lost, walking home") and how weathered it is.
- Right-click a golem with bamboo to switch that one golem back to plain vanilla sorting.
- In a GriefPrevention claim you get told when one of your labelled chests is full (even
if you were offline at the time), and get a summary of what your golems sorted while you
were away.
For admins
/cgc check explains any chest: what its labels mean, what it takes, and anything
stopping golems from using it.
/cgc overflow lists what's in overflow chests and what label would give each item a home.
/cgc golems shows where the golems are, what they're carrying and whether any are lost.
/cgc stats shows how much the golems have sorted, server-wide.
- Players only see what they could open themselves; admins can see into every claim.
- Optional golem limits cap how many golems in one claim use the plugin (off by default).
- The plugin adds no measurable tick time: a working copper golem costs about 0.1 ms per tick
with or without it (measured with up to 200 golems).
- Nearly every feature can be switched off or tuned in
config.yml, and /cgc reload
applies changes without a restart.
- Only copper golems are affected. Iron and snow golems, villagers and other mobs are left
alone.
Getting started
- Drop the jar into
plugins/ and restart.
- Place a copper chest and fill it with mixed items.
- Place some chests within 32 blocks sideways and 8 up or down. Put one item in each to say
what it's for, or add a sign such as
[logs].
- Build a copper golem (a carved pumpkin on a copper block) next to the copper chest.
- Stay nearby (golems only work in loaded chunks) and watch them file everything.
Requirements
- Paper 26.3, build 190 or newer (Spigot and Bukkit aren't supported: the plugin uses Paper's golem events)
- Java 25
- Recommended: GriefPrevention. Alerts then go to the claim's owner, players' commands
stay within their own claims, and only players who may build somewhere can switch golems
there. Without it, alerts go to ops, and players'
/cgc find finds nothing until an
admin allows it.
Permissions
All permissions are standard nodes, so they work with LuckPerms or any other permissions plugin.
| Permission |
Default |
Allows |
coppergolemclerk.find, .check, .overflow, .stats |
everyone |
the player commands, limited to their own claims or what they could open |
coppergolemclerk.golems |
everyone |
/cgc golems for their own golems, if the server turns it on |
coppergolemclerk.toggle |
everyone |
switching a golem to vanilla and back |
coppergolemclerk.allclaims |
op |
the commands above see into every claim |
coppergolemclerk.alerts |
op |
alerts about things outside any claim, where there's no owner to tell |
coppergolemclerk.admin |
op |
all /cgc commands |
Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧