mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-08 18:55:05 +00: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