π₯ Creating an Egg on Pterodactyl
Eggs are server templates that define how Pterodactyl installs and manages a game or application.
Each Egg belongs to a Nest and contains information such as:
- The Docker image to use
- Configuration variables (e.g., game version, bot token, motd, etc.)
- Installation and launch scripts
1. Access Egg creationβ
- Log in to your admin panel (
https://votre_panel.fr/admin). - In the side menu, click Nests.
- Select the Nest in which you want to create the Egg.
- Click Create New Egg.
2. Fill in the general informationβ
Nameβ
- Name of the Egg (example:
PaperMC,Bot Discord Node.js).
Descriptionβ
- Short description of what the Egg does.
Docker Imageβ
- Docker image used to run the server.
- Example:
ghcr.io/pterodactyl/yolks:java_17for a modern Minecraft server.
Important
Only use official or trusted Docker images to avoid any security risks.
3. Egg Configurationβ
Startup Commandβ
- Command used to start the server.
- Example for a Minecraft server:
java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar server.jar
Variablesβ
- Allow you to customize the Egg without directly modifying the files.
- Examples:
VERSIONβ game versionSERVER_JARFILEβ .jar file usedTOKENβ bot API key
Tip
Use variables to make your Eggs flexible and reusable by your users.
4. Installation scriptβ
Define the script that will be executed when the server is first installed.
Example for downloading PaperMC:
#!/bin/bash
curl -o server.jar https://api.papermc.io/v2/projects/paper/versions/{{VERSION}}/builds/{{BUILD}}/downloads/paper-{{VERSION}}-{{BUILD}}.jar
5. Finalize creationβ
Click Create Egg to save.
note
Your Egg is now available in the chosen Nest and can be used when creating servers.
β Conclusionβ
You now know how to create a custom Egg for Pterodactyl.
This is an essential step in offering new games or applications to your users.