原版铜傀儡在手中持有物品时,只会前往最近的箱子。在经过大约 10 个箱子后,它们就会放弃并忘记所有接触过的箱子,希望能找到正确的那个。
本模组试图修复这一问题,或至少让它们在大容量储物室中更具可行性,同时仍然保留“试错”这一原版行为(即在对该物品没有相关知识的情况下)。
铜记忆块
本模组新增的方块。附近的铜傀儡会以发现箱子的相同方式发现该方块,并自动锁定距离最近的一个。
记忆块执行一项简单的任务:当傀儡将物品存入箱子时,它会将该箱子添加到其锁定的记忆中。之后对同一物品进行分拣的傀儡会检查记忆是否知道任何已经分拣过该物品的箱子,如果知道,则会优先检查这些箱子。如果傀儡发现该箱子不再包含该物品,它会确保将其从记忆中移除。
如果你想清除记忆,只需破坏它即可!

为什么不给傀儡自身赋予记忆?
通过方块来实现这一点,可以让傀儡以某种方式“交流”。如果你拥有多个傀儡,其中一个存储了物品,其他傀儡可以迅速意识到这一点并朝那个方向移动,而不是必须自己去发现那个箱子。
这也避免了为每个傀儡重复存储数据。如果你有 大量 傀儡,这可能会产生实际意义,哪怕只是一点点。
Vanilla Copper Golems will simply navigate to the nearest chest when it has something in its hand. After only 10 chests, it gives up and forgets everything it's touched in hopes of finding the right one.
This mod attempts to fix this, or at least make them more viable for larger storage rooms, while still maintaining the Vanilla behavior of "trial-and-error" if there's no knowledge about that item.
Copper Memory Block
The new block added by this mod. Copper Golems near the block will discover it in the same way it finds chests, and will latch onto the closest one automagically.
A Memory Block does a simple task: when a Golem stores an item in a chest, it will add that chest to the memory it's latched onto. Golems later sorting the same item will check to see if the memory knows about any chests that had that item sorted into them already, and will check those first if it does. If the Golem finds that the chest no longer contains that item, it'll make sure it gets removed from the memory.
If you ever want to clear the memory, just break it!

Why not give Golems a memory of their own?
Doing this with a block allow Golems to "communicate" in a way. If you have multiple Golems and one stores an item, other Golems can quickly realize that and go in that direction rather than having to discover that chest for themselves.
It also avoids duplicating the data for each Golem. If you have a lot of them, this might actually be meaningful, even if just a little bit.
评论 0
登录后参与评分
还没有评论,来抢沙发吧