Перейти к содержимому
Mineforgian

CoopTweaks

Sync advancements completion, chat relay for Discord and more.

Загрузки
497
Подписчики
0
Обновлён
15 октября 2024 г.
Лицензия
Apache-2.0

Опубликован 23 сентября 2024 г.

CoopTweaks

Sync advancements, chat relay for Discord and more. Check here for the latest builds.

About

This project is inspired by the CooperativeAdvancements mod, my goal with this is to add on the coop experience I really enjoyed from CooperativeAdvancements by giving more features in just one package.

Some features in this mod come from my other mod, Fred.

Features

  • Bridges a Discord channel to the Minecraft server chat, allowing for chat between the two.
  • Send events like advancements, join/leave, death, from the server to Discord.
  • Sync advancements completion, all players share the same advancement progress.
  • Discord commands to retrieve information about the server.
  • Link items in the chat.

TODO

  • More options to enable/disable certain parts of the mod.
  • Add Discord commands to retrieve general information about the server, TPS, etc.
  • Maybe use a small database library for storage as it might be useful for other ideas.

Configuration

Configuration is located in a folder called cooptweaks, contains the following:

  • saves/: Folder containing the advancements reached by the players, files are named by the world seed.
  • advancements.toml: Configuration for the advancement module.
  • discord.toml: Configuration for Discord related features.

The Discord bot requires the permission to create slash commands and MESSAGE_CONTENT and GUILD_MEMBERS intents.

Client

Keybinds

  • Left Shift + Left Alt: Links the item being hovered by the player.

Commands

  • shrug: Shrugs.
  • flip: Flips the table.
  • unflip: Unflips said table.
  • coords: Sends the player's coordinates in a dimension in chat.

Server

Commands

All commands are prefixed with /cooptweaks.

advancements <subcommand>

  • progress: Shows the advancement progress of the world.

link

Links the item being held by the player in the chat.

Discord Commands

  • /status: Shows information about the server like motd, uptime, address, etc.

Ченджлог

0.4.0Бета1.21.1 · 15 октября 2024 г.

Breaking: More config fields were added to the bot configuration, you will have to copy the new fields to the discord.toml file, you can view them here.

  • Moved some client commands (shrug, flip, unflip, coordinates) from my other mod Fred.
  • New config file for the advancement module.
  • Improved the formatting of the link item chat message.
  • Moving link command to cooptweaks group.
  • Using stonecutter to provide support for multiple Minecraft versions.
0.4.0Бета1.21.1 · 15 октября 2024 г.

Breaking: More config fields were added to the bot configuration, you will have to copy the new fields to the discord.toml file, you can view them here.

  • Moved some client commands (shrug, flip, unflip, coordinates) from my other mod Fred.
  • New config file for the advancement module.
  • Improved the formatting of the link item chat message.
  • Moving link command to cooptweaks group.
  • Using stonecutter to provide support for multiple Minecraft versions.
0.3.0Бета1.21.1 · 1 октября 2024 г.

Added keybind to the Link Item feature, if you also have the mod installed in the client you can now hover your mouse over an item in your inventory and press Left Shift + Left Alt to link the item in chat.

0.2.0Бета1.21.1 · 28 сентября 2024 г.

Breaking: the advancement save file now saves only the advancement Identifier, you can just remove the , and what is after it in old save files.

Moved the grantCriterion logic to the PLAYER_ADVANCEMENT event from architectury.

The Discord bot will now cycle presence when the server saves.

Added Uptime to the /status slash command which had a makeover.

Added new Link server command, this will link the item the player is currently holding when using the /link command.

0.1.1Бета1.21.1 · 26 сентября 2024 г.

Reimplemented ON_RESPAWN event, fixes player having wrong dimension on Discord when dying.

Added checks for empty config fields.

Комментарии

Загружаем…