Skip to content

[PowerNukkitX] Issue #573

Description

@Nightrealm0

Egg: PowerNukkitX
File: minecraft/bedrock/PowerNukkitX/egg-powernukkitx.json

Issue Description:

I noticed the powernukkitx egg is invalid
i was hoping to help fix it
and make it work by default
please verify all what i changed
i noticed when you setup a powernukkit server it errors out due to the script being out of date and a file no longer existing
specifically this file
wget https://github.com/PowerNukkitX/PNX-CLI/releases/download/0.1.6/PNX-CLI-Linux-x86.zip

i'm not no developer so please validate my work i just love the panel and want to help support and keep it running

Was hoping to help someone fix the egg on Pterodactyl panel
or push a update out to make it work

File is invalid

Changed
Docker Images

this
ghcr.io/ptero-eggs/yolks:debian
to
ghcr.io/pterodactyl/yolks:java_21

Changed startup from
this
./pnx start {{AUTOREBOOT}}
to
java -jar --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED \powernukkitx.jar

changed
script
make this the install script

#!/bin/bash

apt-get update
apt-get install -y curl wget unzip jq file

mkdir -p /mnt/server
cd /mnt/server || exit 1

echo "Downloading PowerNukkitX..."

# Get latest release JAR automatically
URL=$(curl -s https://api.github.com/repos/PowerNukkitX/PowerNukkitX/releases/latest \
| grep browser_download_url \
| grep -i jar \
| cut -d '"' -f 4)

if [ -z "$URL" ]; then
  echo "Failed to fetch PowerNukkitX jar URL"
  exit 1
fi

wget -O powernukkitx.jar "$URL"

echo "Creating folders..."
mkdir -p plugins worlds logs

echo "Done installing PowerNukkitX"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions