in_

fun in_(_in: String, c: CommandBuilder.() -> Unit)(source)

Creates one or more execute commands running in the given dimension

This can be nested with if_, as_, align, anchored, at, in_, facing, on, positioned, positionedAs, positionedOver, rotated, rotatedAs and summon to create more complex conditions

Example:

in_("minecraft:the_end") {
cmd("say Hello World!")
as_("notch") {
cmd("say Hi!")
}
if_(con("C")) {
cmd("say C was true too!")
}
}

See also