commit af36981eced0ec5a85f3914b2359790dd0a6eee2 Author: Zeg9 Date: Tue Jun 4 17:57:08 2013 +0200 Initial commit diff --git a/modpack.txt b/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/steel/depends.txt b/steel/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/steel/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/steel/init.lua b/steel/init.lua new file mode 100644 index 0000000..b08ff4c --- /dev/null +++ b/steel/init.lua @@ -0,0 +1,190 @@ + +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", + -- 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}, +}) + + --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/steel/license.txt b/steel/license.txt new file mode 100644 index 0000000..2afe397 --- /dev/null +++ b/steel/license.txt @@ -0,0 +1,31 @@ +Readme/license + +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) 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/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