跳到正文

Kaya

作者:eggohito

Empower your game with this library that adds data-driven powers to entities via data packs.

收藏

介绍

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

Kaya

Kaya (shortened form of ‘kakayahan’, which is the tagalog translation for ‘capability’/’ability’) is a library that allows attaching “powers” to entities via data packs. This is a rewrite of the Apoli project by Apace.

Features

  • Vanilla-esque context system which allows for certain types to interconnect with each other.
  • Data-driven powers which gives an entity a certain “ability” when granted. These provide the context needed by other types to function.
  • Actions and conditions that uses the context system to affect and check the state of the objects of a world respectively.
  • Value providers of various types that uses the context system to provide a dynamic value, like providing the attribute value of an entity for a field.

Usage

For players/mod pack authors

You don’t have to install this library as most if not all dependents will include or require it, but this library will work fine as a standalone mod.

For developers

  • Using Modrinth Maven
repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
    maven {
        name = "QuiltMC"
        url = "https://maven.quiltmc.org/repository/release"
    }
    maven {
        name = "Xander Maven"
        url = "https://maven.isxander.dev/releases"
    }
    maven {
        name = "Terraformers"
        url = "https://maven.terraformersmc.com/"
    }
}

dependencies {
    //  Remove 'include' if you don't want to JiJ the library
    include(modImplementation("maven.modrinth:kaya:<version>"))
}
  • Using local maven / as a local dependency

You can clone this repository and run ./gradlew publishToMavenLocal. It will publish the artifacts to the local maven and under the io.github.eggohito group:

repositories {
    mavenLocal()
    maven {
        name = "QuiltMC"
        url = "https://maven.quiltmc.org/repository/release"
    }
    maven {
        name = "Xander Maven"
        url = "https://maven.isxander.dev/releases"
    }
    maven {
        name = "Terraformers"
        url = "https://maven.terraformersmc.com/"
    }
}

dependencies {
    //  Remove 'include' if you don't want to JiJ the library
    include(modImplementation("io.github.eggohito:kaya:<version>"))
}

Contributing

This project uses JDK 21 and Fabric Loom 1.19-SNAPSHOT. You can generate artifacts using ./gradlew build and run the client or server with ./gradlew runClient or ./gradlew runServer for testing. The client and server will use the run/client and run/server directories respectively.

常见问题

Kaya 支持哪些 Minecraft 版本?

Kaya 支持 Minecraft Java 版 1.21.5,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Kaya 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

eggohito 的其他作品

查看全部 →