Minecraft Data Packs / Technology

Datapack Encrypter

  • check_circle Functions
  • 3,084 views, 4 today
  • 72 downloads, 0 today
  • 11
  • 6
  • 12
deltamachine's Avatar deltamachine
Level 48 : Master Engineer
42
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

Create an account or sign in to comment.

2
11/24/2021 6:52 pmhistory
Level 72 : Legendary Warrior
redstonegamesb
redstonegamesb's Avatar
Very good. This could also be very useful if adapted for Minecraft Bedrock addons. Thanks for sharing
2
05/17/2021 11:14 pm
Level 25 : Expert Ranger
Ranger26
Ranger26's Avatar
This is actually really cool!
2
04/02/2021 9:55 am
Level 57 : Grandmaster Engineer
PvPqnda
PvPqnda's Avatar
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
04/02/2021 4:15 pm
Level 48 : Master Engineer
deltamachine
deltamachine's Avatar
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
04/02/2021 9:59 pm
Level 57 : Grandmaster Engineer
PvPqnda
PvPqnda's Avatar
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 ;)
1
02/28/2021 7:31 pm
Level 54 : Grandmaster Warrior
MrEgg_10
MrEgg_10's Avatar
And can u tell me how to decrypt it cause now I am stuck with 1's and 0's
1
03/01/2021 12:35 am
Level 48 : Master Engineer
deltamachine
deltamachine's Avatar
told you, use a copy of the datapack, because you can't decrypt it
2
02/15/2021 9:52 am
Level 36 : Artisan Electrician
TheFloatingPixel
TheFloatingPixel's Avatar
You can compile this using Pyinstaller (pypi.org/project/pyinstaller/), and use command line arguments/gui instead of modifying the file.
1
02/16/2021 12:00 pm
Level 48 : Master Engineer
deltamachine
deltamachine's Avatar
yeah true I just got lazy
3
02/03/2021 10:27 am
Level 21 : Expert Miner
Qtw
Qtw's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome