AstralBot

AstralBot

Minecraft Mod doubling as a Discord Bot, initially made for Create: Astral

by
5.1K Downloads
fabricforgeneoforgemanagementsocialutility
Rent Server with this Mod

Screenshots

User Imitation
Default whitelist screen
Chat Synchronization on Discord
FAQs with Markdown
Markdown converted to Minecraft Chat

About this Mod

AstralBot

build workflow
License
Environment

This is a Minecraft mod and Discord Bot in one package. It's intended for the Create: Astral
Modpack's official server, but it's implemented cross-platform to be usable by others too.
The goal is to be easy-to-use and accessible for non-technical server admins,
while allowing true complexity for power users.

Features

These features are the core of what this bot will do. See the Status section
to see how much is already implemented.

  • Discord and Minecraft account linking, optionally requiring this to be whitelisted
  • Discord and Minecraft chat synchronization, optionally via webhook for improved readability
  • FAQ commands using Markdown files without needing to restart the server

Dependencies

This mod has a few dependencies, some of which are not specified directly as they're technically optional:

Implementation

  • JDA library to communicate with the Discord API.
  • Kotlin for the improved development experience over Java
  • JetBrains Exposed to communicate with the Database

Configuration

The following things will be configurable:

  • Required linking to be whitelisted (default: off)

  • Chat synchronization with imitated Discord Users:

    1. No user imitation (The bot will write the messages under its own name)
    2. (If possible) Minecraft user imitation (The Minecraft usernames and heads will be used for messages)
    3. (Only available if requiring linking for whitelist) Discord user imitation (The messages will be written under the linked Discord name)

    Default: Minecraft user imitation (if webhook available is set, otherwise no imitation)

  • Managing FAQs through a command interface (default: off)

  • Database connection. Uses an SQLite database by default

Status

  • Whitelisting
  • FAQ Commands
    • Reading Markdown files
    • Updating suggestions without restart
    • Management/Creation via commands
  • Chat synchronization
    • Minecraft to Discord
    • Discord to Minecraft
    • User imitation on Discord. Either uses Minecraft avatars or Discord avatars

Running

There is no public instance of this bot/mod available. To use it, create a new Application
on the Discord Developer Portal and configure it
to have the three privileged gateway intents: PRESENCE, SERVER MEMBERS and MESSAGE CONTENT.

Copy the bot token and store it somewhere safe (like a Password Manager) and never show it to
anybody else. To make sure the token gets read by the bot, it has to be in either an Environment Variable
DISCORD_TOKEN where the running Minecraft server can access it or in the config file under the key token.
You could for example modify a start.sh script on a Unix-like system to export it or start the shell script with it set directly:

startmc.sh:

export DISCORD_TOKEN=<place token here>

java ... # java command that starts the server

or

DISCORD_TOKEN=<place token here> startmc.sh # Start the script with the env variable set

After starting the server, you can go into the OAuth2 URL builder on the Discord
Developer Portal and generate a URL with the bot and applications.command permissions.
Use the generated URL to have the bot join your server.

To be able to use user imitation, which makes the chat synchronization more readable, the bot will try and create a webhook
in the configured chat synchronization channel. This means it will need to have the permission to manage webhooks. If you
don't want that you can manually create a webhook in the channel where you want the messages synchronized and set it in the
webhook.url option in the config for the mod.

Available Versions

AstralBot 1.5.5 Forge 1.18.2release
MC 1.18.2forge
February 8, 2025
AstralBot 1.5.5 Fabric 1.18.2release
MC 1.18.2fabric
February 8, 2025
AstralBot 1.5.5 Fabric 1.20.1release
MC 1.20.1fabric
February 8, 2025
AstralBot 1.5.5 Forge 1.20.1release
MC 1.20.1forge
February 8, 2025
AstralBot 1.5.5 Forge 1.19.2release
MC 1.19.2forge
February 8, 2025

How to Install AstralBot on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "AstralBot". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.1, 1.21, 1.20.4 (+3 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

AstralBot server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is AstralBot compatible with fabric and forge and neoforge?

AstralBot officially supports fabric, forge, neoforge for Minecraft 1.21.1, 1.21, 1.20.4. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with AstralBot – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if AstralBot consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install AstralBot with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.11.211.20.41.20.11.19.21.18.2