Add forcefields, and start building the map.

This commit is contained in:
Signal 2025-11-20 03:15:30 -05:00
parent 5fd67703c0
commit dd73665a23
19 changed files with 511 additions and 15 deletions

View file

@ -35,10 +35,12 @@ include "doors.lua"
include "colors.lua"
include "large_doors.lua"
include "chest.lua"
include "forcefields.lua"
function artifact.load_schematic(dst, path, rot)
minetest.place_schematic(dst, path..".mts", rot or "0")
-- There's not a very good way to export without the forcefields' param2, but we can _import_ without them.
minetest.place_schematic(dst, path..".mts", rot or "0", {["artifact:forcefield"] = "air"})
local f = io.open(path..".json")
local meta = minetest.parse_json(f:read("a"))
f:close()