Add spawner to Dungeons
I want to add spawner to dungeons. How can I get the dungeon type (mossy cobble, desert sandstone...) and place a spawner into a room?
FOSS gamedev and creative worlds
https://forums.minetest.org/
minetest.set_gen_notify("dungeon")
minetest.register_on_generated(function(minp, maxp, blockseed)
local g = minetest.get_mapgen_object("gennotify")
if g and g.dungeon and #g.dungeon > 2 then
minetest.after(3, <function name>, table.copy(g.dungeon))
end
end)