跳到正文

Smoothiez Api

作者:Smootheez

Minecraft Mod to provide boilerplate code for all of Smootheez's Mods

收藏

介绍

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

Smoothiez API

A foundational library mod that serves as the backbone for all of Smootheez’s other mods.
It provides shared utilities, common logic, and essential backend features to simplify mod development and ensure consistency across projects.

Usage Overview

While Smoothiez API was originally developed for Smootheez’s personal projects, you’re welcome to use or integrate it into your own mods if it fits your needs.

Project Setup

  1. Clone the repository
   git clone https://github.com/Smootheez/Smoothiez-Api.git
  1. Build the desired module

    • For the first build, run:
      ./gradlew :1.21.9:build

    Replace 1.21.9 with the target submodule name (e.g., the version your mod depends on).

    • The module to build depends on which one the example module uses.
  2. Reload the Gradle project in your IDE (e.g., IntelliJ IDEA) after building.

Using Smoothiez API in Your Mod

  1. Publish to your local Maven repository
   ./gradlew :1.21.9:publishToMavenLocal

Again, replace 1.21.9 with the module you built earlier.

  1. Add Smoothiez API as a dependency in your mod’s build.gradle.kts:
   repositories {
       mavenLocal()
   }

   dependencies {
       modApi("io.github.smootheez:smoothiezapi:0.1.0+1.21.9")
       // or use a variable for flexibility:
       modApi("io.github.smootheez:smoothiezapi:${smoothiezApiVersion}")
   }

Download

Modrinth Curseforge
Smoothiez API Smoothiez API

Issue Tracker

Found a bug or have a feature request? Please report it here: GitHub Issues

Support Me

If you enjoy this mod and want to support my work, consider donating:

ko-fi
paypal

常见问题

Smoothiez Api 支持哪些 Minecraft 版本?

Smoothiez Api 支持 Minecraft Java 版 1.21.9–1.21.11,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Smoothiez Api 怎么安装?

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

评论

登录后评论和评分

Smootheez 的其他作品

查看全部 →