RTWrapper

RTWrapper

Wrapper for Runtoolkit datapacks.

by
8 Downloads
datapackfabriclibrarymanagementtechnology
Rent Server with this Mod

About this Mod

RTWrapper

RTWrapper is a Fabric mod + standalone datapack for Java Edition 26.2. The mod embeds the same datapack data tree, while datapack/RTWrapper-Datapack/ can be zipped and installed separately.


Source: https://github.com/runtoolkit/RTWrapper/tree/main

Layout

src/main/                         Fabric mod skeleton, Mojang official names
datapack/RTWrapper-Datapack/      Standalone datapack root
datapack/commands-26.2.json       Command wrapper manifest + command parameter names
docs/API.md                       API/storage protocol
scripts/validate_datapack.py      Datapack/static wrapper validator
src/gametest/                     Fabric server GameTests

Datapack API quick start

Generated command wrappers use meaningful command-specific parameter names. There is no generated catch-all or generic numeric parameter API.

Provide the named parameters in the order listed for that command in datapack/commands-26.2.json. The dispatcher calls the exact <command>_<N> variant and does not append unused params.

# /tp @s 0 80 0 via queued handler
data modify storage rtwrapper:api request set value {cmd:"tp",params:{target:"@s",x:"0",y:"80",z:"0"}}
function rtwrapper:api/run

# /give @s minecraft:stone 1 via direct API
data modify storage rtwrapper:api params set value {target:"@s",item:"minecraft:stone",count:"1"}
function rtwrapper:api/commands/give

# /scoreboard players set #smoke rtw.test 1
data modify storage rtwrapper:api request set value {cmd:"scoreboard",params:{category:"players",action:"set",subject:"#smoke",objective:"rtw.test",value:"1"}}
function rtwrapper:api/run

Named convenience wrapper example:

# $give $(target) $(item)$(components) $(count)
data modify storage rtwrapper:api params set value {target:"@s",item:"minecraft:stone",components:"",count:"1"}
function rtwrapper:api/commands/give_item

Autotick usage:

function rtwrapper:api/autotick/on

data modify storage rtwrapper:api request set value {cmd:"say",params:{message:"queued hello"}}
function rtwrapper:api/enqueue

Autotick processes one queued action per tick. Use function rtwrapper:api/run only for immediate full queue drain.

See docs/API.md for the full protocol and debug/silent controls.

Loaded-pack discovery

RTWrapper also installs the shared runtoolkit namespace:

data/runtoolkit/function/...
data/runtoolkit/advancement/root.json
data/runtoolkit/advancement/packs/rtwrapper.json

After /reload, players get a visible Advancements > Runtoolkit tab via the minecraft:tick advancement trigger. This is intentionally not revoked, so it can be used as a stable visual list of loaded Runtoolkit datapacks without reading a long /datapack list output.

Quick check:

function runtoolkit:api/status

Build

Minecraft 26.2 targets Java 25. Use a JDK 25 toolchain and Gradle 9.5+. For 26.1+ Fabric, the build uses net.fabricmc.fabric-loom with Mojang official names directly, so there is intentionally no mappings loom.officialMojangMappings() dependency.

python3 scripts/validate_datapack.py
./gradlew build

Build outputs:

  • Fabric mod jar: build/libs/rtwrapper-<version>.jar
  • Standalone datapack zip: build/libs/RTWrapper-Datapack-<version>.zip

The build task also runs server GameTests through Fabric API's GameTest integration.

Updating command wrappers for 26.3+

  1. Update COMMANDS / DEBUG_COMMANDS and COMMAND_PARAMS in scripts/generate_wrappers.py.
  2. Update minecraft_version, fabric_version, and possibly PACK_FORMAT.
  3. Run:
python3 scripts/generate_wrappers.py
python3 scripts/validate_datapack.py
./gradlew build

Safety

RTWrapper intentionally exposes privileged macro-command execution for trusted datapacks/admins. Do not copy untrusted player-controlled text into rtwrapper:api request or rtwrapper:api params.

Available Versions

RTWrapper 0.1.1beta
MC 26.2fabric
July 1, 2026
RTWrapper 0.1.1beta
MC 26.2datapack
July 1, 2026

How to Install RTWrapper on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (26.2).

3

Install Mod

Open the mod browser in the dashboard and search for "RTWrapper". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabric

Minecraft Versions

26.2

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

RTWrapper server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2). You can switch loaders with one click in the panel.

Is RTWrapper compatible with datapack and fabric?

RTWrapper officially supports datapack, fabric for Minecraft 26.2. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with RTWrapper – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if RTWrapper consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install RTWrapper with just one click on your server.

Recommended RAM
4 GBfrom €8/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

26.2