I've been working on an interpreter (or whatever you want to call it) that allows you to put all of your namespaces and functions in one file.
If your data pack is large, you can use the include command to add more files for better readability.
Everything is programmed in Python.
To start, make a file called index.mcdatapack
to change the description use at the top of the file
then you will need to create a namespace
just type
you can type either (tick) or (load) before the braces if you want to execute the function every tick or every reload
to include other files use
In the future I want to add multi-line commands, syntax highlighting and language support
If anybody's interested, I might upload it on github
The truth is that this is really hard and the song "It just works" perfectly sums up the state of the code. If you are good at Python and want to help, subscribe, and I will keep you updated if I ever create a github repository.
If your data pack is large, you can use the include command to add more files for better readability.
Everything is programmed in Python.
How it works
To start, make a file called index.mcdatapack
to change the description use at the top of the file
description Example Datapackthen you will need to create a namespace
just type
namespace examplenamespace {}to create a function inside of it typefunction examplefunction {}note: line breaks are extremely important!you can type either (tick) or (load) before the braces if you want to execute the function every tick or every reload
to include other files use
include weatherHandlingwithout the file extensionIn the future I want to add multi-line commands, syntax highlighting and language support
If anybody's interested, I might upload it on github
The truth is that this is really hard and the song "It just works" perfectly sums up the state of the code. If you are good at Python and want to help, subscribe, and I will keep you updated if I ever create a github repository.
