Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua
diff options
context:
space:
mode:
authorchililisoup <rebot333gaming@gmail.com>2025-03-23 14:11:21 -0600
committerchililisoup <rebot333gaming@gmail.com>2025-03-23 14:11:21 -0600
commit2b4c762b6b1da745cabe6810187fc34cb546e0cb (patch)
tree3553abb3423320dc5879f7e12d58a11c67593f46 /doc/lua
parentc484b1a67230f938493de16026ca3a2dd7269a2c (diff)
block swapping lua support
Diffstat (limited to 'doc/lua')
-rw-r--r--doc/lua/openstarbound/world.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/lua/openstarbound/world.md b/doc/lua/openstarbound/world.md
index 281fd70..8e0fef3 100644
--- a/doc/lua/openstarbound/world.md
+++ b/doc/lua/openstarbound/world.md
@@ -65,3 +65,15 @@ Calls a function in the specified world script context.
?
---
+
+#### `bool` world.replaceMaterials(`List<Vec2I>` positions, `String` layerName, `String` materialName, [`int` hueShift], [`bool` enableDrops])
+
+Attempts to replace existing materials with the specified material in the specified positions and layer. Positions with no preexisting material will be skipped. Returns `true` if the placement succeeds and `false` otherwise.
+
+---
+
+#### `bool` world.replaceMaterialArea(`Vec2F` center, `float` radius, `String` layerName, `String` materialName, [`int` hueShift], [`bool` enableDrops])
+
+Identical to world.replaceMaterials but applies to tiles in a circular radius around the specified center point.
+
+---