Installation
Linux

Manual Installation of PowerNukkitX for Linux

The following steps are for Debian, but they can be adapted for other Linux distributions.

💡
You will need wget or curl and unzip to download and extract the server file. If you don't have them, you can install them with apt install wget unzip.

Create a Folder for PowerNukkitX

Create a folder for PowerNukkitX, for example, server:

mkdir server

Navigate to the Folder

Navigate to the folder you created:

cd server

Download the PowerNukkitX server

Download the powernukkitx-shaded.jar file with the following command:

wget https://github.com/PowerNukkitX/PowerNukkitX/releases/download/snapshot/powernukkitx-shaded.jar

Start the Server

To start the PNX server make sure you have Java21 installed, if not please install it (requirements):

Start Commands

The most recommended flags to start the PNX are below, you can just run the command as is:

java -Dfile.encoding=UTF-8 \
    -Djansi.passthrough=true \
    -Dterminal.ansi=true \
    -XX:+UseZGC \
    -XX:+ZGenerational \
    -XX:+UseStringDeduplication \
    --add-opens java.base/java.lang=ALL-UNNAMED \
    --add-opens java.base/java.io=ALL-UNNAMED \
    --add-opens java.base/java.net=ALL-UNNAMED \
    -jar powernukkitx-shaded.jar

After starting, your folder structure should look like this:

    • pnx.yml
    • powernukkitx-shaded.jar
  • Your Server is Now Online

    You can now connect to your server using your server's IP address and the default port 19132.