AmbleKit 图标

AmbleKit

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.14-1.20.1+forge-beta
本资源为搬运资源,原资源地址: https://modrinth.com/mod/amblekit
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: game-mechanics library utility

资源介绍
### **Presented by [Amble Labs](https://amblelabs.github.io)** ![Amble Kit](https://cdn.modrinth.com/data/cached_images/d356695702e6fbdc33ad1ecd0bcbb344dffd4cb6_0.webp) [curseforge](https://www.curseforge.com/minecraft/mc-mods/amblekit) [modrinth](https://modrinth.com/mod/amblekit) [fabric](https://fabricmc.net/) [forge](https://files.minecraftforge.net)
### 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? 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? 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 Links & Community

GitHub

CurseForge

Modrinth

Discord

Website

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Kontraption

价格:0 墨喵币
下载量:0

查看详情
Prometheus

价格:0 墨喵币
下载量:0

查看详情
Basic Skyblock

价格:0 墨喵币
下载量:0

查看详情
Jumpy Boats

价格:0 墨喵币
下载量:0

查看详情