跳到正文

CodeLib

作者:NotCoded

A Minecraft Fabric API/Library that provides useful features.

收藏

截图

介绍

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

codelib

yeahh!! this is the fabric library mod that i sometimes use in my projects.

did i mention it has 0, yes zero dependencies?

Features

  • read the wiki
  • more coming soon

How to use

Add the following to your gradle.properties

# https://github.com/not-coded/codelib
codelib_version=...+minecraft_version

# Example
codelib_version=1.0.1+1.20

And build.gradle

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}


dependencies {
    modApi "maven.modrinth:codelib:${project.codelib_version}"

    // you can include it directly if you want you don't want your users to download it
    include "maven.modrinth:codelib:${project.codelib_version}"
}

常见问题

CodeLib 支持哪些 Minecraft 版本?

CodeLib 支持 Minecraft Java 版 1.20–1.20.2,共 3 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

CodeLib 怎么安装?

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

评论

登录后评论和评分

NotCoded 的其他作品

查看全部 →