mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
660 B
660 B
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 = , generated = <true/false> }, -- first stronghold { pos = , 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