Merge pull request #88 from superfloh247/underch-support

Underch support
This commit is contained in:
Joachim Stolberg 2021-05-31 17:34:42 +02:00 committed by GitHub
commit 71f67e881b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

@ -337,6 +337,17 @@ else
tubelib.add_grinder_recipe({input="default:sand", output="default:clay"}) tubelib.add_grinder_recipe({input="default:sand", output="default:clay"})
end end
if minetest.get_modpath("underch") then
for regnodename,v in pairs(minetest.registered_nodes) do
if string.find(regnodename, "underch:") then
if string.find(regnodename, "_cobble") and not string.find(regnodename, "_wall") then
print("tubelib.add_grinder_recipe: " .. regnodename)
tubelib.add_grinder_recipe({input=regnodename, output="default:gravel"})
end
end
end
end
tubelib.add_grinder_recipe({input="default:sandstone", output="default:sand 4"}) tubelib.add_grinder_recipe({input="default:sandstone", output="default:sand 4"})
tubelib.add_grinder_recipe({input="default:desert_sandstone", output="default:desert_sand 4"}) tubelib.add_grinder_recipe({input="default:desert_sandstone", output="default:desert_sand 4"})
tubelib.add_grinder_recipe({input="default:silver_sandstone", output="default:silver_sand 4"}) tubelib.add_grinder_recipe({input="default:silver_sandstone", output="default:silver_sand 4"})

@ -254,6 +254,21 @@ gn("ethereal:illumishroom")
gn("ethereal:illumishroom2") gn("ethereal:illumishroom2")
gn("ethereal:illumishroom3") gn("ethereal:illumishroom3")
-------------------------------------------------------------------------------
-- underch Ground
-------------------------------------------------------------------------------
if minetest.get_modpath("underch") then
for regnodename,v in pairs(minetest.registered_nodes) do
if string.find(regnodename, "underch:") then
if string.find(regnodename, "_cobble") and not string.find(regnodename, "_wall") then
gnname = string.gsub(regnodename, "_cobble", "")
print("tubelib_addons1.register_ground_node: " .. gnname)
gn(gnname, regnodename)
end
end
end
end
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Registered flowers -- Registered flowers