From b96fb03282d17c86b57022273cf3fb4a37525796 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Thu, 24 Jul 2014 03:05:34 +0200 Subject: [PATCH] added receipes for the wool layers and the autumn leaves --- snow_cover_nodes.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/snow_cover_nodes.lua b/snow_cover_nodes.lua index a54468e..ef5b5d5 100644 --- a/snow_cover_nodes.lua +++ b/snow_cover_nodes.lua @@ -109,6 +109,13 @@ if( moresnow.enable_autumnleaves ) then return moresnow.on_construct_leaves( pos, 'moresnow:autumnleaves' ); end, }) + + -- craft one leaves block into 9 layers + minetest.register_craft({ + output = 'moresnow:autumnleaves 9', + recipe = { {'default:leaves'} + }}); + -- there is no inverse craft receipe for them as leaves are not particulary rare end if( moresnow.wool_dyes and minetest.get_modpath( 'wool' )) then @@ -137,6 +144,21 @@ if( moresnow.wool_dyes and minetest.get_modpath( 'wool' )) then return moresnow.on_construct_wool( pos, 'moresnow:wool_'..v, v ); end, }); + + -- craft one wool block into 9 layers + minetest.register_craft({ + output = 'moresnow:wool_'..v..' 9', + recipe = { {'wool:'..v} + }}); + + -- craft the wool layers back to a full wool block + minetest.register_craft({ + output = 'wool:'..v, + recipe = { + { 'moresnow:wool_'..v, 'moresnow:wool_'..v, 'moresnow:wool_'..v }, + { 'moresnow:wool_'..v, 'moresnow:wool_'..v, 'moresnow:wool_'..v }, + { 'moresnow:wool_'..v, 'moresnow:wool_'..v, 'moresnow:wool_'..v }, + }}); end end