由 Amble Labs 呈现

这是一个库模组,可用于简化 Fabric 上的模组开发代码
本库被我们许多 Fabric 模组所使用
这个库添加了什么?
Minecraft 注册机制
无需手动注册每一项内容,您只需简单 extend(继承)或 implement(实现)我们的 RegistryContainer 类之一即可。
这些实用接口通过在我们的模组 #onInitialize 方法中插入 RegistryContainer.register(ClassName.class, MOD_ID 来被我们的模组识别。
数据包工作流
我们提供了一个名为 SimpleDatapackRegistry 的自定义类。
这使得您的自定义类能够轻松地从数据包中读取并直接注册!
为了让该套件识别您的注册表,请在模组的 #onInitialize 方法中调用实例的 register 方法,或者调用 AmbleRegistries.register(MyRegistry.getInstance())。
数据生成
我们利用注解以及前述的注册表容器来自动生成许多功能。
例如,方块的自动英文翻译——
只需创建一个 AmbleLanguageProvider 实例,并通过 #withBlocks 方法传入您的 BlockContainer,下次运行数据生成时,所有这些方块都将根据其标识符拥有英文翻译。
还有更多类似的数据生成实用工具。
更多功能!
如何开始使用?
您可以从我们的 amblekit 模板开始!
适用于 Fabric 1.20.1 Modkit 的 GitHub 模板
如果您已有现成的模组并希望添加 amblekit,请将以下内容添加到您的 build.gradle 文件中:
repositories {
maven {
url "https://jitpack.io"
metadataSources {
artifact() // 直接查找工件
}
}
}
dependencies {
modImplementation("com.github.amblelabs:modkit:${project.modkit_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
}
或者如果您使用的是 Kotlin:
repositories {
maven {
url = uri("https://jitpack.io")
metadataSources {
artifact() // 直接查找工件
}
}
mavenCentral()
}
dependencies {
modImplementation("com.github.amblelabs:modkit:${project.property("modkit_version")}")
}
链接与社区
GitHub • CurseForge • Modrinth • Discord • 官网
Presented by Amble Labs

This a library mod that can be used for code simplifying for developing on Fabric
This is used in many of our Fabric mods
What does this libary add?
Minecraft Registration
Instead of having to manually register each and every thing, you can simple extend or implement one of our RegistryContainer classes.
These utility interfaces are recognised by our mod by sticking RegistryContainer.register(ClassName.class, MOD_ID into your mods #onInitialize method.
Datapack Workflow
We provide a custom class called SimpleDatapackRegistry
This allows your own classes to be read and registered straight from datapacks with ease!
For the kit to recognise your registry, in your mods #onInitialize method, you need to call register on your instance OR AmbleRegistries.register(MyRegistry.getInstance()))
Data Generation
We utilise annotations and the previously mentioned registry containers to automatically generate many features.
For example, automatic english translation for blocks -
By simply creating an instance of AmbleLanguageProvider and passing in your BlockContainer with the #withBlocks method, next time you run datagen all these blocks will have english translations based off their identifiers.
There are more datagen utilities akin to this.
Much more!
Where can I start with this?
You can start with our template for amblekit!
Github Template for Fabric 1.20.1 Modkit
If you have an already existing mod and want the amblekit then add this to your build.gradle!
repositories {
maven {
url "https://jitpack.io"
metadataSources {
artifact() // Look directly for artifact
}
}
}
dependencies {
modImplementation("com.github.amblelabs:modkit:${project.modkit_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
}
or if you are using kotlin
repositories {
maven {
url = uri("https://jitpack.io")
metadataSources {
artifact() // Look directly for artifact
}
}
mavenCentral()
}
dependencies {
modImplementation("com.github.amblelabs:modkit:${project.property("modkit_version")}")
}
Links & Community
GitHub • CurseForge • Modrinth • Discord • Website
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
下载 AmbleKit
下载 AmbleKit
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AmbleKit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧