跳到正文

Universal FML

作者:Cootshk

An easy way to make Forge mods for both 1.8-1.12 and 1.13+

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

An easy way for mod developers to make Forge mods for both 1.8-1.12 and 1.13+.

Players:

This mod does NOTHING on either the client or server. You do not need to install it. It is for developers only.

Developers:

This mod defines a net.minecraftforge.fml.common.Mod annotation that contains both the legacy (1.8-1.12) and modern (1.13+) fields. This allows you to load one entrypoint in both legacy and modern forge, without having to make a split buildscript or deal with projects like Stonecutter.

Why?

I wanted to mixin into other mods (namely Essential) on 1.8 through 1.20.

Fabric/Neo?

Fabric uses fabric.mod.json to load entrypoints, which is intentionally kept backwards-compatible.
Neoforge uses net.neoforged.fml.common.Mod, which you should be able to add (to a seperate class) and load with no issue.

Usage

Short answer: @Mod(value = "mymodid", modid = "mymodid", useMetadata = true), then put all of your metadata into mcmod.info and mods.toml.
Long answer: see the GitHub.

常见问题

Universal FML 支持哪些 Minecraft 版本?

Universal FML 支持 Minecraft Java 版 1.8–26.3,共 75 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Universal FML 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

Cootshk 的其他作品

查看全部 →