Cubent is programming language for creating minecraft datapacks.
Cubent file starts with imports and contains namespaces, load & tick blocks:
import foo.bar as far;
import foo.baz;
namespace boo {
// Functions
}
load {
// Load datapack
}
tick {
// Run every tick
}
Inside the namespace block you can define functions:
namespace boo {
function faz(arg: String): Void {
// Code here
}
}
Download the compiler and use cubent -h
to get started.