关于 BiomeIdFixer
BiomeIdFixer 拦截 Minecraft 和 Forge 的生物群系注册过程,记录分配到的 ID,然后禁止 Minecraft 在添加新生物群系或移除现有生物群系时更改它们。Minecraft 随后会使用记录好的生物群系 ID,就像没有安装此模组一样。查看 Wiki 以获取更多信息。
冒险模式创作者
对于制作冒险和故事模式风格地图的制作者:场景切换效果最佳,只要不要太长即可:最终幻想 III(美版)中空袭摧毁土地的场景;Zelda(时之笛)中灰烬飘落或时光神殿周围出现可怕敌人的场景;Zelda(旷野之息)中随着加农多夫变强,城堡周围和山顶变得黑暗……想象一下这样的脚本:暂时踢出玩家,加载另一个包含生物群系 ID 的 biomeidfixer.json 地图文件,然后重新加载你的世界,曾经宁静的平原现在充满了 Ghasts(点击查看展示此效果的视频)和 Wither skeletons(由于光照等级未生成)……你可以做到这一点。请记住,这会影响所有现有的区块,这非常完美,因为这些世界通常是人工建造的。
适用于所有人
生物群系 ID 是特定于世界的,更改只需重启世界,而无需重启 Minecraft 实例。
你可以将主 biomeidfixer.json 文件传输给你的整合包玩家、服务器玩家和朋友,如果他们丢失了自己的文件,或者你只是想分享。
- 如果你添加了生物群系,BiomeIdFixer 会将新生物群系的 ID 添加到主列表中。
- 如果你移除了生物群系,则不会发生任何变化。其 ID 将永久锁定给该生物群系,无论它是否仍在你的整合包中,因此它永远不会被 Minecraft 覆盖。
- 因此,即使你意外删除了主 biomemap 文件,你也可以从其他人或某处复制一个,或者你可以很容易地让 Minecraft 生成一个新的。查看 Wiki 以获取更多有用信息,包括如何恢复你的 biomeidfixer.json 文件。。
- 警告!:如果你不是在与他人相同的版本开始你的整合包,并且没有按照完全相同的顺序通过版本更新,那么你的生物群系 ID 可能没有被相同地分配,因此仍然存在 ID 不完全正确的风险。换句话说,务必备份你的世界文件夹!!
- 然而,如果你从相同的整合包版本开始,并多次更新到相同的版本,你的 biomemaps 将会完全相同,你应该能够将其从一个玩家/世界传输到另一个。
术语与内幕知识
- 如果你移除一个生物群系并在稍后决定将其添加回来,只要没有添加其他生物群系且它们的权重没有改变,Minecraft 和 Forge 将继续使用你移除它之前使用的完全相同的生物群系映射。这些重新添加的生物群系将继续使用与之前完全相同的 ID。这对于意外的模组删除或配置更改非常有用。
- 如果模组更改了生物群系的名称,该生物群系将失去其分配的 ID 并为其新名称分配一个新的 ID。Minecraft 随后将选择如何处理先前生成的生物群系,包括温度、天气、氛围、生物等。这是不可避免的、无法预防的,除非将名称还原,否则无法修复。
- BiomeIdFixer 不会重新生成已经生成的区块,它确保已经分配的生物群系保持其最初生成时的生物群系,只要该生物群系在游戏中仍然存在。
警告,尖锐边缘
- 这并不能防止新旧区块之间的尖锐生物群系边界。Minecraft 生成一个特定于你的世界种子的噪声地图,并将生物群系分配给该地图,使其完全填充。当你添加一个生物群系时,剩余的未认领地图空间将分配给更多的生物群系,因此这种情况很可能发生。
在哪里进行 ...
已知问题
- Endergetic Expansion(末地扩张)似乎会在服务器和客户端以不同的时间注册其生物群系。如果您正在使用此模组,请将 WorldName/biomeidfixer/biomeidfixer.json 文件从您的服务器复制到客户端。这应该能解决该问题。
- 如果在世界加载或创建过程中删除了服务器实例上的 server.properties 文件或单人模式实例上的 biomeidfixer.temp 文件,整个地图将被替换为 Minecraft 或 Forge 注册的任意新地图。这将被归类为用户操作失误,且在大多数情况下无法修复。我不打算实现备份解决方案。由于 Minecraft 的生物群系注册机制,此文件无法移动到您的世界文件夹中。
- 目前与 Windows 11 不兼容。由于更新 Forge 以及保持此模组制作时的 Forge 版本存在困难,我目前无法对我的模组进行任何操作,因此在我能够完成所有更新之前,此问题将保持未修复状态。我知道错误来源,并且有大致的修复思路。
关于 ...
- ... 在一个简单的配置文件中手动关闭各个生物群系,防止它们被完全注册,适用于所有已安装的模组?在未来,我可能会实现此功能。
- ... 以完全相同的方式控制生物群系的其他方面,例如更改天空颜色、温度、湿度、可生成的生物等。在未来,我可能会实现此功能。
- ... 控制和修改 Minecraft 在世界加载时注册的所有细节?这是可以实现的,在未来,我可能会实现此功能。
- ... 重载当前已加载的生物群系 ID,允许您在不退出世界的情况下更改生物群系的行为方式?如果我有足够的精力和几百个小时,这绝对是可能的,但学习如何编写代码将会非常复杂。
你可以 ...
需要感谢:
- SkySom,当其他人甚至因为我提出询问而直接封禁我时,你给予了我极大的帮助。
- HellfirePVP,提供了优秀的 .gitignore 和 build.gradle 文件作为模板。
- MinecraftForge、Minecraft 和 IntelliJ,使其文档和示例代码在其许可证下公开可用。
- Tslat,你给予了我极大的帮助。
- TeamPneumatic,其代码向我展示了如何保存到世界文件夹。
About BiomeIdFixer
BiomeIdFixer intercepts Minecraft's and Forge's biome registration processes, records the assigned ids, and then denies Minecraft the ability to change them if new biomes are added or current ones are removed. Minecraft then uses the recorded biome ids identically to how it would have without this mod installed. See the Wiki for more useful information.
Adventure Mode Creators
For adventure and story mode style mapmakers: cut away scenes are the best, as long as they are not too long: Final Fantasy III, USA, when the air strike destroyed the land; Zelda, OoT where ash is floating down or horrible enemies now exist around the Temple of Time; Zelda, BoTW, around the castle and up the mountain turn dark as Ganondorf grows stronger, well ... imagine a script that kicks your players momentarily, loads another biomeidfixer.json map of biome ids, and then reloads your world, where the once peaceful plains are now filled with Ghasts (click to see video showing this) and Wither skeletons (not spawning due to light levels) ... you can do that. Remember, this affects ALL existing chunks, which is perfect, because these worlds are usually man made.
For Everyone
Biome Ids are world specific, and changes only require worlds to be restarted, not your Minecraft instance.
- Made with Forge 1.16.4.35.1.29, and works tested up to 1.16.5.36.1.23.
- Works with ATM6 1.3.7 through 1.6.2, Create Together, and Enigmatica 6, and many more packs.
- Tested on both dedicated servers and single player clients.
- Personally tested on Windows and macOS (May 21, 2021), and others confirm Linux.
- Works with all Vanilla biomes, as well as those from Applied Energistic 2, Rats: Ratlantis, Oh the Biomes You Go (BYG), Biomes o'Plenty (BoP), Mahou Tsukai, The Endergetic Expansion, The Twilight Forest, and many more.
You can transfer your master biomeidfixer.json file to your pack players, your server players, and your friends, if they lose theirs, or you simply want to share.
- If you add a biome, BiomeIdFixer adds the new biome id to the master list.
- If you remove a biome, nothing happens. Its id is forever locked to that biome, whether still in your modpack or not, so, it can never be overwritten by Minecraft.
- So, even if you accidentally delete your master biomemap file, you could copy one from someone or somewhere else, or you can quite easily let Minecraft generate a new one. See the Wiki for more useful information, including restoring your biomeidfixer.json file..
- Warning!: if you did not start your pack on the same version as someone else, and update through the versions in the exact same order as they have, your biome ids may not have been assigned identically, so, you do run the risk of ids still not being 100% correct. In other words, always back up your world folders!!
- If, however, you started on the same pack version, and updated to the same versions, time and time again, your biomemaps will be identical, and you should be able to transfer them from one person/world to another.
Jargon, In the Know
- If you remove a biome and decide to add it back at a later time, Minecraft and Forge will continue using the exact same biome map that was used before you removed it, provide no additional biomes have been added, and their weights have not changed. These re-added biomes will continue to use the exact same id that they used before. This is great for accidental mod deletions or config changes.
- If a mod changes a biome's name, the biome will lose its assigned id and be assigned a new one for its new name. Minecraft will then choose how to handle the previously generated biome, including temperature, weather, ambiance, mobs, etc. This is unavoidable, unpreventable, and without reverting the name back, unfixable.
- BiomeIdFixer does not regenerate chunks that have already been generated, it makes sure that biomes that have already been assigned remain the biome they were initially generated as, as long as that biome still exists in the game.
Warning, Sharp Edges
- This does not prevent sharp biome edges from separating old and new chunks. Minecraft generates a noise map that is specific to your world seed, and biomes are assigned to that map, filling it complete. When you add a biome, the remaining uncliamed map space will be distributed amoungst more biomes, so it is very likely that these will occur.
Where to Do ...
Known Bugs
- The Endergetic Expansion seems to be registering its biome at different times on Servers and Clients. If you are using this mod, please copy the WorldName/biomeidfixer/biomeidfixer.json file from your server to your client. This should fix the issue.
- If the file server.properties on a server instnace, or biomeidfixer.temp on a singleplayer instance are removed while the world is loading or being created, the entire map will be replaced with whatever new map has been registered by Minecraft or Forge. This will be classed as user error, and, for the most part, can not be fixed. I do not plan on implementing a backup solution. This file can not be moved into your world folder, because of the way Minecraft's biome registration works.
- Will not work with Windows 11, currently. With issues updating forge, and keeping forge at the version this mod was made in, I am currently unable to do anything with my mod, so, this issue will go unfixed until I can get everything to update. I know where the error is coming from, and have a general idea of how to fix it.
What About ...
- ... manually turning off individual biomes, preventing them from being registered entirely, within one simple config file for all installed mods? In the future, I may implement this.
- ... controlling the other aspects of biomes in the exact same way, changing the sky color, temperature, humidity, mobs that can spawn, etc. In the future, I may implement this.
- ... controlling and modifying every little thing that minecraft registers while loading into a world? It can be done, and in the future, I may implement this.
- ... overloading currently loaded biome ids, allowing you to change how a biome acts without even having to exit your world? If I have the headspace, and a few hundred hours, it definitely would be possible, but would be super complicated to learn how to code it.
Can you ...
- ... use it in your Pack?
YES!
In Need of Recognition:
- SkySom, you helped me a lot, when others literally banned me for even inquiring.
- HellfirePVP for having a great .gitignore AND build.gradle file to template off of.
- MinecraftForge, Minecraft, and IntelliJ for making the documentation and shown code available under their license.
- Tslat, you helped me a lot.
- TeamPneumatic for having code that showed me how to save to the world folder.
评论 0
登录后参与评分
还没有评论,来抢沙发吧