From 9bfb2c86f8ae56b9fd45f8a8a7e1250fbb35dc74 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 28 Apr 2020 22:47:26 +0100 Subject: [PATCH] Update the documentation --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5f481ce..22cf56d 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ If you can dream of it, it probably belongs here! - [`//hollowellipsoid `](#hollowellipsoid-rx-ry-rz-node_name) - [`//torus `](#torus-major_radius-minor_radius-node_name) - [`//hollowtorus `](#hollowtorus-major_radius-minor_radius-node_name) + - [`//maze []`](#maze-replace_node-seed) - [`//multi .....`](#multi-command_a-command_b-command_c-) - [`//yy`](#yy) - [`//nn`](#nn) @@ -73,6 +74,16 @@ Creates a hollow torus at position 1 with the radius major and minor radii. Work //hollowtorus 21 11 stone ``` +### `//maze []` +Generates a maze using replace_node as the walls and air as the paths. Uses [an algorithm of my own devising](https://starbeamrainbowlabs.com/blog/article.php?article=posts/070-Language-Review-Lua.html). It is guaranteed that you can get from every point to every other point in generated mazes, and there are no loops. + +A seed can optionally be provided, which will cause the same maze to be generated every time (otherwise `os.time()` is used to dynamically set the seed). + +``` +//maze ice +//maze stone 1234 +``` + ### `//multi .....` Executes multi chat commands in sequence. Intended for _WorldEdit_ commands, but does work with others too. Don't forget a space between commands!