From 4db24333f55efba0ef10e49e2c6ca17a57fd9a6f Mon Sep 17 00:00:00 2001 From: Jeija Date: Fri, 10 Aug 2012 21:31:52 +0200 Subject: Add craft recipe for noteblock --- mesecons_noteblock/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mesecons_noteblock/init.lua b/mesecons_noteblock/init.lua index 7b363cb..13666eb 100644 --- a/mesecons_noteblock/init.lua +++ b/mesecons_noteblock/init.lua @@ -10,6 +10,15 @@ minetest.register_node("mesecons_noteblock:noteblock", { end }) +minetest.register_craft({ + output = '"mesecons_noteblock:noteblock" 1', + recipe = { + {"default:wood", "default:wood", "default:wood"}, + {"mesecons:mesecon_off", "default:steel_ingot", "mesecons:mesecon_off"}, + {"default:wood", "default:wood", "default:wood"}, + } +}) + minetest.register_on_punchnode(function (pos, node) if node.name=="mesecons_noteblock:noteblock" then local param2 = node.param2+1 -- cgit v1.2.3