diff --git a/README.md b/README.md index 1514415..4ca9fe2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build.gradle b/build.gradle index ec60bac..c3322a4 100644 --- a/build.gradle +++ b/build.gradle @@ -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') { diff --git a/datapack/RTWrapper-Datapack/data/rtwrapper/function/core/load.mcfunction b/datapack/RTWrapper-Datapack/data/rtwrapper/function/core/load.mcfunction index 7d8ca81..ecb6bad 100644 --- a/datapack/RTWrapper-Datapack/data/rtwrapper/function/core/load.mcfunction +++ b/datapack/RTWrapper-Datapack/data/rtwrapper/function/core/load.mcfunction @@ -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 diff --git a/datapack/RTWrapper-Datapack/data/runtoolkit/advancement/packs/rtwrapper.json b/datapack/RTWrapper-Datapack/data/runtoolkit/advancement/packs/rtwrapper.json index ca089e1..9b0a6b7 100644 --- a/datapack/RTWrapper-Datapack/data/runtoolkit/advancement/packs/rtwrapper.json +++ b/datapack/RTWrapper-Datapack/data/runtoolkit/advancement/packs/rtwrapper.json @@ -23,6 +23,7 @@ "color": "dark_gray" } ], + "background": "minecraft:textures/block/deepslate_tiles.png", "frame": "task", "show_toast": false, "announce_to_chat": false, diff --git a/scripts/convert_normal_datapack.py b/scripts/convert_normal_datapack.py new file mode 100644 index 0000000..3e755a9 --- /dev/null +++ b/scripts/convert_normal_datapack.py @@ -0,0 +1,4 @@ +import os + +print("Converting...") +convertToNormalDatapack = os.system("bash scripts/onvert_normal_datapack.sh") \ No newline at end of file diff --git a/scripts/onvert_normal_datapack.sh b/scripts/onvert_normal_datapack.sh new file mode 100644 index 0000000..b07d6c9 --- /dev/null +++ b/scripts/onvert_normal_datapack.sh @@ -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 \ No newline at end of file