Add grouping feature to syntax guide
This commit is contained in:
parent
83a7970cca
commit
106c53353e
|
@ -64,4 +64,14 @@ if ("block ~ ~-1 ~ minecraft:stone") {
|
||||||
} else {
|
} else {
|
||||||
/say Not on stone
|
/say Not on stone
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Groupings
|
||||||
|
Groupings are used to group multiple commands together into one `mcfunction` file without declaring a new function.
|
||||||
|
This can be used for commands that need to be executed atomically.
|
||||||
|
```shulkerscript
|
||||||
|
group {
|
||||||
|
/say Hello
|
||||||
|
/say World
|
||||||
|
}
|
||||||
```
|
```
|
Loading…
Reference in New Issue