diff --git a/README.md b/README.md index f8ff0fd..d76c832 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,34 @@ -steel -===== - -Minetest mod \ No newline at end of file +Readme/license Steel +===== + +Steel adds a range of steel materials that are recyclable to minetest. working version is 4.0dev-20120603 + + +recipes can be found in the included image + + +the references for /giveme steel:... are: + +plate_hard +plate_soft +plate_rusted + +grate_hard +grate_soft + +strut + +roofing + +to recycle simply craft anything into scrap, and turn the scrap into an iron lump + + +licenses are: + +Code: GPL v2 +textures: CC-BY-SA + +everything by +minetesting (Joćo Matos) +Update by +Jat diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..ed3b8da --- /dev/null +++ b/init.lua @@ -0,0 +1,189 @@ + +minetest.register_node("steel:plate_soft", { + description = "soft steel plate", + tile_images = {"steelplatesoft.png"}, + is_ground_content = true, + groups = {cracky=2}, +}) + +minetest.register_node("steel:plate_hard", { + description = "hardened steel plate", + tile_images = {"steelplatehard.png"}, + is_ground_content = true, + groups = {cracky=1}, +}) + +minetest.register_node("steel:plate_rusted", { + description = "rusted steel plate", + tile_images = {"steel_rusted.png"}, + is_ground_content = true, + groups = {cracky=1,choppy=1}, +}) + +minetest.register_node("steel:strut", { + drawtype = "glasslike", + description = "strut", + tile_images = {"strut.png"}, + is_ground_content = true, + paramtype= "light", + groups = {choppy=1,cracky=1}, + sounds = default.node_sound_stone_defaults(), +}) +minetest.register_node("steel:grate_soft", { + description = "soft Steel Grate", + drawtype = "fencelike", + tile_images = {"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", + tile_images = {"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", + tile_images = {"corrugated_steel.png", "corrugated_steel.png", "corrugated_steel.png", "corrugated_steel.png"}, + inventory_image = "corrugated_steel.png", + wield_image = "corrugated_steel.png", + paramtype = "light", + is_ground_content = true, + walkable = false, + selection_box = { + type = "fixed", + --fixed = + }, + groups = {bendy=2,snappy=1,dig_immediate=2}, +}) + + --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", +}) + +minetest.register_craft({ + output = 'steel:strut 5', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, + {'default:steel_ingot', '', 'default:steel_ingot'}, + } +}) + +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/recipes.png b/recipes.png new file mode 100644 index 0000000..7b10124 Binary files /dev/null and b/recipes.png differ diff --git a/textures/corrugated_steel.png b/textures/corrugated_steel.png new file mode 100644 index 0000000..a704a85 Binary files /dev/null and b/textures/corrugated_steel.png differ diff --git a/textures/gratehard.png b/textures/gratehard.png new file mode 100644 index 0000000..71b0921 Binary files /dev/null and b/textures/gratehard.png differ diff --git a/textures/gratesoft.png b/textures/gratesoft.png new file mode 100644 index 0000000..0ac6a52 Binary files /dev/null and b/textures/gratesoft.png differ diff --git a/textures/scrap.png b/textures/scrap.png new file mode 100644 index 0000000..043292a Binary files /dev/null and b/textures/scrap.png differ diff --git a/textures/steel_rusted.png b/textures/steel_rusted.png new file mode 100644 index 0000000..4d7e598 Binary files /dev/null and b/textures/steel_rusted.png differ diff --git a/textures/steelplatehard.png b/textures/steelplatehard.png new file mode 100644 index 0000000..75e3bf0 Binary files /dev/null and b/textures/steelplatehard.png differ diff --git a/textures/steelplatesoft.png b/textures/steelplatesoft.png new file mode 100644 index 0000000..5891a8b Binary files /dev/null and b/textures/steelplatesoft.png differ diff --git a/textures/strut.png b/textures/strut.png new file mode 100644 index 0000000..faa6b94 Binary files /dev/null and b/textures/strut.png differ diff --git a/textures/worldgratehard.png b/textures/worldgratehard.png new file mode 100644 index 0000000..2e53ae7 Binary files /dev/null and b/textures/worldgratehard.png differ diff --git a/textures/worldgratesoft.png b/textures/worldgratesoft.png new file mode 100644 index 0000000..b8bf99f Binary files /dev/null and b/textures/worldgratesoft.png differ