mirror of
https://github.com/minetest/minetest_docs.git
synced 2024-07-04 15:15:15 +02:00
Correct [sheet
docs
This commit is contained in:
parent
8abac46fe3
commit
95244ec07b
@ -298,12 +298,10 @@ NOTE: This always scales the crack to the size of the base texture (or the tiles
|
|||||||
|
|
||||||
===== `+<base>^[sheet:<w>x<h>:<x>,<y>+`
|
===== `+<base>^[sheet:<w>x<h>:<x>,<y>+`
|
||||||
|
|
||||||
* `w`, `h`: Tile dimensions (positive integers)
|
* `w`, `h`: Tilesheet dimensions (positive integers, in tiles)
|
||||||
* `x`, `y`: Tile position, 0-indexed
|
* `x`, `y`: Tile position, 0-indexed (in tiles)
|
||||||
|
|
||||||
Retrieves the tile at position `x`, `y`. Can be used to retrieve single pixels by setting `w`, `h` to `1`.
|
Retrieves the tile at position `x`, `y`.
|
||||||
|
|
||||||
WARNING: Setting `w` or `h` to `0` will trigger a floating point exception, crashing the client.
|
|
||||||
|
|
||||||
===== `+<base>^[multiply:<color>+`
|
===== `+<base>^[multiply:<color>+`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user