summon

fun summon(_entity: String, c: CommandBuilder.() -> Unit)(source)

Creates one or more execute commands summoning an entity and executing a command as that 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:

summon_(Rotation(2.3, -170.0)) {
cmd("say Hello World!")
at_("notch") {
cmd("say Hi!")
}
if_(con("C")) {
cmd("say C was true too!")
}
}

See also