Colony Patches – Compatibility Fixes for MineColonies
为模拟殖民地整合包提供的小型兼容性修复:农民再次收获文化乐事玉米,而不是让服务器崩溃。
介绍
Colony Patches carries small compatibility fixes for MineColonies modpacks. Big packs put many addons next to each other, and now and then an update on one side breaks something on the other: the fix lives here until the mods involved fix it themselves. Each fix only acts when the broken combination of mods is actually loaded; with anything else the mod does nothing.
Fixes
Farmers and Cultural Delights corn
With the Compatibility addon for MineColonies 3.57 and Cultural Delights 0.18 or later, a farmer working a field with corn crashed the server (“Ticking entity”, NoClassDefFoundError: com/baisylia/culturaldelights/block/custom/CornUpperBlock).
The addon still harvests corn as the two-block plant it was up to Cultural Delights 0.17, but 0.18 rebuilt corn as a single block, up to three blocks tall, and removed the upper block. With Colony Patches, farmers harvest ripe corn as an ordinary crop: the bottom block at full age drops the cobs, the upper blocks go with it, and the farmer plants kernels again. Eggplants, cucumbers and beans were never affected.
The fix checks the actual classes rather than version numbers: with the old two-block corn, or once the Compatibility addon fixes its corn handler, it stays out of the way. Reported upstream as MineColonies_Compatibility#203.
Building modules numbered the same on the server and its players
MineColonies numbers its building modules in the order the mods load, and the server and its players talk about modules by those numbers: building windows are synced with them, and settings, hiring and item lists are sent back with them. NeoForge fixes the load order only where mods depend on each other; for the rest it depends on the set of installed mods, so a dedicated server – which has no client-only mods – can number the modules differently from its players. Then the windows of some addon buildings do not sync, settings can reach the wrong module, and opening the town hall’s statistics page crashes the game.
Colony Patches numbers all building modules by name once loading is complete, the same on both sides. Worlds are not touched: the numbers are never saved.
Tested
On a dedicated server with the server-side mods of Lovkar’s MineColonies Ultimate: a colony with a farmer and a field of 24 ripe plants. Without Colony Patches the server crashes as soon as the farmer looks at the corn; with it, all 24 plants are harvested and replanted, and nothing is left hanging in the air.
Module numbers: the 244 building modules of that pack, dumped on a dedicated server and on a player’s client, differed for 22 modules before; with Colony Patches both sides number the same 244 modules by name.
Requirements
- Minecraft 1.21.1 with NeoForge 21.1
- No other mod: in a game without the mods it patches, it does nothing
- On the server and on every client (single player runs a server too). A player without it cannot join a server that has it, and the other way round: NeoForge names the missing mod at login.
- Adds no blocks, items or settings, so it is safe to add to a world and to remove again
Made by Lovkar & Claude. Licensed GPL-3.0-or-later. Source on GitHub.
常见问题
Colony Patches – Compatibility Fixes for MineColonies 支持哪些 Minecraft 版本?
Colony Patches – Compatibility Fixes for MineColonies 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Colony Patches – Compatibility Fixes for MineColonies 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Lovkar_Squid 的其他作品
查看全部 →Voyager – End Expeditions for MineColonies
为 MineColonies 添加一种探索末地的新职业:建造发射台或末地传送门,雇用一名航行者,让他带回末地战利品——前提是他能活着回来。
Colonies at War – Walls and Warfare for MineColonies
建筑师建起幕墙,守卫巡逻高塔;战火则由行军的战团、如同真实袭击般的围城战、会反击的王国、附带条件的和平、商队和联盟构成。
Colonist Thieves – Heists for MineColonies
为模拟殖民地添加一个会抢劫其他定居点的职业。建造藏身处、雇佣盗贼并标记营地、村庄或敌对殖民地——他会在夜里潜出,可能毫发无损地回来,也可能被发现,甚至一去不返。
The Waking World
唤醒由大地本身构成的四十格巨像,跟随死者的信件前往神龛、宝库和城墙王国,并打开通往末地泰坦的道路。无依赖。
评论
登录后评论和评分