onLoad

Create a new function that runs when the datapack is loaded

Example:

namespace.onLoad {
cmd("say Hello World!")
}

The created function will be named load_<uuid> where <uuid> is a randomly generated uuid

A new function is generated each time this function is called, regardless of the namespace

See also