granite, marble and marble bricks compat with underch mod

This commit is contained in:
NathanielFreeman 2021-02-12 14:16:19 +01:00
parent 43acec2900
commit 7feaf92e81
2 changed files with 16 additions and 1 deletions

View File

@ -46,6 +46,16 @@ minetest.register_node( ":technic:mineral_sulfur", {
drop = "technic:sulfur_lump", drop = "technic:sulfur_lump",
}) })
if minetest.get_modpath("underch") then
minetest.register_alias("technic:granite", "underch:granite")
minetest.register_alias("technic:marble", "underch:marble")
minetest.register_alias("technic:marble_bricks", "underch:marble_brick")
else
minetest.register_node( ":technic:granite", { minetest.register_node( ":technic:granite", {
description = S("Granite"), description = S("Granite"),
tiles = { "technic_granite.png" }, tiles = { "technic_granite.png" },
@ -70,6 +80,8 @@ minetest.register_node( ":technic:marble_bricks", {
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
}) })
end
minetest.register_node(":technic:uranium_block", { minetest.register_node(":technic:uranium_block", {
description = S("Uranium Block"), description = S("Uranium Block"),
tiles = { "technic_uranium_block.png" }, tiles = { "technic_uranium_block.png" },

View File

@ -189,6 +189,7 @@ minetest.register_on_generated(function(minp, maxp)
vm:write_to_map(data) vm:write_to_map(data)
end) end)
if not minetest.get_modpath("underch") then
if technic.config:get_bool("enable_marble_generation") then if technic.config:get_bool("enable_marble_generation") then
minetest.register_ore({ minetest.register_ore({
@ -225,3 +226,5 @@ if technic.config:get_bool("enable_granite_generation") then
} }
}) })
end end
end