关于 TxniLib 模组

这是一个前置库模组!如果你不是开发者,不用担心它。它出现在你的整合包里,很可能是因为它是另一个模组的前置。
如果你是开发者,你好!这个库是专门为了配合我的多版本模板模组而设计的,我用它来从同一套代码库同时在 1.20 和 1.21 的 Forge 与 Fabric 上发布模组。除了我发现有用的一些杂项内容外,这个模组主要包含平台和版本特定的实现,以减少在跨版本维护项目时重复的 if/else 判断。欢迎你使用它,但文档只在我有空的时候才会提供。
如何安装 TxniLib
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.20–1.20.1 on Fabric automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric
The loader must match the game version of the mod file, for example Minecraft 1.20.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file txnilib-fabric-1.0.24-1.20.1.jar (1.0 MB) 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. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: TxniLib should be in the list.
On a server
A server on Fabric
The mod only works on a server with the same loader and game version, for example 1.20.1.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
Minecraft 1.20.1 runs on Java 17: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 操作 |
|---|---|---|---|
| 1.20.1 | Fabric | 1.20.11 MB 5 |
运行所需
常见问题
Which Minecraft versions does TxniLib work on?
There are files for 1.20.1, 1.20. The newest is 1.20.1.
Is TxniLib for Forge or Fabric?
Only for Fabric: 1.20–1.20.1. There are no files for Forge or NeoForge: a mod for another loader will not start.
What does TxniLib need to work?
Required: Fabric API. Without it the mod will not start: dependencies go into the same mods folder.
Does TxniLib work on a server?
Yes. TxniLib works both in singleplayer and on a server.
Which Java does TxniLib need?
Minecraft 1.20.1 runs on Java 17. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download TxniLib safely?
On this page: the file txnilib-fabric-1.0.24-1.20.1.jar (1.0 MB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: ef3d09633f44a6a7ee818c9872cb12472bc420ba.
评价
成为第一个评价 TxniLib 的人


