Esta guía explica cómo configurar y ejecutar el bot en diferentes entornos.
- Java JDK 17 (mínimo requerido).
- Archivos compilados del bot (
server.jar). - Carpeta
assetscon los recursos del juego. - Archivo
.envcon el token.
- Sube los archivos del bot al servidor.
- Asegúrate de tener Java 17 instalado:
java -version. - Si usas Linux/Mac, da permisos a Gradle:
chmod +x gradlew.
Crea un archivo .env junto al jar:
DISCORD_TOKEN=tu_token
Ejecuta el script download_assets.ps1 (Windows) o descarga manualmente sprites.aatls, sprites.png y block_colors.png en assets/sprites.
Modo Desarrollo: ./gradlew run (Linux) o run.bat (Windows).
Modo Producción:
- Compila:
./gradlew shadowJar - Ejecuta:
java -jar build/libs/server.jar
Muchos hostings de juegos usan Pterodactyl. Sigue estos pasos:
- Nest/Egg: Selecciona "Java" o "Generic Java".
- Docker Image: Asegúrate de elegir Java 17 (o 18+). Si usas Java 8 o 11, el bot no funcionará.
- Startup Command:
java -jar server.jar
- Compila el bot en tu PC primero (
gradlew shadowJar) para generar el archivoserver.jar(se encuentra enbuild/libs/). - Sube el archivo
server.jara la raíz del servidor en el panel. - Sube la carpeta
assetscompleta (conspritesdentro) a la raíz del servidor.- Nota: Es más fácil subir un ZIP con la carpeta
assetsy descomprimirlo en el panel.
- Nota: Es más fácil subir un ZIP con la carpeta
En el "File Manager", crea un archivo nuevo llamado .env y pega tu token:
DISCORD_TOKEN=tu_token_real
Ve a la consola y presiona Start.
Una vez iniciado el bot intenta ejecutar /schem o @(botname). Luego intenta adjunta un archivo. msch o un link base64, el resultado deberia verse tal que asi:
This guide explains how to configure and run the bot in different environments.
- Java JDK 17 (minimum required).
- Compiled bot files (
server.jar). assetsfolder with game resources..envfile with the token.
- Upload the bot files to the server.
- Ensure Java 17 is installed:
java -version. - If using Linux/Mac, grant permissions to Gradle:
chmod +x gradlew.
Create a .env file next to the jar:
DISCORD_TOKEN=your_token
Run the download_assets.ps1 script (Windows) or manually download sprites.aatls, sprites.png, and block_colors.png into assets/sprites.
Development Mode: ./gradlew run (Linux) or run.bat (Windows).
Production Mode:
- Build:
./gradlew shadowJar - Run:
java -jar build/libs/server.jar
Many game hostings use Pterodactyl. Follow these steps:
- Nest/Egg: Select "Java" or "Generic Java".
- Docker Image: Make sure to choose Java 17 (or 18+). If you use Java 8 or 11, the bot will not work.
- Startup Command:
java -jar server.jar
- Build the bot on your PC first (
gradlew shadowJar) to generate theserver.jarfile (found inbuild/libs/). - Upload the
server.jarfile to the root of the server in the panel. - Upload the complete
assetsfolder (containingsprites) to the root of the server.- Note: It is easier to upload a ZIP with the
assetsfolder and unzip it in the panel.
- Note: It is easier to upload a ZIP with the
In the "File Manager", create a new file named .env and paste your token:
DISCORD_TOKEN=your_real_token
Go to the console and press Start.
Once the bot has started, it tries to execute /schem or @(botname). Then it tries to attach an msch file or a base64 link; the result should look something like this:

