as_

fun as_(_as: String, c: CommandBuilder.() -> Unit)(source)

See also


fun as_(_as: EntityArg, c: CommandBuilder.() -> Unit)(source)

Creates one or more execute commands running as the given entity

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:

as_(Selector.P) {
cmd("say Hello World!")
at_("notch") {
cmd("say Hi!")
}
if_(con("C")) {
cmd("say C was true too!")
}
}