An alternate language for Minecraft functions.
namespace example_project {
tick func clock { // will run every tick
if ?not entity @e[tag=target], func {// easy if
say "Target doesn't exist!";
// runat is an alias for `run execute at @s run`
execute func {
// inline functions!
tp ~ ~1 ~
}, as: @e[tag=other], run_at: @s;
};
}
load function load {
// will run on load
// can leave out `dummy` when creating an objective
scoreboard::objectives::add "objectiv";
}
}
You need node and yarn or npm to install, or you grab the binary from /dist, but it may not be up to date
yarn global add https://github.com/coolreader18/betterfunction
This project is licensed under the MIT license. Please see the LICENSE file for more details.