ENV:📦 VScodeを用いたMinecraft v26.1.2 NeoForge 開発環境構築
Minecraft v26.1.2 NeoForge
ENV:📦 VScodeを用いたMinecraft v26.1.2 NeoForge 開発環境構築
ENV-neoforge_mdk_and_java25_with_vscode
Windows環境下で,VScodeを用いた v26.1.2 のマインクラフトMOD開発環境を構築します.
Step by Step
Scoop のインストール
Scoop1 と呼ばれるWindowsのコマンドラインインストーラを導入します.
1
2
3
4
5
6
7
8
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS C:\> Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Initializing...
Downloading...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
VScodeの拡張機能の導入
Extention Pack for Java2 をインストールしておきます.
MDKの導入
NeoForge Mod Generator3 を用いて,MDKとひな型をセットアップします.
このとき,Gradle Plugin は,ModDevGradle にしておきます.
動作チェック
生成されたzipファイルを任意の階層で解凍し,VScodeで開きます.
1
2
3
4
5
6
7
PS C:\> .\gradlew build
#...
BUILD SUCCESSFUL in 2m 8s
5 actionable tasks: 5 executed
Configuration cache entry stored.
PS C:\> .\gradlew runClient
無事にスタート画面が表示され,設定したMODのステータスが Loaded になっていれば環境構築の完了です.
References
This post is licensed under CC BY 4.0 by the author.