From 1d81e6d4d13516f3909ec66661ebc0645740b3b5 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 19 Jan 2015 00:13:20 +0100 Subject: [PATCH] register additional technic materials with the circular saw --- extranodes/init.lua | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/extranodes/init.lua b/extranodes/init.lua index 01d4b75..8c99d1b 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -8,16 +8,19 @@ else S = function(s) return s end end ---register stairsplus/circular_saw nodes +-- register stairsplus/circular_saw nodes +-- we skip blast resistant concrete and uranium intentionally +-- chrome seems to be too hard of a metal to be actually sawable + stairsplus:register_all("technic", "marble", "technic:marble", { description=S("Marble"), - groups={cracky=2, not_in_creative_inventory=1}, + groups={cracky=3, not_in_creative_inventory=1}, tiles={"technic_marble.png"}, }) stairsplus:register_all("technic", "marble_bricks", "technic:marble_bricks", { description=S("Marble Bricks"), - groups={cracky=2, not_in_creative_inventory=1}, + groups={cracky=3, not_in_creative_inventory=1}, tiles={"technic_marble_bricks.png"}, }) @@ -33,6 +36,36 @@ stairsplus:register_all("technic", "concrete", "technic:concrete", { tiles={"technic_concrete_block.png"}, }) +stairsplus:register_all("technic", "zinc_block", "technic:zinc_block", { + description=S("Zinc Block"), + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_zinc_block.png"}, +}) + +stairsplus:register_all("technic", "cast_iron_block", "technic:cast_iron_block", { + description=S("Cast Iron Block"), + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_cast_iron_block.png"}, +}) + +stairsplus:register_all("technic", "carbon_steel_block", "technic:carbon_steel_block", { + description=S("Carbon Steel Block"), + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_carbon_steel_block.png"}, +}) + +stairsplus:register_all("technic", "stainless_steel_block", "technic:stainless_steel_block", { + description=S("Stainless Steel Block"), + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_stainless_steel_block.png"}, +}) + +stairsplus:register_all("technic", "brass_block", "technic:brass_block", { + description=S("Brass Block"), + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_brass_block.png"}, +}) + function register_technic_stairs_alias(modname, origname, newmod, newname) minetest.register_alias(modname .. ":slab_" .. origname, newmod..":slab_" .. newname) minetest.register_alias(modname .. ":slab_" .. origname .. "_inverted", newmod..":slab_" .. newname .. "_inverted")