pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.78k stars 2.32k forks source link

[Egg Request]: Better Minecraft (Forge) #2232

Closed m70b1jr closed 1 year ago

m70b1jr commented 1 year ago

Does this expand an already existing service

Yes

Link to a game or software

minecraft forge

Links for the download

https://www.curseforge.com/minecraft/modpacks/better-mc-modpack/files/4422355

Links for the install docs

https://youtu.be/uS2U5ZKspDA

gOOvER commented 1 year ago

a youtube video is not an installguide.

m70b1jr commented 1 year ago

a youtube video is not an installguide.

There really isn't an "install guide" per say, the server files should be packaged up like a standard minecraft server, it has the run.sh file in it and everything

gOOvER commented 1 year ago

i think, this ticket will be closed, becasue you can easily install it on your own and no egg is needed

m70b1jr commented 1 year ago

i think, this ticket will be closed, becasue you can easily install it on your own and no egg is needed

I've unfortunately havent been able to install it, the docker freaks out when I replaced the stock forge files with the betterMC files

QuintenQVD0 commented 1 year ago

i think, this ticket will be closed, becasue you can easily install it on your own and no egg is needed

I've unfortunately havent been able to install it, the docker freaks out when I replaced the stock forge files with the betterMC files

THis egg uses a 3rd party script that works with many modpacks and many platforms like curseforge, FTB and technique. but we don't allow that but it does work The generic cruseforge egg does not work with all modpacks. I made a simple version here for you. It wont be merged but it does work but can not update itself on reinstall

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
    "meta": {
        "version": "PTDL_v2",
        "update_url": null
    },
    "exported_at": "2023-04-23T19:14:23+02:00",
    "name": "Forge: Better MC [FORGE] - BMC1",
    "author": "josdekurk@gmail.com",
    "description": "https:\/\/www.curseforge.com\/minecraft\/modpacks\/crazy-craft-updated",
    "features": [
        "eula",
        "java_version",
        "pid_limit"
    ],
    "docker_images": {
        "ghcr.io\/parkervcp\/yolks:java_11": "ghcr.io\/parkervcp\/yolks:java_11"
    },
    "file_denylist": [],
    "startup": "java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -Dfml.queryResult=confirm -jar server.jar",
    "config": {
        "files": "{\r\n    \"server.properties\": {\r\n        \"parser\": \"properties\",\r\n        \"find\": {\r\n            \"server-ip\": \"0.0.0.0\",\r\n            \"server-port\": \"{{server.build.default.port}}\",\r\n            \"query.port\": \"{{server.build.default.port}}\"\r\n        }\r\n    }\r\n}",
        "startup": "{\r\n    \"done\": \")! For help, type \"\r\n}",
        "logs": "{}",
        "stop": "stop"
    },
    "scripts": {
        "installation": {
            "script": "#!\/bin\/bash\r\n\r\napt update\r\napt -y install curl python3 python3-pip git\r\n\r\nmkdir -p \/mnt\/server\/script\r\ncd \/mnt\/server\/script\r\n\r\ngit clone https:\/\/github.com\/astrooom\/Minecraft-Serverpack-Installer .\r\n\r\npip3 install -r requirements.txt\r\n\r\nexport HOME=\/mnt\/server\r\n\r\nFILE=\/mnt\/server\/server.jar\r\nif [ -f \"$FILE\" ]; then\r\n    echo \"Update\"\r\n    cd \/mnt\/server\r\n    mkdir -p \/mnt\/server\/script\/modpack_folder\r\n    mv $(ls --ignore=modpack_folder .) \/mnt\/server\/script\/modpack_folder\r\n    cd \/mnt\/server\/script\r\n    python3 run.py -provider curse -modpack-id ${MODPACK_ID} --clean-scripts --pterodactyl --update\r\n    rm \/mnt\/server\/script\/modpack_folder\/eula.txt\r\n    mv modpack_folder\/* \/mnt\/server\r\n    cd \/mnt\/server\r\n    rm -rf script\/\r\nelse \r\n    echo \"Fresh\"\r\n    echo \"python3 run.py -provider curse  -modpack-id ${MODPACK_ID} --clean-scripts --pterodactyl\"\r\n    python3 run.py -provider curse -modpack-id ${MODPACK_ID} --clean-scripts --pterodactyl\r\n    rm \/mnt\/server\/script\/modpack_folder\/eula.txt\r\n    mv modpack_folder\/* \/mnt\/server\r\n    cd \/mnt\/server\r\n    rm -rf script\/\r\nfi\r\n\r\ncd \/mnt\/server\r\n[ ! -f \/mnt\/server\/server.properties ] && curl -sSL -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties\r\n\r\necho \"done\"",
            "container": "eclipse-temurin:11-jdk-focal",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "Modpack id",
            "description": "",
            "env_variable": "MODPACK_ID",
            "default_value": "429793",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string",
            "field_type": "text"
        }
    ]
}