From cefdd55cb0e5726d20935016862b2a708acfcfb7 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sun, 26 Aug 2018 09:15:59 -0400 Subject: updated blox, coloredwood, technic, steel, unified bricks, and unified dyes --- steel/README.md | 14 ++++++++++++++ steel/description.txt | 1 + steel/init.lua | 24 ++++++++++++------------ steel/mod.conf | 1 + 4 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 steel/README.md create mode 100644 steel/description.txt create mode 100644 steel/mod.conf (limited to 'steel') diff --git a/steel/README.md b/steel/README.md new file mode 100644 index 0000000..5c3dfe3 --- /dev/null +++ b/steel/README.md @@ -0,0 +1,14 @@ +minetest-steel +============== + +This mod adds a range of steel materials that are recyclable to +minetest. To recycle, simply craft anything into scrap, and turn the +scrap into an iron lump. Registered items: plate_hard, plate_soft, +plate_rusted, grate_hard, grate_soft, strut, roofing. + +Optional dependencies: +* Homedecor for better roofing. +* Compatible with streets mod (no duplicates). + +License: GPL-2.0 for code, CC-BY-SA-4.0 for textures. +Original mod by minetesting (João Matos), changes by Zeg9. diff --git a/steel/description.txt b/steel/description.txt new file mode 100644 index 0000000..f08f6d8 --- /dev/null +++ b/steel/description.txt @@ -0,0 +1 @@ +Adds a range of steel materials that are recyclable. diff --git a/steel/init.lua b/steel/init.lua index 72aa92b..fa9dfdd 100644 --- a/steel/init.lua +++ b/steel/init.lua @@ -21,11 +21,11 @@ function steel_node_is_owned(pos, placer) end end - elseif type(isprotect)=="function" then -- glomie's protection mod + elseif type(isprotect)=="function" then -- glomie's protection mod if not isprotect(5, pos, placer) then ownername = "someone" end - elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod + elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod if not protector.can_dig(5, pos, placer) then ownername = "someone" end @@ -58,7 +58,7 @@ function steel_rotate_and_place(itemstack, placer, pointed_thing) local iswall = (above.x ~= under.x) or (above.z ~= under.z) local isceiling = (above.x == under.x) and (above.z == under.z) and (pitch > 0) - if iswall then + if iswall then local dirs = { 2, 3, 0, 1 } minetest.add_node(above, {name = wield_name.."_wall", param2 = dirs[fdir+1] }) -- place wall variant elseif isceiling then @@ -217,15 +217,15 @@ minetest.register_node("steel:roofing_wall", { }) if homedecor_register_slope and homedecor_register_roof then - homedecor_register_slope("steel", "roofing", - "steel:roofing", - {bendy=2,snappy=1,dig_immediate=2}, - {"corrugated_steel.png"}, + homedecor_register_slope("steel", "roofing", + "steel:roofing", + {bendy=2,snappy=1,dig_immediate=2}, + {"corrugated_steel.png"}, "Corrugated steel roofing" ) - homedecor_register_roof("steel", "roofing", - {bendy=2,snappy=1,dig_immediate=2}, - {"corrugated_steel.png"}, + homedecor_register_roof("steel", "roofing", + {bendy=2,snappy=1,dig_immediate=2}, + {"corrugated_steel.png"}, "Corrugated steel roofing" ) end @@ -276,9 +276,9 @@ if not minetest.registered_nodes["streets:steel_support"] then minetest.register_craft({ output = 'steel:strut 5', recipe = { - {'default:steel_ingot', '', 'default:steel_ingot'}, {'', 'default:steel_ingot', ''}, - {'default:steel_ingot', '', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, } }) end diff --git a/steel/mod.conf b/steel/mod.conf new file mode 100644 index 0000000..2d42e84 --- /dev/null +++ b/steel/mod.conf @@ -0,0 +1 @@ +name = steel -- cgit v1.2.3