diff --git a/structures.lua b/structures.lua index 34da62a..effb5e2 100644 --- a/structures.lua +++ b/structures.lua @@ -132,19 +132,23 @@ ancient_world.register("ancient_world:water_tower_1", { }, }) -ancient_world.register("ancient_world:magic_hovel_2", { - schematic = minetest.get_modpath("ancient_world") .. "/schematics/magic_hovel_2.mts", - type = "decoration", - on = {"default:dirt_with_grass"}, - offset = { - x = 0, - y = -3, - z = 0, - }, - random_replacements = { - ["ancient_world:placeholder_1"] = true, - }, -}) +if rawget(_G, 'kingdoms') then + kingdoms.at_mod_load("magic", function() + ancient_world.register("ancient_world:magic_hovel_2", { + schematic = minetest.get_modpath("ancient_world") .. "/schematics/magic_hovel_2.mts", + type = "decoration", + on = {"default:dirt_with_grass"}, + offset = { + x = 0, + y = -3, + z = 0, + }, + random_replacements = { + ["ancient_world:placeholder_1"] = true, + }, + }) + end) +end ancient_world.register("ancient_world:hidden_bush_1", { schematic = minetest.get_modpath("ancient_world") .. "/schematics/hidden_bush_1.mts",