From e25c3f6c93c2023da77606bc6d2fe0e3178a364b Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 3 Nov 2012 19:52:31 -0300 Subject: [PATCH 1/2] Add steel block -> steel ingots recipe Steel blocks in MineTest right now are not useful as storage for iron, since once you craft ingots into a block, you can't craft them back into ingots. This commit adds a recipe allowing you to do just that, so steel blocks become more than just a decorative block. --- mods/default/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/default/init.lua b/mods/default/init.lua index 2ee1dd91..98d21560 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -378,6 +378,13 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'default:steel_ingot 9', + recipe = { + {'default:steelblock'}, + } +}) + minetest.register_craft({ output = 'default:steelblock', recipe = { From d8d294ed34b4e43a1e8000a8ffe5dc1aa1b52d6d Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 4 Nov 2012 17:56:34 -0500 Subject: [PATCH 2/2] Make steelblock drop 9 ingots when dug This behavior replaces the one in the previous commit, in which one could craft a steel block into 9 ingots. --- mods/default/init.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mods/default/init.lua b/mods/default/init.lua index 98d21560..b38e11ba 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -378,13 +378,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - output = 'default:steel_ingot 9', - recipe = { - {'default:steelblock'}, - } -}) - minetest.register_craft({ output = 'default:steelblock', recipe = { @@ -1504,6 +1497,7 @@ minetest.register_node("default:steelblock", { tiles = {"default_steel_block.png"}, is_ground_content = true, groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, + drop = "default:steel_ingot 9", sounds = default.node_sound_stone_defaults(), })