A customized Minecraft Mod Development Kit (MDK) that extends the official Forge MDK with additional features for modern mod development.
Supported versions:
- 1.20.1 Forge (default)
- 26.1 NeoForge
Latest version: https://github.com/Meatwo310/custom-mdk/
- 🔄 Automated build & release via GitHub Actions
- 🧪 Pre-configured Mixin environment
- 📛 Jar naming with version and loader info
- 📚 Parchment mappings (1.20.1 Forge only)
- ⚙️ Build scripts migrated to Kotlin DSL
- 📝 Unified code style with EditorConfig
- 📦️ Pre-configured development mods (JEI, etc.)
-
Click the
Use this templatebutton to create a new repository.- If you want to use a version other than 1.20.1 Forge, make sure to enable
Include all branches. After creating the repository, change the default branch if necessary.
- If you want to use a version other than 1.20.1 Forge, make sure to enable
-
Clone the repository to your local machine.
-
Edit the
ModConfigobject inbuild.gradle.kts.Constant Name Description Example MOD_IDInternal name. Used for item/block IDs, etc. examplemodMOD_NAMEDisplay name. Used in JEI/Jade tooltip, Mod menu, etc. Example ModMOD_LICENSELicense. Open source licenses like MIT are recommended. MITMOD_VERSIONVersion. Semantic versioning is recommended. 0.1.0MOD_GROUP_IDGroup ID. Recommended format is io.github.<GitHub-Username>.<MOD_ID>.io.github.meatwo310.examplemodMOD_AUTHORSAuthors. Comma-separated for multiple authors. Displayed in Mod menu, etc. Meatwo310MOD_DESCRIPTIONDescription. Can be multi-line. Displayed in Mod menu, etc. An example mod.MOD_DISPLAY_URLHomepage URL. Displayed in Mod menu, etc. https://github.com/Meatwo310/custom-mdkMOD_ISSUE_TRACKER_URLIssue tracker URL. Displayed in Mod menu, etc. https://github.com/Meatwo310/custom-mdk/issues -
Move the package structure in
src/main/java/to matchMOD_GROUP_ID. -
Rename
ExampleMod.javato matchMOD_ID. -
Rename and edit
examplemod.mixins.json(both filename and contents) to matchMOD_ID. -
Replace the
LICENSEfile with your preferred license. If using MIT License, change the nameMeatwo310in theLICENSEfile to your own name/handle. -
Delete this
README.mdfile or rename it to something likeTEMPLATE-README.md.
# Build the mod
./gradlew build
# Output will be in build/libs/
# Format: {mod_id}-{minecraft_version}-{loader}-v{mod_version}.jarTip
Commits pushed to GitHub are automatically built by GitHub Actions and uploaded as artifacts.
# Run client
./gradlew runClient
# Run server
./gradlew setupServer # Agree to EULA and generate server.properties
./gradlew runServer
# Run data generation
./gradlew runDataYou can create a release by pushing a tag.
# Create and push a tag for version 1.20.1-forge-v0.1.0
git tag 1.20.1-forge-v0.1.0
git push origin 1.20.1-forge-v0.1.0This template is published under the MIT License. See the LICENSE file for details.
For projects generated from this template, Meatwo310 does not enforce any license. (Open source licenses are recommended!)
Warning
Don't forget to change the license name to your own!
Don't like the template? Feel free to fork and customize it! I'll happily incorporate useful improvements 👀
Issues and pull requests are welcome!
公式の Forge MDK を拡張し、モダンな Mod 開発向けの追加機能を備えたカスタマイズ版 Minecraft Mod Development Kit (MDK) です。
対応バージョン:
- 1.20.1 Forge (デフォルト)
- 26.1 NeoForge
最新版: https://github.com/Meatwo310/custom-mdk/
- 🔄 GitHub Actions による自動ビルド・リリース
- 🧪 セットアップ済み Mixin 環境
- 📛 バージョン・ローダー付き jar 名
- 📚 Parchment マッピング (1.20.1 Forge のみ)
- ⚙️ Kotlin DSL 移行済みのビルドスクリプト
- 📝 EditorConfig による簡易的なコードスタイル統一
- 📦️ JEI など開発用 Mod セットアップ済み
-
Use this templateボタンをクリックして、新しいリポジトリを作成します。- 1.20.1 Forge 以外のバージョンを使用する場合は、
Include all branchesを有効化してください。作成後、必要に応じてデフォルトブランチを変更してください。
- 1.20.1 Forge 以外のバージョンを使用する場合は、
-
リポジトリをローカルへクローンします。
-
build.gradle.ktsのModConfigオブジェクトを編集します。定数名 説明 例 MOD_ID内部的な名前。アイテムやブロックの ID 等にも使用される。 examplemodMOD_NAME表示名。 JEI/Jade の Mod 名表示や、 Mod メニュー等に使用される。 Example ModMOD_LICENSEライセンス。 MIT などオープンソースライセンスを推奨。 MITMOD_VERSIONバージョン。セマンティックバージョニングを推奨。 0.1.0MOD_GROUP_IDグループ ID。 io.github.<GitHubユーザー名>.<MOD_ID>を推奨。io.github.meatwo310.examplemodMOD_AUTHORS作者名。コンマ区切りで複数人を指定可能。 Mod メニュー等で表示。 Meatwo310MOD_DESCRIPTION説明。複数行設定可能。 Mod メニュー等で表示。 An example mod.MOD_DISPLAY_URLホームページ。 Mod メニュー等で表示。 https://github.com/Meatwo310/custom-mdkMOD_ISSUE_TRACKER_URL不具合報告用 URL。 Mod メニュー等で表示。 https://github.com/Meatwo310/custom-mdk/issuesMOD_CREDITSクレジット欄。 Mod メニュー等で表示。 Special thanks to the original MDK! -
src/main/java/内のパッケージ構造をMOD_GROUP_IDに合わせて移動します。 -
ExampleMod.javaを、MOD_IDに合わせてリネームします。 -
examplemod.mixins.jsonのファイル名・中身を、MOD_IDに合わせてリネーム・編集します。 -
LICENSEファイルを好きなライセンスに差し替えます。 MIT ライセンスを使用する場合は、LICENSEファイルの名義Meatwo310を、ご自身の名前/ハンドルネーム等へ変更します。 -
この
README.mdファイルを削除するか、TEMPLATE-README.md等へリネームしてください。
# Mod をビルド
./gradlew build
# 成果物は build/libs/ に生成されます
# フォーマット: {mod_id}-{minecraft_version}-{mod_loader}-v{mod_version}.jarTip
GitHub にプッシュされたコミットは、自動的に GitHub Actions でビルドされ、アーティファクトとしてアップロードされます。
# クライアントを実行
./gradlew runClient
# サーバーを実行
./gradlew setupServer # EULA に同意し、 server.properties を生成
./gradlew runServer
# Data Genを実行
./gradlew runDataタグをプッシュすると、リリースを作成できます。
# バージョン 1.20.1-forge-v0.1.0 用のタグを作成し、プッシュ
git tag 1.20.1-forge-v0.1.0
git push origin 1.20.1-forge-v0.1.0このテンプレートは MIT ライセンスの下に公開されています。詳細は LICENSE ファイルを参照してください。
テンプレートから生成されたプロジェクトについて、 Meatwo310 はライセンスを強制しません。 (オープンソースライセンスを推奨します!)
Warning
ライセンスの名義をご自身の名前へ変更することを忘れないでください!
テンプレートが気に入りませんか? ぜひフォークし、カスタムしてお使いください! 有用な改善点は勝手に取り込みます 👀
イシュー・プルリクエストも歓迎です!