Sign up Log in
n/mc · 15d ago · 119 views
u/user94Filthy richDiamond
n/mcu/user94 Filthy rich · 15d ago

Tired of writing Minecraft mods/plugins in Java? Check this out

TranForLanguage (TFL)

Free Minecraft plugin development from programming language and server platform constraints.

Project: https://github.com/hekuo5310/TranForLanguage

TranForLanguage (TFL for short) is an open-source, multilingual mod/plugin development and runtime framework for Minecraft servers.

Traditional Minecraft mod/plugin development usually relies on Java or other JVM languages, and different server platforms have different APIs and compatibility quirks.

TFL aims to break those limits, letting developers write Minecraft plugins in languages they already know while minimizing the cost of moving between server platforms.

TFL currently supports C, C++, Python, Rust, JavaScript, Go, Ruby, PHP, and Java—nine languages in total—and provides a unified runtime protocol so TFL plugins written in different languages can coexist, communicate, and call each other.

On top of that, TFL plugins can interact with the Minecraft server through interfaces provided by TFL and work together with other TFL plugins.

What are the advantages of TFL?

1. One plugin, multiple server platforms

Write once, run on multiple servers that support TFL.

TFL provides adapter layers for different Minecraft servers, unifying how plugins and servers interact as much as possible.

Currently covered server platforms include:

  • Spigot / Paper

  • Fabric

  • Forge

  • NeoForge

Developers don't need to completely rewrite the same TFL plugin for every platform—most business logic can be reused.

The exact available features depend on the platform adapter, Minecraft version, and API support.

2. Use a programming language you're familiar with

Who says Minecraft plugins can only be written in Java?

Whether you're a Python developer, a JavaScript developer, or you prefer C++, Rust, or Go, you can use TFL for Minecraft server development.

You don't have to learn an entirely unfamiliar programming language from scratch just to make a Minecraft plugin.

TFL provides built-in SDKs for supported languages to help developers handle game events, send messages, run commands, and communicate with other plugins.

You can choose the tools that suit you best instead of being locked into a single tech stack.

3. Hot reload without restarting the server

Update plugins without interrupting players.

Traditional mods, and some plugins, require a server restart after updates—wasting time and potentially affecting online players.

TFL supports doing the following while the server is running:

  • Install new TFL plugins

  • Reload already installed TFL plugins

  • Stop or unload a specific TFL plugin

  • Start a specific TFL plugin individually

Admins can use TFL's management commands to do these things without restarting the entire Minecraft server just to manage TFL plugins.

Note that reloading restarts the corresponding plugin process, so any in-process state that hasn't been persisted won't automatically carry over.

4. Cross-language plugin communication

A plugin written in Python can directly call a plugin written in Go.

TFL doesn't just support running multiple languages—it also provides a unified inter-plugin communication mechanism.

For example:

  • Write the economy system in Go

  • Write the shop system in Python

  • Write the player welcome plugin in JavaScript

  • Write game rule logic in Rust

These plugins can call each other through a unified protocol without developers having to build complex cross-language communication services themselves.

TFL supports method calls, return values, one-way notifications, and message publishing, so plugins written in different languages can work together.

5. Plugins run independently without interfering with each other

Each TFL plugin can run in its own separate process.

This means:

  • Plugins in different languages can run at the same time

  • If one plugin fails to compile, it won't directly prevent other plugins from starting

  • You can check the runtime status of each plugin individually

  • You can stop, update, or reload a plugin individually

  • Each plugin can maintain its own code, config, and runtime logs

Compared with putting all logic into a single program, this architecture improves plugin independence and maintainability.

That said, separate processes are not a security sandbox—TFL plugins still need to be reviewed and trusted by server admins.

6. A unified development experience

Through the unified protocol and language SDKs, TFL wraps common Minecraft server operations into relatively consistent interfaces.

Developers can use the SDK for their language to handle game events like player join, send chat messages, run server commands, and call functionality provided by other TFL plugins.

Syntax differs between languages, but the core development approach stays the same.

You implement the features; TFL connects to Minecraft.

7. Lower development and maintenance costs

For developers who need to maintain plugins long-term, cross-platform support and hot reload can eliminate a lot of repetitive work.

You can develop features in a language environment you're familiar with and update/debug them through TFL's plugin management capabilities, without rebuilding, installing, and restarting the whole server every time.

For development teams working with multiple server platforms, the unified development interface also helps share code and reduces the cost of maintaining multiple sets of plugins.

8. Open source, free, and extensible

TFL is an open-source project under the Apache License 2.0.

Developers can view the source code, study how it works, contribute improvements, and explore more extensions based on its protocol and SDK.

TFL doesn't want to be a closed plugin runtime environment—it wants to build an open, multilingual, cross-platform Minecraft plugin development ecosystem.

Who is TFL for?

For Minecraft server owners:

You can manage TFL plugins without restarting the server and run plugins written in different languages on the same server.

For plugin developers:

You can develop Minecraft server features in a language you're good at and reduce your dependence on a specific language and server API.

For development teams:

Members with different tech stacks can each handle different plugins and collaborate through TFL's communication mechanisms.

For people learning programming:

You can try writing Minecraft plugins in a language you're familiar with and learn about event handling, process communication, and program development in a real game environment.

Our goal

We want Minecraft plugin development to no longer be limited by programming language, runtime platform, or tedious deployment processes.

Let developers choose their language freely, let plugins cross platforms, and make server management simpler.

That's TranForLanguage.


GitHub: https://github.com/hekuo5310/TranForLanguage

License: Apache License 2.0

Translated by AI from 简体中文

1
0
Log into join the discussion.

0 replies

Sort order

No replies yet. Be the first to say something.