store
fun store(resultSuccess: CommandBuilder.StoreKind = StoreKind.RESULT, dest: CommandBuilder.Storable): CommandBuilder(source)
fun store(resultSuccess: CommandBuilder.StoreKind = StoreKind.RESULT, dest: CommandBuilder.Storable, c: CommandBuilder.() -> Unit)(source)
fun store(resultSuccess: CommandBuilder.StoreKind = StoreKind.RESULT, dest: String): CommandBuilder(source)
See also
fun store(resultSuccess: CommandBuilder.StoreKind = StoreKind.RESULT, dest: String, c: CommandBuilder.() -> Unit)(source)
Creates one or more execute commands storing the result or success of a command in a storage location
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:
store(StoreKind.RESULT, myVar) {
cmd("say Hello World!")
at_("notch") {
cmd("say Hi!")
}
if_(con("C")) {
cmd("say C was true too!")
}
}
Content copied to clipboard