From 7feaf92e8125bfb7456644e53424ce9914dd1af3 Mon Sep 17 00:00:00 2001 From: NathanielFreeman Date: Fri, 12 Feb 2021 14:16:19 +0100 Subject: [PATCH] granite, marble and marble bricks compat with underch mod --- technic_worldgen/nodes.lua | 12 ++++++++++++ technic_worldgen/oregen.lua | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/technic_worldgen/nodes.lua b/technic_worldgen/nodes.lua index d4d3e4c..2c385de 100644 --- a/technic_worldgen/nodes.lua +++ b/technic_worldgen/nodes.lua @@ -46,6 +46,16 @@ minetest.register_node( ":technic:mineral_sulfur", { 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", { description = S("Granite"), tiles = { "technic_granite.png" }, @@ -70,6 +80,8 @@ minetest.register_node( ":technic:marble_bricks", { sounds = default.node_sound_stone_defaults(), }) +end + minetest.register_node(":technic:uranium_block", { description = S("Uranium Block"), tiles = { "technic_uranium_block.png" }, diff --git a/technic_worldgen/oregen.lua b/technic_worldgen/oregen.lua index 4fd41fd..d0fe20d 100644 --- a/technic_worldgen/oregen.lua +++ b/technic_worldgen/oregen.lua @@ -189,7 +189,8 @@ minetest.register_on_generated(function(minp, maxp) vm:write_to_map(data) end) - +if not minetest.get_modpath("underch") then + if technic.config:get_bool("enable_marble_generation") then minetest.register_ore({ ore_type = "sheet", @@ -225,3 +226,5 @@ if technic.config:get_bool("enable_granite_generation") then } }) end + +end