Add conditional for magic_hovel_2

master
Beha 2017-01-09 11:25:46 -05:00
parent 0c76ad5105
commit 173ff7e654
1 changed files with 17 additions and 13 deletions

View File

@ -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",