From 106c53353e5bdedf4a2c1c7a83135bd933f5ea6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:57:16 +0200 Subject: [PATCH] Add grouping feature to syntax guide --- src/content/docs/guides/syntax.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/content/docs/guides/syntax.md b/src/content/docs/guides/syntax.md index 4dbd2b9..fd00a07 100644 --- a/src/content/docs/guides/syntax.md +++ b/src/content/docs/guides/syntax.md @@ -64,4 +64,14 @@ if ("block ~ ~-1 ~ minecraft:stone") { } else { /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 +} ``` \ No newline at end of file