Skip to content

适用于 Minecraft 1.11.2 的 CompatLayer 模组

帮助模组在 1.10 和 1.11 之间兼容的兼容层

起价 McJty · CurseForge
次浏览
26 次浏览
已更新
已更新 17.10.2026
  • 1.11 — 1.11.2

关于 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

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.11–1.11.2 automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. 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.

  2. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.

  3. 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 的人

评论 0

登录后即可评论登录

相似模组

全部模组

了解更多