Back to mods
AstralBot project artwork

Modrinth · Minecraft mod

AstralBot

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which AstralBot release matches 1.21?

Updated 1 year ago
Best match for your filters 1.5.2-mc1.21-fabric
Game version 1.21
Loader Fabric

AstralBot 1.5.2-mc1.21-fabric targets 1.21 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 4 required mods have matching files.

Where it goes

Is AstralBot required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does AstralBot 1.5.2-mc1.21-fabric need?

1.5.2-mc1.21-fabric on 1.21. Every mod below is checked against that same setup.

All 4 required mods have matching files

Install Fabric API, Fabric Language Kotlin, Forge Config API Port, Fabric API first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

3 listed on this file 2 pulled in by those mods
Fabric API Needed by AstralBot 1.5.2-mc1.21-fabric
required
Matching file found Matched file: [1.21] Fabric API 0.102.0+1.21
Fabric Language Kotlin Needed by AstralBot 1.5.2-mc1.21-fabric
required
Matching file found Matched file: 1.14.4+kotlin.2.5.0
Forge Config API Port Needed by AstralBot 1.5.2-mc1.21-fabric
required
Matching file found Matched file: [FABRIC] [1.21] ForgeConfigAPIPort-v21.0.8
Fabric API Needed by Forge Config API Port
pulled in
Matching file found Matched file: [1.21] Fabric API 0.102.0+1.21

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add AstralBot without breaking your instance.

Built for AstralBot 1.5.2-mc1.21-fabric on 1.21. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.5.2-mc1.21-fabric. It targets 1.21 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Fabric Language Kotlin, Forge Config API Port, Fabric API first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.5.2-mc1.21-fabric. It opens that exact file at the source.

About this project

What does AstralBot add?

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.

Project description from Modrinth.

Pick your setup

AstralBot by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

12 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

AstralBot versions and loaders

2 of 80 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.