关于 CompatLayer 模组
这个小型模组/库提供了一些工具,可以帮助让模组在 1.10 和 1.11 之间实现二进制兼容。如果你确保正确使用此模组中的 API,就有可能制作出一个能在两个版本上运行的模组 jar。
除了这个库所做的事情之外,你还应该做以下几件事:
- 在你的 1.10.2 版本中,将所有资源名称(语言文件、模型名称、json 文件、纹理文件等)改为小写。添加一个 FMLMissingMapping 事件处理器,以便旧世界能够加载
- 模组 id 也应该小写
- 将 tileEntity.worldObj 替换为 tileEntity.getWorld()
- 将 entityPlayer.worldObj 替换为 entityPlayer.getEntityWorld()
这是 alpha 版本。很可能有些东西还不完整。
更多信息请查看 Wiki:https://github.com/McJty/compatlayer/wiki
模组开发者教程:http://modwiki.temporal-reality.com/mw/index.php?title=CompatLayer-1.11
1.10.2 的 Maven:http://jenkins.k-4u.nl/view/McJty/job/Compatlayer%201.10/
1.11 的 Maven:http://jenkins.k-4u.nl/view/McJty/job/Compatlayer%201.11/
如何安装 CompatLayer
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.11–1.11.2 automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Download the file for your version
In the version list above, pick the file compatlayer-1.11.2-0.3.1.jar (40 KB) for your game version.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: CompatLayer should be in the list.
Minecraft 1.11.2 runs on Java 8: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.11.2 | — | compatlayer-1.11.2-0.3.1.jar39.8 KB | ||
| 1.11 | — | compatlayer-1.11-0.0.39beta.jar27.3 KB | ||
| 1.11 | — | compatlayer-1.11-0.0.33alpha.jar24.7 KB |
常见问题
Which Minecraft versions does CompatLayer work on?
There are files for 1.11.2, 1.11. The newest is 1.11.2.
Which Java does CompatLayer need?
Minecraft 1.11.2 runs on Java 8. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download CompatLayer safely?
On this page: the file compatlayer-1.11.2-0.3.1.jar (40 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: d233cd213052094aa6d7a311a8363b217afd3e20.
评价
成为第一个评价 CompatLayer 的人

