Add grouping feature to syntax guide

This commit is contained in:
Moritz Hölting 2024-04-03 13:57:16 +02:00
parent 83a7970cca
commit 106c53353e
1 changed files with 10 additions and 0 deletions

View File

@ -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
}
``` ```