1

Improved datapackslaptop

Czebosak 8/27/22 8:26 am history
78
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.

How it works


To start, make a file called index.mcdatapack
to change the description use at the top of the file
description Example Datapack
then you will need to create a namespace
just type
namespace examplenamespace {}to create a function inside of it type
function 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 extension


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.
Posted by
Czebosak
Level 48 : Master Slime Tamer
24

  Have something to say?

JoinSign in

Welcome