From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- steel/README.txt | 13 -- steel/depends.txt | 5 + steel/init.lua | 322 ++++++++++++++++++++++++++++++ steel/modpack.txt | 0 steel/recipes.png | Bin 0 -> 167430 bytes steel/rust.lua | 15 ++ steel/steel/depends.txt | 5 - steel/steel/init.lua | 322 ------------------------------ steel/steel/recipes.png | Bin 167430 -> 0 bytes steel/steel/rust.lua | 15 -- steel/steel/textures/corrugated_steel.png | Bin 398 -> 0 bytes steel/steel/textures/gratehard.png | Bin 761 -> 0 bytes steel/steel/textures/gratesoft.png | Bin 696 -> 0 bytes steel/steel/textures/scrap.png | Bin 509 -> 0 bytes steel/steel/textures/steel_rusted.png | Bin 785 -> 0 bytes steel/steel/textures/steelplatehard.png | Bin 3398 -> 0 bytes steel/steel/textures/steelplatesoft.png | Bin 3114 -> 0 bytes steel/steel/textures/strut.png | Bin 374 -> 0 bytes steel/steel/textures/worldgratehard.png | Bin 911 -> 0 bytes steel/steel/textures/worldgratesoft.png | Bin 745 -> 0 bytes steel/textures/corrugated_steel.png | Bin 0 -> 398 bytes steel/textures/gratehard.png | Bin 0 -> 761 bytes steel/textures/gratesoft.png | Bin 0 -> 696 bytes steel/textures/scrap.png | Bin 0 -> 509 bytes steel/textures/steel_rusted.png | Bin 0 -> 785 bytes steel/textures/steelplatehard.png | Bin 0 -> 3398 bytes steel/textures/steelplatesoft.png | Bin 0 -> 3114 bytes steel/textures/strut.png | Bin 0 -> 374 bytes steel/textures/worldgratehard.png | Bin 0 -> 911 bytes steel/textures/worldgratesoft.png | Bin 0 -> 745 bytes 30 files changed, 342 insertions(+), 355 deletions(-) delete mode 100644 steel/README.txt create mode 100644 steel/depends.txt create mode 100644 steel/init.lua delete mode 100644 steel/modpack.txt create mode 100644 steel/recipes.png create mode 100644 steel/rust.lua delete mode 100644 steel/steel/depends.txt delete mode 100644 steel/steel/init.lua delete mode 100644 steel/steel/recipes.png delete mode 100644 steel/steel/rust.lua delete mode 100644 steel/steel/textures/corrugated_steel.png delete mode 100644 steel/steel/textures/gratehard.png delete mode 100644 steel/steel/textures/gratesoft.png delete mode 100644 steel/steel/textures/scrap.png delete mode 100644 steel/steel/textures/steel_rusted.png delete mode 100644 steel/steel/textures/steelplatehard.png delete mode 100644 steel/steel/textures/steelplatesoft.png delete mode 100644 steel/steel/textures/strut.png delete mode 100644 steel/steel/textures/worldgratehard.png delete mode 100644 steel/steel/textures/worldgratesoft.png create mode 100644 steel/textures/corrugated_steel.png create mode 100644 steel/textures/gratehard.png create mode 100644 steel/textures/gratesoft.png create mode 100644 steel/textures/scrap.png create mode 100644 steel/textures/steel_rusted.png create mode 100644 steel/textures/steelplatehard.png create mode 100644 steel/textures/steelplatesoft.png create mode 100644 steel/textures/strut.png create mode 100644 steel/textures/worldgratehard.png create mode 100644 steel/textures/worldgratesoft.png (limited to 'steel') diff --git a/steel/README.txt b/steel/README.txt deleted file mode 100644 index 795b256..0000000 --- a/steel/README.txt +++ /dev/null @@ -1,13 +0,0 @@ -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 v2 for code, CC-BY-SA for textures. -Original mod by minetesting (João Matos), changes by Zeg9. diff --git a/steel/depends.txt b/steel/depends.txt new file mode 100644 index 0000000..5643dca --- /dev/null +++ b/steel/depends.txt @@ -0,0 +1,5 @@ +default +streets? +homedecor? +protector? +node_ownership? diff --git a/steel/init.lua b/steel/init.lua new file mode 100644 index 0000000..0b1ef0c --- /dev/null +++ b/steel/init.lua @@ -0,0 +1,322 @@ +dofile(minetest.get_modpath("steel").."/rust.lua") + +if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then + steel_expect_infinite_stacks = true +else + steel_expect_infinite_stacks = false +end + +function steel_node_is_owned(pos, placer) + local ownername = false + if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod + if HasOwner(pos, placer) then -- returns true if the node is owned + if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if type(getLastOwner) == "function" then -- ...is an old version + ownername = getLastOwner(pos) + elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version + ownername = GetNodeOwnerName(pos) + else + ownername = "someone" + end + end + end + + 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 + if not protector.can_dig(5, pos, placer) then + ownername = "someone" + end + end + + if ownername ~= false then + minetest.chat_send_player( placer:get_player_name(), ("Sorry, %s owns that spot."):format(ownername) ) + return true + else + return false + end +end + +function steel_rotate_and_place(itemstack, placer, pointed_thing) + + local node = minetest.get_node(pointed_thing.under) + if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then + if steel_node_is_owned(pointed_thing.above, placer) then + return itemstack + end + local above = pointed_thing.above + local under = pointed_thing.under + local pitch = placer:get_look_pitch() + local node = minetest.get_node(above) + local fdir = minetest.dir_to_facedir(placer:get_look_dir()) + local wield_name = itemstack:get_name() + + if node.name ~= "air" then return end + + 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 + local dirs = { 2, 3, 0, 1 } + minetest.add_node(above, {name = wield_name.."_wall", param2 = dirs[fdir+1] }) -- place wall variant + elseif isceiling then + minetest.add_node(above, {name = wield_name.."_wall", param2 = 19 }) -- place wall variant on ceiling + else + minetest.add_node(above, {name = wield_name }) -- place regular variant + end + + if not steel_expect_infinite_stacks then + itemstack:take_item() + return itemstack + end + else + minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) + end +end + +minetest.register_node("steel:plate_soft", { + description = "Soft steel plate", + tiles = {"steelplatesoft.png"}, + is_ground_content = true, + groups = {cracky=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("steel:plate_hard", { + description = "Hardened steel plate", + tiles = {"steelplatehard.png"}, + is_ground_content = true, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("steel:plate_rusted", { + description = "Rusted steel plate", + tiles = {"steel_rusted.png"}, + is_ground_content = true, + groups = {cracky=1,choppy=1}, + sounds = default.node_sound_stone_defaults(), +}) + +if minetest.registered_nodes["streets:steel_support"] then + minetest.register_alias("steel:strut","streets:steel_support") +else + minetest.register_node("steel:strut", { + drawtype = "glasslike", + description = "Strut", + tiles = {"strut.png"}, + is_ground_content = true, + paramtype= "light", + groups = {choppy=1,cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + minetest.register_alias("streets:steel_support","steel:strut") +end +minetest.register_node("steel:grate_soft", { + description = "Soft Steel Grate", + drawtype = "fencelike", + tiles = {"worldgratesoft.png"}, + inventory_image = "gratesoft.png", + wield_image = "gratesoft.png", + paramtype = "light", + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, + groups = {cracky=2,choppy=2}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("steel:grate_hard", { + description = "Hardened Steel Grate", + drawtype = "fencelike", + tiles = {"worldgratehard.png"}, + inventory_image = "gratehard.png", + wield_image = "gratehard.png", + paramtype = "light", + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, + groups = {cracky=1,choppy=1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("steel:roofing", { + description = "Corrugated steel roofing", + drawtype = "raillike", + tiles = {"corrugated_steel.png"}, + inventory_image = "corrugated_steel.png", + wield_image = "corrugated_steel.png", + paramtype = "light", + is_ground_content = true, + walkable = true, + selection_box = { + type = "fixed", + -- but how to specify the dimensions for curved and sideways rails? + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + groups = {bendy=2,snappy=1,dig_immediate=2}, + on_place = function(itemstack, placer, pointed_thing) + steel_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end +}) + +minetest.register_node("steel:roofing_wall", { + description = "Corrugated steel wall", + drawtype = "nodebox", + tiles = {"corrugated_steel.png"}, + inventory_image = "corrugated_steel.png", + wield_image = "corrugated_steel.png", + paramtype = "light", + paramtype2 = "facedir", + is_ground_content = true, + walkable = true, + groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1}, + drop = "steel:roofing", + on_place = function(itemstack, placer, pointed_thing) + steel_rotate_and_place(itemstack, placer, pointed_thing) + return itemstack + end, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.48, 0.5, 0.5, -0.48 } + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, -0.4 } + }, +}) + +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"}, + "Corrugated steel roofing" + ) + homedecor_register_roof("steel", "roofing", + {bendy=2,snappy=1,dig_immediate=2}, + {"corrugated_steel.png"}, + "Corrugated steel roofing" + ) +end + + --steel scrap are only used to recover ingots + +minetest.register_craftitem("steel:scrap", { + description = "Steel scraps", + inventory_image = "scrap.png", +}) + + --recipes + +minetest.register_craft({ + output = 'steel:plate_soft 2', + recipe = { + {'default:steel_ingot', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot'}, + } +}) + + + +minetest.register_craft({ + type = "cooking", + output = "steel:plate_hard", + recipe = "steel:plate_soft", +}) + + +minetest.register_craft({ + output = 'steel:grate_soft 3', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'default:steel_ingot', '', 'default:steel_ingot'}, + } +}) + + +minetest.register_craft({ + type = "cooking", + output = "steel:grate_hard", + recipe = "steel:grate_soft", +}) + +-- only register this craft if streets is not loaded +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'}, + } + }) +end + +minetest.register_craft({ + output = 'steel:roofing 6', + recipe = { + {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + } +}) + --remelting recipes + +minetest.register_craft({ + output = 'steel:scrap 2', + recipe = { + {'steel:strut'}, + } +}) + +minetest.register_craft({ + output = 'steel:scrap 2', + recipe = { + {'steel:grate_soft'}, + } +}) + +minetest.register_craft({ + output = 'steel:scrap 2', + recipe = { + {'steel:grate_hard'}, + } +}) + +minetest.register_craft({ + output = 'steel:scrap', + recipe = { + {'steel:roofing'}, + } +}) + +minetest.register_craft({ + output = 'steel:scrap 4', + recipe = { + {'steel:plate_soft'}, + } +}) + +minetest.register_craft({ + output = 'steel:scrap 4', + recipe = { + {'steel:plate_hard'}, + } +}) + +minetest.register_craft({ + output = 'default:iron_lump', + recipe = { + {'steel:scrap', 'steel:scrap'}, + } +}) + + + + diff --git a/steel/modpack.txt b/steel/modpack.txt deleted file mode 100644 index e69de29..0000000 diff --git a/steel/recipes.png b/steel/recipes.png new file mode 100644 index 0000000..7b10124 Binary files /dev/null and b/steel/recipes.png differ diff --git a/steel/rust.lua b/steel/rust.lua new file mode 100644 index 0000000..9eea7ca --- /dev/null +++ b/steel/rust.lua @@ -0,0 +1,15 @@ +local function moss(input, output) + minetest.register_abm({ + nodenames = {input}, + neighbors = {"group:water"}, + interval = 50, + chance = 20, + action = function(pos) + if not minetest.find_node_near(pos, 3, output) then + minetest.add_node(pos, {name=output}) + end + end, + }) +end + +moss("steel:plate_soft", "steel:plate_rusted") diff --git a/steel/steel/depends.txt b/steel/steel/depends.txt deleted file mode 100644 index 5643dca..0000000 --- a/steel/steel/depends.txt +++ /dev/null @@ -1,5 +0,0 @@ -default -streets? -homedecor? -protector? -node_ownership? diff --git a/steel/steel/init.lua b/steel/steel/init.lua deleted file mode 100644 index 0b1ef0c..0000000 --- a/steel/steel/init.lua +++ /dev/null @@ -1,322 +0,0 @@ -dofile(minetest.get_modpath("steel").."/rust.lua") - -if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then - steel_expect_infinite_stacks = true -else - steel_expect_infinite_stacks = false -end - -function steel_node_is_owned(pos, placer) - local ownername = false - if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod - if HasOwner(pos, placer) then -- returns true if the node is owned - if not IsPlayerNodeOwner(pos, placer:get_player_name()) then - if type(getLastOwner) == "function" then -- ...is an old version - ownername = getLastOwner(pos) - elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version - ownername = GetNodeOwnerName(pos) - else - ownername = "someone" - end - end - end - - 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 - if not protector.can_dig(5, pos, placer) then - ownername = "someone" - end - end - - if ownername ~= false then - minetest.chat_send_player( placer:get_player_name(), ("Sorry, %s owns that spot."):format(ownername) ) - return true - else - return false - end -end - -function steel_rotate_and_place(itemstack, placer, pointed_thing) - - local node = minetest.get_node(pointed_thing.under) - if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].on_rightclick then - if steel_node_is_owned(pointed_thing.above, placer) then - return itemstack - end - local above = pointed_thing.above - local under = pointed_thing.under - local pitch = placer:get_look_pitch() - local node = minetest.get_node(above) - local fdir = minetest.dir_to_facedir(placer:get_look_dir()) - local wield_name = itemstack:get_name() - - if node.name ~= "air" then return end - - 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 - local dirs = { 2, 3, 0, 1 } - minetest.add_node(above, {name = wield_name.."_wall", param2 = dirs[fdir+1] }) -- place wall variant - elseif isceiling then - minetest.add_node(above, {name = wield_name.."_wall", param2 = 19 }) -- place wall variant on ceiling - else - minetest.add_node(above, {name = wield_name }) -- place regular variant - end - - if not steel_expect_infinite_stacks then - itemstack:take_item() - return itemstack - end - else - minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) - end -end - -minetest.register_node("steel:plate_soft", { - description = "Soft steel plate", - tiles = {"steelplatesoft.png"}, - is_ground_content = true, - groups = {cracky=2}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("steel:plate_hard", { - description = "Hardened steel plate", - tiles = {"steelplatehard.png"}, - is_ground_content = true, - groups = {cracky=1}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("steel:plate_rusted", { - description = "Rusted steel plate", - tiles = {"steel_rusted.png"}, - is_ground_content = true, - groups = {cracky=1,choppy=1}, - sounds = default.node_sound_stone_defaults(), -}) - -if minetest.registered_nodes["streets:steel_support"] then - minetest.register_alias("steel:strut","streets:steel_support") -else - minetest.register_node("steel:strut", { - drawtype = "glasslike", - description = "Strut", - tiles = {"strut.png"}, - is_ground_content = true, - paramtype= "light", - groups = {choppy=1,cracky=1}, - sounds = default.node_sound_stone_defaults(), - }) - minetest.register_alias("streets:steel_support","steel:strut") -end -minetest.register_node("steel:grate_soft", { - description = "Soft Steel Grate", - drawtype = "fencelike", - tiles = {"worldgratesoft.png"}, - inventory_image = "gratesoft.png", - wield_image = "gratesoft.png", - paramtype = "light", - is_ground_content = true, - selection_box = { - type = "fixed", - fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, - }, - groups = {cracky=2,choppy=2}, - sounds = default.node_sound_wood_defaults(), -}) - -minetest.register_node("steel:grate_hard", { - description = "Hardened Steel Grate", - drawtype = "fencelike", - tiles = {"worldgratehard.png"}, - inventory_image = "gratehard.png", - wield_image = "gratehard.png", - paramtype = "light", - is_ground_content = true, - selection_box = { - type = "fixed", - fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, - }, - groups = {cracky=1,choppy=1}, - sounds = default.node_sound_wood_defaults(), -}) - -minetest.register_node("steel:roofing", { - description = "Corrugated steel roofing", - drawtype = "raillike", - tiles = {"corrugated_steel.png"}, - inventory_image = "corrugated_steel.png", - wield_image = "corrugated_steel.png", - paramtype = "light", - is_ground_content = true, - walkable = true, - selection_box = { - type = "fixed", - -- but how to specify the dimensions for curved and sideways rails? - fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, - }, - groups = {bendy=2,snappy=1,dig_immediate=2}, - on_place = function(itemstack, placer, pointed_thing) - steel_rotate_and_place(itemstack, placer, pointed_thing) - return itemstack - end -}) - -minetest.register_node("steel:roofing_wall", { - description = "Corrugated steel wall", - drawtype = "nodebox", - tiles = {"corrugated_steel.png"}, - inventory_image = "corrugated_steel.png", - wield_image = "corrugated_steel.png", - paramtype = "light", - paramtype2 = "facedir", - is_ground_content = true, - walkable = true, - groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1}, - drop = "steel:roofing", - on_place = function(itemstack, placer, pointed_thing) - steel_rotate_and_place(itemstack, placer, pointed_thing) - return itemstack - end, - node_box = { - type = "fixed", - fixed = { -0.5, -0.5, -0.48, 0.5, 0.5, -0.48 } - }, - selection_box = { - type = "fixed", - fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, -0.4 } - }, -}) - -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"}, - "Corrugated steel roofing" - ) - homedecor_register_roof("steel", "roofing", - {bendy=2,snappy=1,dig_immediate=2}, - {"corrugated_steel.png"}, - "Corrugated steel roofing" - ) -end - - --steel scrap are only used to recover ingots - -minetest.register_craftitem("steel:scrap", { - description = "Steel scraps", - inventory_image = "scrap.png", -}) - - --recipes - -minetest.register_craft({ - output = 'steel:plate_soft 2', - recipe = { - {'default:steel_ingot', 'default:steel_ingot'}, - {'default:steel_ingot', 'default:steel_ingot'}, - } -}) - - - -minetest.register_craft({ - type = "cooking", - output = "steel:plate_hard", - recipe = "steel:plate_soft", -}) - - -minetest.register_craft({ - output = 'steel:grate_soft 3', - recipe = { - {'default:steel_ingot', '', 'default:steel_ingot'}, - {'default:steel_ingot', '', 'default:steel_ingot'}, - } -}) - - -minetest.register_craft({ - type = "cooking", - output = "steel:grate_hard", - recipe = "steel:grate_soft", -}) - --- only register this craft if streets is not loaded -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'}, - } - }) -end - -minetest.register_craft({ - output = 'steel:roofing 6', - recipe = { - {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, - } -}) - --remelting recipes - -minetest.register_craft({ - output = 'steel:scrap 2', - recipe = { - {'steel:strut'}, - } -}) - -minetest.register_craft({ - output = 'steel:scrap 2', - recipe = { - {'steel:grate_soft'}, - } -}) - -minetest.register_craft({ - output = 'steel:scrap 2', - recipe = { - {'steel:grate_hard'}, - } -}) - -minetest.register_craft({ - output = 'steel:scrap', - recipe = { - {'steel:roofing'}, - } -}) - -minetest.register_craft({ - output = 'steel:scrap 4', - recipe = { - {'steel:plate_soft'}, - } -}) - -minetest.register_craft({ - output = 'steel:scrap 4', - recipe = { - {'steel:plate_hard'}, - } -}) - -minetest.register_craft({ - output = 'default:iron_lump', - recipe = { - {'steel:scrap', 'steel:scrap'}, - } -}) - - - - diff --git a/steel/steel/recipes.png b/steel/steel/recipes.png deleted file mode 100644 index 7b10124..0000000 Binary files a/steel/steel/recipes.png and /dev/null differ diff --git a/steel/steel/rust.lua b/steel/steel/rust.lua deleted file mode 100644 index 9eea7ca..0000000 --- a/steel/steel/rust.lua +++ /dev/null @@ -1,15 +0,0 @@ -local function moss(input, output) - minetest.register_abm({ - nodenames = {input}, - neighbors = {"group:water"}, - interval = 50, - chance = 20, - action = function(pos) - if not minetest.find_node_near(pos, 3, output) then - minetest.add_node(pos, {name=output}) - end - end, - }) -end - -moss("steel:plate_soft", "steel:plate_rusted") diff --git a/steel/steel/textures/corrugated_steel.png b/steel/steel/textures/corrugated_steel.png deleted file mode 100644 index a704a85..0000000 Binary files a/steel/steel/textures/corrugated_steel.png and /dev/null differ diff --git a/steel/steel/textures/gratehard.png b/steel/steel/textures/gratehard.png deleted file mode 100644 index 71b0921..0000000 Binary files a/steel/steel/textures/gratehard.png and /dev/null differ diff --git a/steel/steel/textures/gratesoft.png b/steel/steel/textures/gratesoft.png deleted file mode 100644 index 0ac6a52..0000000 Binary files a/steel/steel/textures/gratesoft.png and /dev/null differ diff --git a/steel/steel/textures/scrap.png b/steel/steel/textures/scrap.png deleted file mode 100644 index 043292a..0000000 Binary files a/steel/steel/textures/scrap.png and /dev/null differ diff --git a/steel/steel/textures/steel_rusted.png b/steel/steel/textures/steel_rusted.png deleted file mode 100644 index 4d7e598..0000000 Binary files a/steel/steel/textures/steel_rusted.png and /dev/null differ diff --git a/steel/steel/textures/steelplatehard.png b/steel/steel/textures/steelplatehard.png deleted file mode 100644 index 75e3bf0..0000000 Binary files a/steel/steel/textures/steelplatehard.png and /dev/null differ diff --git a/steel/steel/textures/steelplatesoft.png b/steel/steel/textures/steelplatesoft.png deleted file mode 100644 index 5891a8b..0000000 Binary files a/steel/steel/textures/steelplatesoft.png and /dev/null differ diff --git a/steel/steel/textures/strut.png b/steel/steel/textures/strut.png deleted file mode 100644 index faa6b94..0000000 Binary files a/steel/steel/textures/strut.png and /dev/null differ diff --git a/steel/steel/textures/worldgratehard.png b/steel/steel/textures/worldgratehard.png deleted file mode 100644 index 2e53ae7..0000000 Binary files a/steel/steel/textures/worldgratehard.png and /dev/null differ diff --git a/steel/steel/textures/worldgratesoft.png b/steel/steel/textures/worldgratesoft.png deleted file mode 100644 index b8bf99f..0000000 Binary files a/steel/steel/textures/worldgratesoft.png and /dev/null differ diff --git a/steel/textures/corrugated_steel.png b/steel/textures/corrugated_steel.png new file mode 100644 index 0000000..a704a85 Binary files /dev/null and b/steel/textures/corrugated_steel.png differ diff --git a/steel/textures/gratehard.png b/steel/textures/gratehard.png new file mode 100644 index 0000000..71b0921 Binary files /dev/null and b/steel/textures/gratehard.png differ diff --git a/steel/textures/gratesoft.png b/steel/textures/gratesoft.png new file mode 100644 index 0000000..0ac6a52 Binary files /dev/null and b/steel/textures/gratesoft.png differ diff --git a/steel/textures/scrap.png b/steel/textures/scrap.png new file mode 100644 index 0000000..043292a Binary files /dev/null and b/steel/textures/scrap.png differ diff --git a/steel/textures/steel_rusted.png b/steel/textures/steel_rusted.png new file mode 100644 index 0000000..4d7e598 Binary files /dev/null and b/steel/textures/steel_rusted.png differ diff --git a/steel/textures/steelplatehard.png b/steel/textures/steelplatehard.png new file mode 100644 index 0000000..75e3bf0 Binary files /dev/null and b/steel/textures/steelplatehard.png differ diff --git a/steel/textures/steelplatesoft.png b/steel/textures/steelplatesoft.png new file mode 100644 index 0000000..5891a8b Binary files /dev/null and b/steel/textures/steelplatesoft.png differ diff --git a/steel/textures/strut.png b/steel/textures/strut.png new file mode 100644 index 0000000..faa6b94 Binary files /dev/null and b/steel/textures/strut.png differ diff --git a/steel/textures/worldgratehard.png b/steel/textures/worldgratehard.png new file mode 100644 index 0000000..2e53ae7 Binary files /dev/null and b/steel/textures/worldgratehard.png differ diff --git a/steel/textures/worldgratesoft.png b/steel/textures/worldgratesoft.png new file mode 100644 index 0000000..b8bf99f Binary files /dev/null and b/steel/textures/worldgratesoft.png differ -- cgit v1.2.3