enable underch cobble nodes

This commit is contained in:
superfloh247 2021-05-30 17:40:26 +02:00 committed by GitHub
parent 131f306305
commit e190163182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,19 @@ local CYCLE_TIME = 2
-- Grinder recipes -- Grinder recipes
local Recipes = {} local Recipes = {}
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
local function formspec(self, pos, meta) local function formspec(self, pos, meta)
return "size[8,8]".. return "size[8,8]"..
default.gui_bg.. default.gui_bg..
@ -337,6 +350,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"})