HomeJavaModsAstralBot
AstralBot
AstralBot — screenshot 1AstralBot — screenshot 2AstralBot — screenshot 3AstralBot — screenshot 4

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.

Dependencies

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

Implementation

Configuration

The following things will be configurable:

Status

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more