at

fun at(_at: String, c: CommandBuilder.() -> Unit)(source)

See also


fun at(_at: EntityArg, c: CommandBuilder.() -> Unit)(source)

Creates one or more execute commands running at the position of 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:

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