Data Packs Technology

Datapack Encrypter

  • Functions
  • 3,950 views • 4 today
  • 94 downloads • 0 today
  • 12
  • 8
  • 12
deltamachine
Level 50 : Grandmaster Engineer
49
The purpose of this script is to make your datapack completely unreadable,
>To prevent people from copying your features,
>Or just to make your pack look cool.


Applying it to your datapack will in theory not modify the features of your datapack.
No one would notice a change without looking at the files or using the /function command.


It changes the name of every folder and every function and goes into each function to make sure the /function commands have the new path names.
It also removes any comments, and any unnecessary spaces and line returns
.




--------------------------------------------------------------------------------------------------------------------------------------------

By uploading an encrypted datapack, you make sure you are the only one who has access to the true names of each function and folder, and only you can understand the pack.
No one will be able to steal your ideas.

And on top of that, it looks pretty cool encrypted. Everything is compact and every file is modified at the same time so in the explorer it looks even cooler because of the "modified date"

It also helps if your pack is unreadable to begin with, now you can make it even more unreadable! because you need to do everything 100% in life

--------------------------------------------------------------------------------------------------------------------------------------------




I added a guide in the .zip for instructions on how to use the python script

The python script itself is also ridiculously hard to understand (lol), but that's just because I got lazy and didn't follow Uncle Bob's clean coding advices just this once.

If you get any bugs, tell me I'll most likely reply.
>Make sure you use a copy of your datapack
(you can't decrypt it),
>Don't run the script twice on the same folder if it doesn't work the first time.

(it won't help)

Also, it doesn't update tellraw function calls.
>Say you got a tellraw calling a function from a namespace named "namespace1", you should add "namespace1" to the list of namespaces not to encrypt.



Good luck

CompatibilityMinecraft 1.16
toMinecraft 1.18
Tags

  Have something to say?

redstonegamesb
11/24/2021 6:52 pm
Level 76 : Legendary Warrior
history
Very good. This could also be very useful if adapted for Minecraft Bedrock addons. Thanks for sharing
2
Ranger26
05/17/2021 11:14 pm
Level 26 : Expert Ranger
This is actually really cool!
2
PvPqnda
04/02/2021 9:55 am
Level 59 : Grandmaster Engineer Commander
Really cool concept, but I have Python 3.9.2 installed and it isn't working after I name the datapack "target" and run "run.bat" in the same folder as the datapack and "encrypt.py"
2
deltamachine
04/02/2021 4:15 pm
Level 50 : Grandmaster Engineer
target should be the folder that contains the following:
-data
-pack.mcmeta

It might be that you named "data" "target" instead of the folder containing it.

Otherwise I'm not sure why it wouldn't work..

Also if your pack is really big, for some reason, not everything will be encrypted and thefore the datapack won't work.

It's not a very reliable program unfortunately :/
2
PvPqnda
04/02/2021 9:59 pm
Level 59 : Grandmaster Engineer Commander
Hmm, I believe I'm doing everything correctly, I guess I'm just cursed ¯\_(ツ)_/¯
Thanks for trying to help, but u should def make a more reliable version of this ;)
2
MrEgg_10
02/28/2021 7:31 pm
Level 55 : Grandmaster Warrior
And can u tell me how to decrypt it cause now I am stuck with 1's and 0's
1
deltamachine
03/01/2021 12:35 am
Level 50 : Grandmaster Engineer
told you, use a copy of the datapack, because you can't decrypt it
1
TheFloatingPixel
02/15/2021 9:52 am
Level 39 : Artisan Electrician
You can compile this using Pyinstaller (pypi.org/project/pyinstaller/), and use command line arguments/gui instead of modifying the file.
2
deltamachine
02/16/2021 12:00 pm
Level 50 : Grandmaster Engineer
yeah true I just got lazy
1
Qtw
02/03/2021 10:27 am
Level 22 : Expert Miner
i kinda dislike this.
it prevents some people (like me) from learning how to make datapacks in the way they are most comfortable. i like to study mods to help me learn to make my own mods.

not stealing code per se. but learning to write my own instead of copy n paste.

its easier for me instead of the tutorials that exist.

and no. i don't make mods that rip off other mods or steal parts of other mods to include.
thats just wrong. i only look through the stuff to learn.
3

Welcome