Important
This project is archived and no longer maintained.
External services and dependencies may have changed, so parts of it may no longer work as expected.
preview.mp4
| Tool | Type | Version | Purpose |
|---|---|---|---|
| Required | 2.50+ | Source control | |
| Required | 1.3+ | Runtime package manager |
-
Clone this repository:
git clone https://github.com/mc-addon/mcaddon cd mcaddon -
Install dependencies:
bun i
-
Copy
.envfile and configure secretscp .env.example .env
Tip
Check environment variables section for details on the environment variables.
-
Initialize database schema
bun run db:push
-
Sync static assets
bun run sync-assets
-
Authenticate with Cloudflare
bunx wrangler login
-
Copy
example.wrangler.tomltowrangler.tomland configure it. (For[vars]section, copy-paste the values from.env) -
Deploy
bun run deploy
-
Follow first 5 steps from the production section.
-
Start the development server
bun run dev
| Variable | Type | Description |
|---|---|---|
PUBLIC_DISCORD_URL |
string |
Discord API base URI |
PUBLIC_MCSTATUS_JAVA_API |
string |
Java server status API |
PUBLIC_MCSTATUS_BEDROCK_API |
string |
Bedrock server status API |
DATABASE_URL |
string |
Supabase connection string |
DISCORD_CLIENT_ID |
string |
Discord client ID |
DISCORD_CLIENT_SECRET |
string |
Discord client secret |
DISCORD_BOT_TOKEN |
string |
Discord bot token |
JWT_SECRET |
string |
Secret key for JWT signin |
PUBLIC_TEBEX_TOKEN |
string |
Public Tebex token for API access |
TEBEX_PRIVATE_KEY |
string |
Private key for Tebex API |
-
Host a PostgreSQL database (e.g. Local PostgreSQL, Supabase, etc.).
-
Set connection string in
DATABASE_URLenvironment variable.postgresql://<username>:<password>@<host>:<port>/<database>
Tip
For Supabase, you can find the connection string by clicking the Connect button at the top bar of the Supabase dashboard.

-
Create a new application in the Discord Developer Portal.

-
Get
DISCORD_CLIENT_IDandDISCORD_CLIENT_SECRETfrom theOAuth2tab.
-
In the same tab, add
<your-domain>/auth/callbacktoRedirects. Addhttp://localhost:5173/auth/callbacktoo for development.
-
Invite the bot to your Discord server. It needs to be in the server to fetch its details.
- Generate
JWT_SECRETby running the following command.bun run gen-secret
- Follow commit conventions.
- Keep code style consistent.
- Run formatting and checks before pushing
bun run format && bun run check - See
STYLES.mdfor style guidelines.
The code is licensed under GPL-3.0. Assets are not.
- Minecraft textures & sounds belong to Mojang. Not affiliated with Mojang AB or Microsoft.
- Minecraftia font by Andrew Tyler, licensed CC BY-SA.


