Add forcefields, and start building the map.
This commit is contained in:
parent
5fd67703c0
commit
b5bc0a34ea
12 changed files with 509 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue