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.mp4
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.
- Run the server once to generate the
plugins
folder. - Drop the
TerraCraft.jar
into theplugins
folder. - Start once again the server to generate the
plugins/TerraCraft
folder. - Copy the token to the
plugins/TerraCraft/config.yml
file.
- 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.
cd minecraft/TerraCraft
./gradlew proguard
cd terraria/TerraCraft
./build.ps1
# OR
./build.sh