mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
18 lines
660 B
Markdown
18 lines
660 B
Markdown
# Strongholds API
|
|
The API provides one function:
|
|
|
|
## `mcl_strongholds.get_stronghold_positions()`
|
|
Returns a table of the positions of all strongholds, centered at the end portal room.
|
|
This includes strongholds which have not been generated yet.
|
|
This table is a copy, changes to the table will have no effect on the stronghold generation.
|
|
|
|
Format of the returned table:
|
|
{
|
|
{ pos = <position>, generated = <true/false> }, -- first stronghold
|
|
{ pos = <position>, generated = <true/false> }, -- second stronghold
|
|
-- and so on …
|
|
}
|
|
|
|
* pos: Position of stronghold, centered at the end portal room
|
|
* generated: `true` if this stronghold has already been generated
|