Skip to content

lucascompython/terracraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft <-> Terraria chat bridge

On the Minecraft side of things, this it's PaperMC Plugin.
On the Terraria side of things, this it's TShock plugin.
Works using a gRPC bi-directional stream.

Demo

demo.mp4

Security

For security reasons, the Minecraft server and the Terraria server must share a token of 32 bytes.
This token will be used to encrypt and decrypt the messages sent between the games.
This token can be generated with the gen_token.ps1 or gen_token.sh scripts.

./gen_token.ps1
# OR
./gen_token.sh

Malicious users that don't have the token will not be able to send messages.

How to run

Minecraft

  • Run the server once to generate the plugins folder.
  • Drop the TerraCraft.jar into the plugins folder.
  • Start once again the server to generate the plugins/TerraCraft folder.
  • Copy the token to the plugins/TerraCraft/config.yml file.

Terraria

  • Drop all the .dll files into the ServerPlugins folder.
  • Start the server to generate the <tshock_install_dir>/tshock/terracraft_config.json file.
  • Copy the token to the terracraft_config.json file.

How to build

Minecraft

cd minecraft/TerraCraft
./gradlew proguard

Terraria

cd terraria/TerraCraft
./build.ps1
# OR
./build.sh