
铜傀儡过度复杂化
相信我,理解起来其实相对简单!
在这个模组中,铜傀儡得到了彻底的重制。它拥有近乎无限的记忆能力、几乎可重构的一切功能,以及几种新的行为模式,让这个可爱的小家伙更具互动性。
实用功能
漫游
当你初次生成这个小家伙时,它不会立即开始工作。它会先检查周围的环境!它会在你的基地或存储设施附近游荡。随着探索的进行,隐藏的“漫游概率”会逐渐降低。游荡的时间越长,它停下来休息的可能性就越大。如果它被困住或找不到路径(例如你把它放在迷宫里),它会缩小搜索半径,以专注于更直接的可行路径。
逗留
当 CuGO 对漫游感到厌倦时,它会进入“逗留状态”。它会开始环顾四周,保持静止站立。
探测
工作由此开始。所有这些铺垫的原因是为了让它能够探测附近的容器存储。这些容器包括:
- 箱子
- 铜箱
- 木桶(可配置)
- 潜影盒(可配置)
Home(家)将从它发现的铜箱中选择。目前这个铜箱并没有什么特别之处,但未来可能会有所变化。
每当它不工作时,它会游荡、逗留,然后进行探测,确保其内部地图始终更新,无论你对布局做了什么更改。
箱子怪兽
这是重头戏。我为 CuGO 制作了一套记忆和优先级系统来遵循。
获取物品
当傀儡决定开始工作时,它会扫描已知的“Home”和附近的铜箱,以寻找需要移动的物品。
- 持久记忆:如果它最近在某特定箱子中发现了物品,它会记住该位置,并在下一个周期优先检查那里。
- 金窝银窝不如自己的狗窝:它会优先检查 Home 箱子,除非它确切知道其他地方有物品。
- 经典元素:我确保了保留原版傀儡的声音和动画。理论上,这 应该 使本模组与 FreshLX 的 Fresh Animations 兼容(我 还没有 检查过这一点,因为我是一个无能的模组开发者 ?)
- 批量还是非批量,这是个问题:通过配置文件,你可以精确定义傀儡一次允许携带多少物品。可以是原版的 16 个,默认值 64 个,或者少至每次仅 1 个。
整理物品
一旦 CuGO 持有物品,它的目标就是为它找到完美的存放位置。我对原版物品的纯度检查做了一些改进。
- CuGO 可以处理箱子、陷阱箱(接线时要小心)、木桶和潜影盒的内容物记忆。
- 每次 CuGO 打开一个箱子时,它会将内容物快照到其记忆中(存储为 NBT)。下次它需要整理该特定物品时,它会直接走向上次看到或放置该物品的地方。
- 箱子中有匹配的物品?有效放置。空箱子?也是有效放置。
恐慌!
CuGO 是战术性怯懦的大师。当情况变得艰难时,CuGO 宁愿让别人来处理。如果这也失败了,它就会落荒而逃。
- 一旦 CuGO 受到攻击,它会直接向远离威胁的方向奔跑。
- 几秒钟后,CuGO 会想起自己并非孤身一人。让我们找个更大更强的人来处理这件事:
- 铁傀儡
- 玩家(没有攻击过它的)
- 雪傀儡(呃……嗯……)
- 一旦找到守护者,CuGO 就变成了三角学天才,计算出最佳位置,让自己始终躲在肌肉男身后,介于它与攻击者之间。
- 货物怎么办?如果 CuGO 设置了 Home,它的优先级就会转移。它不在乎自己的性命,但在乎公司的资产,因此它会奔向 Home 并尝试存入它手中的物品。
只有当已知威胁死亡、消失或安全地距离超过 16 格时,它才会冷静下来。
更新需要重启。
电池与电源管理
如果在配置文件中启用,CuGO 由有限的电池供电。
- 主动搜寻:当电量低于警告阈值时,傀儡会暂停当前任务,在任务中途停止,并寻找活跃的红石信号。
- 精准对接:傀儡会与红石源完美对齐以开始充电(这比你想象的难得多)
- 视觉反馈:你会看到红石火花,因为傀儡正在从电网中吸取电力。
- 恐慌耗电:小心!恐慌会对硬件造成压力。如果傀儡正在拼命逃跑,其电池消耗速度会显著加快。
被动汲取
傀儡足够聪明,能够在走过红热点时识别出来。
- 如果傀儡在其正常例行程序中偶然走过或站在活跃的红石源附近,它会被动获得少量电荷。
- 被动充电比专用对接慢,但如果你正确布线房间,这是一种让“巡逻”傀儡保持通电的好方法,而不必让它们频繁对接。
自我维护
如果你看起来不错,你就会感觉良好。CuGO 严格遵循这一点。提供适当的工具,它们就会自我维护。
- 如果傀儡手持蜂巢蜡,它会将其涂抹在自己身上以防止进一步氧化
- 如果傀儡手持斧头,它会用它刮掉未打蜡的氧化层。
- 如果工具即将损坏,或能够 被 损坏(可配置),它永远不会使用工具
风化
铜傀儡继续遵循老化过程,但有少许调整。
- 在氧化阶段进展过程中,存在一种干净、可靠且随机的过渡
- 当傀儡完全氧化时,它会进入关机序列,发出咔嗒声,试图坚持住,然后变成铜傀儡雕像。
雕像
篇幅有点长了。 雕像可以重新充电。是的,这也支持配置。
- 可充电雕像:根据你的配置,如果你给雕像提供红石信号,你的小家伙就会回到活着的世界。
- 姿势切换:这里没什么特别的不同。如果你将
rechargeableStatues设置为true,使用斧头不会让它复活。将其设置为false则会执行原版行为。
开发者日志
如果你想让聊天栏和服务器日志被刷屏,或者需要调试,请开启 debugMode。看看我看到的是什么。
配置文件
debugMode - 设置为 true 允许控制台显示调试消息。有助于理解 CuGO 的运作逻辑。
redstoneBoost - 走过红石块会给 CuGO 加速效果。
rechargeableStatues - 设置为 true 允许你将雕像重新激活为新的 CuGO。这目前不会保存原始雕像的 NBT 数据。
rechargeableGolems - 当设置为 true 时,傀儡拥有电池。如果它们的任何部分可见地接触或紧邻红石信号,它们会在电量低于 10% 时停止移动并充电。
damageItemsOnUse - 设置为 true 允许傀儡在使用斧头刮除氧化层时消耗工具的耐久度。
barrelAsOutput - 如果设置为 true,木桶是有效的分类收纳容器。
shulkerAsOutput - 如果设置为 true,潜影盒是有效的分类收纳容器。
wanderRadius - 更改 CuGO 随机游荡时的最大搜索半径。整数值。
wanderTime - 更改 CuGO 在强制进入 FetchBehavior(拾取行为)之前保持随机游荡状态的时间长度。以秒为单位的整数值。
lingerTime - 更改 CuGO 在发出提示音之前停留的时间长度。这纯粹是视觉效果。以秒为单位的整数值。
searchRadius - 搜索周围一定范围内的容器和红石源。整数值。
panicTime - 这是 CuGO 在安全状态下恢复平静的所需时间。如果附近仍有危险,此计时会暂停。以秒为单位的整数值。
xzInteractRange - 可能应该命名为 horizInteractRange。这是 CuGO 在判断是否在箱子打开范围内时检查的框的水平维度。双精度(小数)值。
yInteractRange - 可能应该命名为 vertInteractRange。这是 CuGO 在判断是否在箱子打开范围内时检查的框的垂直维度。双精度(小数)值。
maxStackSize - CuGO 一次能持有的最大物品堆叠数量。在原版中,这是 32。在 CuGO 默认配置中,它是 64。整数值。
batteryLife - CuGO 的电池寿命,仅在 rechargeableGolems 开启时使用。以分钟为单位的整数值。
warningThreshold - 当剩余时间少于这个值时,CuGO 开始寻找充电站。以分钟为单位的整数值。将此值保持在 batteryLife 的大约 10% 似乎最健康。
batteryDrain - 每个游戏刻,决定消耗多少电量。整数值,每游戏刻消耗的电荷量。
chargeTime - CuGO 理论上从 0% 充到 100% 所需的时间。以秒为单位的整数值。
passiveCharge - 如果为 true,CuGO 可以通过随意穿过有效的充电站进行充电。
passiveChargeRateMultiplier - 如果 passiveCharge 为 true,此项会影响被动充电的速度。双精度(小数)值。
consumeConsumables - 如果为 true,CuGO 在自我修复时会消耗铜锭等物品。
losUnderThreshold - 如果相对于 CuGO 的位置高于此值,CuGO 将忽略视线阻挡(LOS)。正整数值。
losOverThreshold - 如果相对于 CuGO 的位置低于此值,CuGO 将忽略视线阻挡(LOS)。正整数值。

Copper Golem Overcomplication
Trust me it's relatively simple to understand!
In this mod, the Copper Golems get a massive revamp. It has near-infinite memory, reconfigurable almost everything, and a couple new behaviors to make the lil guy a bit more interactive.
Utility Stuff
Wandering
When you first spawn your lil guy in, he won't go straight to work. He'll check his surroundings first! He'll wander about your base or storage facility. As it explores, a hidden "Wander Chance" decreases. The longer it wanders, the more likely it is to stop and take a break. If it gets stuck or can't find a path (if you put it in a maze), it will shrink its search radius to focus on more immediate possible pathing.
Lingering
When CuGO gets bored of wandering, it enters a Lingering State. It will begin to look around, standing still.
Pinging
The work begins. The reason for all this buildup is so it can ping the local area for storage containers. These can be:
- Chests
- Copper Chests
- Barrels (configurable)
- Shulker Boxes (configurable)
Home will be chosen of the Copper Chests it discovered. Nothing is truly special about this Copper Chest for now, but may be in the future.
Whenever it is not working, it will wander about, linger, then ping, making sure its internal map is always up to date, no matter what changes you make to the layout.
The Chest Monster
This is the big one. I made a memory and priority system for CuGO to follow.
Fetching
When the Golem decides it's time to work, it scans its known "Home" and nearby Copper Chests to find items to move.
- Persistent Memory: If it recently found items in a specific chest, it will remember that location and check it first in the next cycle.
- No place like Home: It will check the Home chest first, unless it knows for a fact there's items someplace else.
- The OG Stuff: I made sure to keep the vanilla golem sounds and animations. This should, in theory, make this mod compatible with FreshLX's Fresh Animations (I did not check this yet because I'm an incompetent mod dev ?)
- Bulk or no Bulk, that is the question: Via config, you can define exactly how many items the Golem is allowed to carry at once. It can be the vanilla count of 16, the default count of 64, or as little as 1 at a time.
Sorting
Once CuGO has an item in its possession, its goal is to find the perfect place for it. I made the vanilla purity check a bit better.
- CuGO can handle the memories of the contents of Chests, Trapped Chests (better be careful how you wire these), Barrels, and Shulker Boxes.
- Every time CuGO opens a chest, it snapshots the contents into its memory (stored as NBT). The next time it needs to sort that specific item, it will march directly to the last place it saw it, or put it, before.
- Matching item in chest? Valid placement. Empty chest? Valid placement.
PANIC!
CuGO is a pro at the forbidden art of tactical cowardice. When the going gets tough, CuGO would rather let someone else deal with it. If that fails, it books it for the hills.
- Once CuGO gets hit, he'll run directly away from the threat.
- After a couple seconds, CuGO will remember he's not alone. Let's have someone bigger and stronger deal with this:
- Iron Golems
- Players (that didn't attack it)
- Snow Golems (it's... it's.)
- Once a Guardian is found, CuGO becomes a genius at trigonometry, figuring out the best place to constantly be to keep behind the muscle between it and the attacker.
- What about the merchandise? If CuGO has a Home set, its priorities shift. Its life doesn't matter, but the company's assets, and will book it toward Home and try to deposit what it has.
It will only calm down once the known threat is dead, gone, or safely over 16 blocks away.
Update requires restart.
Battery & Power Management
If enabled in the config, CuGO is powered by a finite battery.
- Active Seeking: When power drops below the warning threshold, the golem will pause its current task, mid-task, and seek out an active Redstone Signal.
- Precision Docking: The Golem will align itself perfectly with a redstone source to begin charging (this was so much harder than you think)
- Visual Feedback: You'll see redstone sparks as the Golem siphons power from the grid.
- Panic Drain: Be careful! Panicking is stressful on the hardware. if a Golem is running for its life, its battery will drain significantly faster.
Passive Siphoning
Golems are smart enough to recognize a redstone hot spot when they walk over one.
- If a Golem happens to walk over or stand near an active redstone source during its normal routine, it will passively gain a small amount of charge.
- Passive charging is slower than dedicated docking, but it's a great way to keep your "patrol" Goelms powered without them constantly needing to dock if you wire your room correctly.
Self Preservation
If you look good, you feel good. CuGO follows this to a T. Provide them with the right tools, and they will maintain themselves.
- If a Golem is holding Honeycomb, it will apply it to itself to prevent further oxidation
- If a Golem is holding an Axe, it will use it to scrape off oxidation if it is unwaxed.
- It won't ever use a tool if it is about to break, or able to be broken (configurable)
Weathering
The Copper Golem continues to follow the aging process, with a few tweaks.
- There is a clean, reliable, and random transition as it progresses through oxidation stages
- When a Golem fully oxidizes, it enters a shutdown sequence, clanking, trying to hold on, before turning into a Copper Golem Statue.
Statues
This is getting long. Statues can be recharged. And yes, this, too, is configurable.
- Rechargeable Statues: Depending on your config, if you give your statue a redstone signal, your lil guy will come back to the world of the living.
- Pose Shifting: Nothing really different here. If you have
rechargeableStatuesset totrue, using an axe won't bring it back to life. Setting it tofalsedoes the vanilla thing.
Dev Logs
Turn debugMode on if you want to get spammed in chat and server logs, or if you need to debug. See what I see.
Configs
debugMode - Setting to true allows for your console to show debug messages. Helps to picture what is going on in CuGO's head.
redstoneBoost - Walking across Redstone Blocks gives CuGO speed.
rechargeableStatues - Setting to true allows you to reactivate statues back into a new CuGO. This currently does not save the original's NBT.
rechargeableGolems - When set to true, golems have a battery. If any part of them visibly touches or is next to a redstone signal, it will stand still and recharge when it is at 10%.
damageItemsOnUse - Setting to true allows the golem, when using an axe to scrape its oxidization, to use up the tool's durability.
barrelAsOutput - Barrels are a valid container to be sorted into if set to true
shulkerAsOutput - Shulker Boxes are valid containers to be sorted into if set to true
wanderRadius - Changes the max radius that CuGO searches while randomly wandering. Integer value.
wanderTime - Changes how long CuGO remains in the random wander state before being forced to go to FetchBehavior. Integer value in seconds.
lingerTime - Changes how long CuGO lingers before pinging. This is purely cosmetic. Integer value in seconds.
searchRadius - Searches a radius around it for containers and redstone sources. Integer value.
panicTime - This is the amount of time it takes for CuGO to calm down while CuGO is safe. this is paused if danger remains nearby. Integer value in seconds.
xzInteractRange - Probably should've named this horizInteractRange. It is the horizontal dimension of the box that CuGO checks when deciding whether it is in range of a chest to open it. Double (decimal) value.
yInteractRange - Probably should've named this vertInteractRange. It is the vertical dimension of the box that CuGO checks when deciding whether it is in range of a chest to open it. Double (decimal) value.
maxStackSize - The max stack size CuGO can hold at any one time. In vanilla, this is 32. In CuGO default configs, it is 64. Integer value.
batteryLife - The battery life of CuGO, used when rechargeableGolems is turned on. Integer value in minutes.
warningThreshold - When this amount of time is left, it begins searching for charge. Integer value in minutes. Keeping this approximately 10% of the batteryLife seems healthiest.
batteryDrain - Each tick, this decides how many charges are used. Integer value, charge per tick.
chargeTime - The amount of time it takes for CuGO to, hypothetically, go from 0% to 100%. Integer value in seconds.
passiveCharge - If true, CuGO can charge by casually walking through a valid charge location.
passiveChargeRateMultiplier - If passiveCharge is true, this affects the rate of that passive charge. Double (decimal) value.
consumeConsumables - If true, this will consume things like copper ingots when healing itself.
losUnderThreshold - If above this relative to CuGO's position, CuGO will ignore LOS. Positive Integer value.
losOverThreshold - If below this relative to CuGO's position, CuGO will ignore LOS. Positive Integer value.
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
下载 CuGO
已更新至 26.2。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧