MCPitanLib

MCPitanLib

2M Downloads

MCPitanLib

License

  • MIT License

日本語

MCPitanLibはライブラリです。 1つのjarで複数のMCバージョンを対応させるためのものです。
開発中であるため、予告なく仕様が変更されることがあったり、不具合があるかもしれません。
私専用につくっているため、他の方が使うことをあまり想定していません。

前提MOD

ダウンロード

使い方

build.gradleに以下のように記述してください。

repositories {
    maven {
        url = "https://maven.pitan76.net/"
    }
}

dependencies {
    // FabricMC
    modImplementation "net.pitan76:mcpitanlib-fabric:${rootProject.mcpitanlib_version}"
    
    // Minecraft Forge
    //modImplementation "net.pitan76:mcpitanlib-forge:${rootProject.mcpitanlib_version}"
    
    // NeoForge
    //modImplementation "net.pitan76:mcpitanlib-neoforge:${rootProject.mcpitanlib_version}"
}

gradle.propertiesに以下のように記述してください。

# Example: mcpitanlib_version=+1.18.2:3.3.3
mcpitanlib_version=+x.x.x:x.x.x

バージョンはGitHub Packages (3.3.3以降) or maven.pitan76.net (3.3.3以前)で確認してください。

MCPitanLibを用いたMOD開発は「common/src/main/java/net/pitan76/mcpitanlib/test/ExampleMod.java」を参考にしてください。

English

MCPitanLib is a library. It is for supporting multiple MC versions with one jar.
It is under development, so the specification may change without notice, and there may be bugs.
I am creating it for my own use, so I don't expect others to use it much.

Required MOD

Download

How to use

Write as follows in build.gradle.

repositories {
    maven {
        url = "https://maven.pitan76.net/"
    }
}

dependencies {
    // FabricMC
    modImplementation "net.pitan76:mcpitanlib-fabric${rootProject.mcpitanlib_version}"
    
    // Minecraft Forge
    //modImplementation "net.pitan76:mcpitanlib-forge${rootProject.mcpitanlib_version}"
    
    // NeoForge
    //modImplementation "net.pitan76:mcpitanlib-neoforge${rootProject.mcpitanlib_version}"
}

Write as follows in gradle.properties.

# Example: mcpitanlib_version=+1.18.2:3.2.4
mcpitanlib_version=+x.x.x:x.x.x

Please check the version at GitHub Packages (for versions 3.3.3 and later) or maven.pitan76.net (for versions before 3.3.3).

For MOD development using MCPitanLib, refer to "common/src/main/java/net/pitan76/mcpitanlib/test/ExampleMod.java".

Note

Auto Cherry-Pick (GitHub Actions)

コミットメッセージに [cp] を含むと、Actionsで自動的にCherry-Pickを行います。
そのコミットしたブランチからそれより下位のバージョンのブランチにCherry-Pickし、コンフリを起こした場合はそこで停止し、PRを作成します。
今のところ、そのPRは使えないので閉じる必要があります。(今後はissueにする予定です。)