namespace

fun namespace(namespace: String): Namespace(source)

Create a new namespace in this datapack

Example:

val dp = datapack { /* ... */}
val ns = dp.namespace("test")
ns.onLoad {
say("Hello World!")
}

See also