适用于 Minecraft 1.20.1, 1.21.1 的 Moonlight Lib 模组
动态数据包和注册、村民活动、自定义地图标记以及更多内容
关于 Moonlight Lib 模组
此库的功能包括:
- 动态资源包工具
一组工具,允许创建动态运行时资源包和数据包。还能轻松地重新贴图和重新纹理现有纹理,特别适用于添加新的木质方块。
- 动态方块集注册
允许模组指定一个方块集(例如可以是某种木材类型)。然后模组将扫描所有已注册的方块,并填充该方块集,之后才允许模组注册依赖于它的方块。
使用传统方法很难做到这一点,因为木材集本身依赖于已注册的方块,所以注册必须在非常特定的时间进行。此工具使这项任务变得可行且简单。请注意,这仍然是一种动态注册形式,可能会有一些缺点。
简而言之,你的方块可以获得动态木材类型支持。木材集类型已经内置。
- 自定义地图标记:
一个完整的系统,允许轻松实现和添加地图装饰和地图标记,并控制它们的各个方面,如渲染。还允许在地图数据中存储简单数据,并提供一些钩子来使用它,例如物品提示。此系统还提供简单的数据驱动实现,意味着你可以轻松地通过数据包注册新标记!
- 动态村民 AI
一个辅助系统,可以轻松、动态地添加任务并以兼容的方式修改村民日程,而无需覆盖整个现有 AI。还允许正确添加记忆类型
- 自定义第一人称和第三人称动画:
允许模组开发者在他们的物品中实现一个简单的接口,使其能够拥有自定义的第三人称和第一人称动画(如弩)。包括简单易用的接口,让你可以控制第一人称和第三人称动画,以及直接在物品类中渲染物品本身的回调(类似于望远镜)
- 砂轮成就触发器:
该模组添加了一个自定义触发器,当物品通过砂轮时会被调用,你可以在模组的进度 中调用它
- 软流体系统:
一个完全数据驱动的自定义虚拟流体系统,建立在 forge 系统之上,旨在更好地融入原版 minecraft,其主要特性是能够拥有多种流体容器物品,如瓶子、碗和桶,并支持可以直接从流体罐中消耗的炖菜和饮料。与 forge 流体系统不同,它的基本单位是 1 个 minecraft 瓶子(250 forge mb)。该系统还会自动为已注册的 forge 流体生成所有需要的流体,并允许用户轻松覆盖或添加它们。流体是虚拟的,因此它们只能存在于专门为它们设计的模组容器中
-发射器工具:一些代码,允许轻松注册发射器行为,而无需覆盖已有的行为。还内置了刷怪蛋和方块放置行为
如何安装 Moonlight Lib
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.16–26.1.2 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.1.2. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file moonlight-26.1.2-4.2.0-fabric.jar (2.1 MB) for your game version and loader.
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: Moonlight Lib should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.1.2.
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 | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 26.1.2 | Fabric | 26.1.22.1 MB 2 | ||
| 26.1.2 | NeoForge | 26.1.22 MB | ||
| 1.20.1 | Forge, NeoForge | 1.20.11.4 MB 17 | ||
| 1.20.1 | Fabric | 1.20.11.3 MB 5 | ||
| 1.20.1 | Forge, NeoForge | 1.20.1192 KB 3 | ||
| 1.20.1 | Fabric | 1.20.1192 KB 1 | ||
| 26.1.2 | Fabric | 26.1.22.1 MB | ||
| 26.1.2 | NeoForge | 26.1.22 MB |
运行所需
常见问题
Which Minecraft versions does Moonlight Lib work on?
There are files for 1.16–26.1.2, 13 versions in total. The newest is 26.1.2.
Is Moonlight Lib for Forge or Fabric?
There are files for Fabric: 1.19–26.1.2, for Forge: 1.16–1.20.1 and for NeoForge: 1.20–26.1.2.
What does Moonlight Lib need to work?
Required: Fabric API. Without it the mod will not start: dependencies go into the same mods folder.
Does Moonlight Lib work on a server?
Yes. Moonlight Lib works both in singleplayer and on a server.
How do I download Moonlight Lib?
With Millida Launcher: it installs Moonlight Lib into a modpack by itself, for the right game version and loader. The launcher is free.
评价
成为第一个评价 Moonlight Lib 的人


