Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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.

---
# ⚠️ WARNING — DO NOT DOWNLOAD OR RUN THIS DATAPACK

**Do not download, install, or run this datapack unless you fully understand its contents and trust its source.**

This repository contains experimental development and testing components. It is **not intended for general use** and may be incomplete, unstable, or unsafe for production environments.

If you are looking for a normal Minecraft datapack, **this is not one**. Use it only for development or security research in an isolated environment after reviewing the source code.

**If you are unsure what this project does, do not use it.**

---

## Layout

```text
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ tasks.register('validateDatapack', Exec) {
group = 'verification'
description = 'Validates RTWrapper datapack JSON, function layout, and generated command wrappers.'
commandLine 'python3', 'scripts/validate_datapack.py'
dependsOn tasks.named('convertNormalDatapack')
}

tasks.register('convertNormalDatapack', Exec) {
group = 'build'
description = 'It deletes the GameTest files and the rtw.test score, and generates a normal user datapack.'
commandLine 'python3', 'scripts/convert_normal_datapack.py'
}

tasks.named('check') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Scoreboards are intentionally stable fake-player state; existing values are not overwritten.
scoreboard objectives add rtw.config dummy
scoreboard objectives add rtw.status dummy
scoreboard objectives add rtw.test dummy

execute unless score #debug rtw.config matches 0.. run scoreboard players set #debug rtw.config 0
execute unless score #silent rtw.config matches 0.. run scoreboard players set #silent rtw.config 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"color": "dark_gray"
}
],
"background": "minecraft:textures/block/deepslate_tiles.png",
"frame": "task",
"show_toast": false,
"announce_to_chat": false,
Expand Down
4 changes: 4 additions & 0 deletions scripts/convert_normal_datapack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os

print("Converting...")
convertToNormalDatapack = os.system("bash scripts/onvert_normal_datapack.sh")
5 changes: 5 additions & 0 deletions scripts/onvert_normal_datapack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd datapack/RTWrapper-Datapack/data
sudo rm -rf runtoolkit/function
sudo rm -rf rtwrapper/function/tests
sudo sed -i '/scoreboard objectives add rtw.test dummy/d' rtwrapper/function/core/load.mcfunction
exit 0