diff --git a/mods/ctf/ctf_map/README.md b/mods/ctf/ctf_map/README.md index aaa4b91..eb4dc1f 100644 --- a/mods/ctf/ctf_map/README.md +++ b/mods/ctf/ctf_map/README.md @@ -64,6 +64,7 @@ Each map's metadata is stored in an accompanying .conf file containing the follo * `author`: Author of the map. * `hint`: [Optional] Helpful hint or tip for unique maps, to help players understand the map. * `rotation`: Rotation of the schem. [`x`|`z`] +* `base_node`: [Optional] Technical name of node to be used for the team base. * `schematic`: Name of the map's schematic. * `initial_stuff`: [Optional] Comma-separated list of itemstacks to be given to the player on join and on respawn. diff --git a/mods/ctf/ctf_map/base.lua b/mods/ctf/ctf_map/base.lua index a18d5e2..8f45c4e 100644 --- a/mods/ctf/ctf_map/base.lua +++ b/mods/ctf/ctf_map/base.lua @@ -2,8 +2,8 @@ function ctf_map.place_base(color, pos) -- Spawn ind base for x = pos.x - 2, pos.x + 2 do for z = pos.z - 2, pos.z + 2 do - minetest.set_node({ x = x, y = pos.y - 1, z = z}, - {name = "ctf_map:ind_cobble"}) + minetest.set_node({ x = x, y = pos.y - 1, z = z }, + { name = ctf_map.map.base_node or "ctf_map:ind_cobble" }) end end diff --git a/mods/ctf/ctf_map/schem_map.lua b/mods/ctf/ctf_map/schem_map.lua index 0cdc0f6..275bcb4 100644 --- a/mods/ctf/ctf_map/schem_map.lua +++ b/mods/ctf/ctf_map/schem_map.lua @@ -100,6 +100,7 @@ local function load_map_meta(idx, path) screenshot = meta:get("screenshot"), license = meta:get("license"), others = meta:get("others"), + base_node = meta:get("base_node"), schematic = path .. ".mts", initial_stuff = initial_stuff and initial_stuff:split(","), treasures = treasures,