@@ -1897,14 +1897,23 @@ examples.
1897
1897
* deprecated: `invsize[<W>,<H>;]`
1898
1898
1899
1899
#### `position[<X>,<Y>]`
1900
- * Define the position of the formspec
1901
- * A value between 0.0 and 1.0 represents a position inside the screen
1902
- * The default value is the center of the screen (0.5, 0.5)
1900
+ * Must be used after `size` element.
1901
+ * Defines the position on the game window of the formspec's `anchor` point.
1902
+ * For X and Y, 0.0 and 1.0 represent opposite edges of the game window, for example:
1903
+ * [0.0, 0.0] sets the position to the top left corner of the game window.
1904
+ * [1.0, 1.0] sets the position to the bottom right of the game window.
1905
+ * Defaults to the center of the game window [0.5, 0.5].
1903
1906
1904
1907
#### `anchor[<X>,<Y>]`
1905
- * Define the anchor of the formspec
1906
- * A value between 0.0 and 1.0 represents an anchor inside the formspec
1907
- * The default value is the center of the formspec (0.5, 0.5)
1908
+ * Must be used after both `size` and `position` (if present) elements.
1909
+ * Defines the location of the anchor point within the formspec.
1910
+ * For X and Y, 0.0 and 1.0 represent opposite edges of the formspec, for example:
1911
+ * [0.0, 1.0] sets the anchor to the bottom left corner of the formspec.
1912
+ * [1.0, 0.0] sets the anchor to the top right of the formspec.
1913
+ * Defaults to the center of the formspec [0.5, 0.5].
1914
+
1915
+ * `position` and `anchor` elements need suitable values to avoid a formspec
1916
+ extending off the game window due to particular game window sizes.
1908
1917
1909
1918
#### `container[<X>,<Y>]`
1910
1919
* Start of a container block, moves all physical elements in the container by (X, Y)
@@ -5277,6 +5286,10 @@ Note that in params, use of symbols is as follows:
5277
5286
-- ^ Uses texture (string)
5278
5287
playername = "singleplayer"
5279
5288
-- ^ Playername is optional, if specified spawns particle only on the player's client
5289
+ animation = {Tile Animation definition},
5290
+ -- ^ optional, specifies how to animate the particle texture
5291
+ glow = 0
5292
+ -- ^ optional, specify particle self-luminescence in darkness
5280
5293
}
5281
5294
5282
5295
### `HTTPRequest` definition (`HTTPApiTable.fetch_async`, `HTTPApiTable.fetch_async`)
0 commit comments