1
0
Fork 0
mirror of https://github.com/TheClashFruit/Lattice.git synced 2026-02-09 11:16:16 +01:00
A simple (for now) Discord chat bridge for Hytale.
Find a file
2026-02-01 11:20:05 +01:00
gradle/wrapper feat: setup project 2026-01-14 10:28:02 +01:00
src/main feat: messages appear as the user if the accounts are linked 2026-01-19 19:37:09 +01:00
.gitignore feat: setup project 2026-01-14 10:28:02 +01:00
build.gradle chore: switch to Hytale maven 2026-01-22 20:38:29 +01:00
gradle.properties chore: gradle cleanup stuff 2026-01-15 15:00:52 +01:00
gradlew feat: setup project 2026-01-14 10:28:02 +01:00
gradlew.bat feat: setup project 2026-01-14 10:28:02 +01:00
LICENSE feat: setup project 2026-01-14 10:28:02 +01:00
README.md docs: add note of move 2026-02-01 11:20:05 +01:00
settings.gradle chore: new name (it's better ig) 2026-01-14 13:34:45 +01:00

Important

The Lattice repo has moved to https://tangled.org/theclashfruit.me/lattice.

Lattice

A simple (for now) Discord chat bridge for Hytale.

Setup

1. Install The Mod

Put the jar file into the mods folder.

Then run the server with mod installed to generate the config file, it should generate it at mods/TheClashFruit_Lattice/Lattice.json.

The config file should look something like this:

{
  "Enabled": false,
  "Discord": {
    "Token": "your_token_here",
    "ChannelId": "",
    "WebhookId": "",
    "Messages": {
      "Join": "%s joined %s.",
      "Leave": "%s left."
    }
  },
  "ChatPrefix": "[Discord]",
  "ChatPrefixColour": "#5865F2"
}

2. Create a Discord Bot

Create your bot on the discord developer portal and also enable Message Content Intent for your bot then paste the token into the config where it says your_token_here.

Don't forget to invite your bot, here is a template for the invite link: https://discord.com/oauth2/authorize?client_id={client_id}&permissions=536938496&scope=bot+applications.commands; Just replace {client_id} with your bot's client id.

3. Create a Channel & Webhook

Create your channel and copy its id into the channel id in the config. Then go into the settings for the channel and create a webhook and copy it's url, which should look something like https://discord.com/api/webhooks/1460971511903948851/ydte1zUhNKBVzvpUlsAyGDrdAb83HvYRIl_KiDYhgKJ1x4kgMNCfMfAl3TGklrsegGmo1, copy it's numerical part, here it's 1460971511903948851 and paste it into the config for the WebhookId.

4. Restart The Server

Set Enabled to true and restart the server and chat with people on Discord :3

(I suck at writing docs)


  1. No that webhook is deleted and I also mangled the token a bit :3 ↩︎