Install your IntelliJ IDEA for Minecraft Plugin Coding, and Community codes for free.
You can start your new project, details as below:
- Name: Your project name, here is temp.
- Location: Your project address, avoid to set in C-Disk.
- Groups: Choose Plugin.
- Templates: Choose Spigot.
- Build System: Choose Maven.
- Language: Choose Java.
- Minecraft Version: The version your plugin running on, here is 1.21.3.
- ...
- JDK: Choose Java 21.
Choose one directory, here locates in root directory which names run.
Download the server core from Spigot Core Download, remember to choose a correct one.
Download again for Java 21.
Create a .txt file and input codes:
:start
cd /d "D:\Material\2026\2026MinecraftPlugin\SkyBlock\run"
"C:\Program Files\Eclipse Adoptium\jdk-21.0.10.7-hotspot\bin\java" -jar spigot
1.21.3.jar nogui
pause
goto start
Rename this file start.bat, and click it to start build server. You will be stopped the first time,
don't worry, go to eula.txt and turn eula=true, click again and it will create other files.
Go to server.properties, to alter some command, needed:
gamemode=creative
server-ip=127.0.0.1
server-port=25565
motd=A Debug Server # Server Description
Once launched server, enter MineCraft for multiplayer mode with IP : 127.0.0.1:25565.
In IDEA project, go to File->Project Structure->Project Settings->modules, and exclude the server
directory (here is run).
Build project through the right bar Maven->(Your Project)->Life Cycle->package, and it will
generate a target directory automatically, where exists a XX.jar file and an original-XX.jar.
Copy the XX.jar file to run/plugins .
Go to the Edit Configurations(under the current file), add a jar application, with factors as this:
- Name: Here is Spigot-1.21.3
- Allow multiple instances.
- Store as project file.
- Path to JAR: The spigot server core file, here is
./SkyBlock/run/spigot-1.21.3.jar. - VM Options: (none)
- Program argument: Input nogui.
- Working directory: The run directory, path is
./SkyBlock/run
then go to debug you will see:
Hello,spigot!