From ead65ab164272eff15251d6358ac6a6234166a92 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 12 Jun 2015 21:46:30 +0200 Subject: [PATCH] change icebrick texture and make crafting icebricks possible --- src/crafting.lua | 106 +++++++++++++++++++++--------------- src/nodes.lua | 1 + textures/snow_ice_brick.png | Bin 518 -> 665 bytes 3 files changed, 62 insertions(+), 45 deletions(-) diff --git a/src/crafting.lua b/src/crafting.lua index 966dc1d..d173515 100644 --- a/src/crafting.lua +++ b/src/crafting.lua @@ -39,10 +39,10 @@ minetest.register_craft({ -- gives another useful purpose to pine needles. ~ LazyJ minetest.register_craft({ - output = 'snow:moss', + output = "snow:moss", recipe = { - {'snow:needles', 'snow:needles'}, - {'snow:needles', 'snow:needles'}, + {"snow:needles", "snow:needles"}, + {"snow:needles", "snow:needles"}, }, }) @@ -61,10 +61,10 @@ of snowblocks (and then use them to water-grief by melting the snow blocks). minetest.register_craft({ type = "shapeless", - output = 'default:snowblock 2', + output = "default:snowblock 2", recipe = { - 'snow:snow_cobble', - 'snow:snow_cobble' + "snow:snow_cobble", + "snow:snow_cobble" } }) @@ -72,79 +72,95 @@ minetest.register_craft({ --[[minetest.register_craft({ type = "shapeless", - output = 'default:snowblock 3', + output = "default:snowblock 3", recipe = { - 'default:snowblock', - 'default:snowblock' + "default:snowblock", + "default:snowblock" } })]] minetest.register_craft({ - output = 'snow:snow_brick', + output = "snow:snow_brick", recipe = { - {'default:snowblock', 'default:snowblock'}, - {'default:snowblock', 'default:snowblock'} + {"default:snowblock", "default:snowblock"}, + {"default:snowblock", "default:snowblock"} } }) +-- Why not recycle snow_bricks back into snowblocks? ~ LazyJ +minetest.register_craft({ + output = "default:snowblock 4", + recipe = { + {"snow:snow_brick"} + } +}) + + +minetest.register_craft({ + output = "snow:ice_brick", + recipe = { + {"default:ice", "default:ice"}, + {"default:ice", "default:ice"} + } +}) + +minetest.register_craft({ + output = "snow:snow_cobble 6", + recipe = { + {"snow:ice_brick"} + } +}) + + --Craft icy snow. minetest.register_craft({ type = "shapeless", - output = 'snow:snow_cobble 6', + output = "snow:snow_cobble 6", recipe = { - 'default:snow', - 'default:snow', - 'default:snow', - 'default:snow', - 'default:snow', - 'default:snow', - 'default:ice', - 'default:ice', - 'default:ice' + "default:snow", + "default:snow", + "default:snow", + "default:snow", + "default:snow", + "default:snow", + "default:ice", + "default:ice", + "default:ice" } }) minetest.register_craft({ type = "shapeless", - output = 'snow:snow_cobble 4', + output = "snow:snow_cobble 4", recipe = { - 'default:snow', - 'default:snow', - 'default:snow', - 'default:snow', - 'default:ice', - 'default:ice' + "default:snow", + "default:snow", + "default:snow", + "default:snow", + "default:ice", + "default:ice" } }) minetest.register_craft({ type = "shapeless", - output = 'snow:snow_cobble 2', + output = "snow:snow_cobble 2", recipe = { - 'default:snow', - 'default:snow', - 'default:ice' + "default:snow", + "default:snow", + "default:ice" } }) minetest.register_craft({ type = "shapeless", - output = 'snow:snow_cobble', + output = "snow:snow_cobble", recipe = { - 'default:snow', - 'default:ice' - } -}) - - --- Why not recycle snow_bricks back into snowblocks? ~ LazyJ -minetest.register_craft({ - output = 'default:snowblock 4', - recipe = { - {'snow:snow_brick'} + "default:snow", + "default:ice" } }) diff --git a/src/nodes.lua b/src/nodes.lua index e437038..082d0e4 100644 --- a/src/nodes.lua +++ b/src/nodes.lua @@ -207,6 +207,7 @@ local ibdef = table.copy(nodedef) ibdef.description = "Ice Brick" ibdef.tiles = {"snow_ice_brick.png"} ibdef.use_texture_alpha = true +ibdef.drawtype = "glasslike" ibdef.groups = {cracky=1, crumbly=1, choppy=1, melts=1} ibdef.sounds = default.node_sound_glass_defaults({ dug = {name="default_hard_footstep", gain=1} diff --git a/textures/snow_ice_brick.png b/textures/snow_ice_brick.png index 20d0cf87b8e8aa07e79f7355333f8da2e7be7e3a..a28fcce40c1f47983ec5f941a58ef894ce21c9d4 100644 GIT binary patch delta 652 zcmV;70(1R_1epbp8Gi-<001BJ|6u?C0$@o*K~#9!Es{xZn@|vd-~T_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