1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2024-12-28 23:40:17 +01:00

change icebrick texture and make crafting icebricks possible

This commit is contained in:
HybridDog 2015-06-12 21:46:30 +02:00
parent 476dd1e029
commit ead65ab164
3 changed files with 62 additions and 45 deletions

View File

@ -39,10 +39,10 @@ minetest.register_craft({
-- gives another useful purpose to pine needles. ~ LazyJ -- gives another useful purpose to pine needles. ~ LazyJ
minetest.register_craft({ minetest.register_craft({
output = 'snow:moss', output = "snow:moss",
recipe = { 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({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'default:snowblock 2', output = "default:snowblock 2",
recipe = { recipe = {
'snow:snow_cobble', "snow:snow_cobble",
'snow:snow_cobble' "snow:snow_cobble"
} }
}) })
@ -72,79 +72,95 @@ minetest.register_craft({
--[[minetest.register_craft({ --[[minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'default:snowblock 3', output = "default:snowblock 3",
recipe = { recipe = {
'default:snowblock', "default:snowblock",
'default:snowblock' "default:snowblock"
} }
})]] })]]
minetest.register_craft({ minetest.register_craft({
output = 'snow:snow_brick', output = "snow:snow_brick",
recipe = { 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. --Craft icy snow.
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'snow:snow_cobble 6', output = "snow:snow_cobble 6",
recipe = { recipe = {
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:ice', "default:ice",
'default:ice', "default:ice",
'default:ice' "default:ice"
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'snow:snow_cobble 4', output = "snow:snow_cobble 4",
recipe = { recipe = {
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:ice', "default:ice",
'default:ice' "default:ice"
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'snow:snow_cobble 2', output = "snow:snow_cobble 2",
recipe = { recipe = {
'default:snow', "default:snow",
'default:snow', "default:snow",
'default:ice' "default:ice"
} }
}) })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = 'snow:snow_cobble', output = "snow:snow_cobble",
recipe = { recipe = {
'default:snow', "default:snow",
'default:ice' "default:ice"
}
})
-- Why not recycle snow_bricks back into snowblocks? ~ LazyJ
minetest.register_craft({
output = 'default:snowblock 4',
recipe = {
{'snow:snow_brick'}
} }
}) })

View File

@ -207,6 +207,7 @@ local ibdef = table.copy(nodedef)
ibdef.description = "Ice Brick" ibdef.description = "Ice Brick"
ibdef.tiles = {"snow_ice_brick.png"} ibdef.tiles = {"snow_ice_brick.png"}
ibdef.use_texture_alpha = true ibdef.use_texture_alpha = true
ibdef.drawtype = "glasslike"
ibdef.groups = {cracky=1, crumbly=1, choppy=1, melts=1} ibdef.groups = {cracky=1, crumbly=1, choppy=1, melts=1}
ibdef.sounds = default.node_sound_glass_defaults({ ibdef.sounds = default.node_sound_glass_defaults({
dug = {name="default_hard_footstep", gain=1} dug = {name="default_hard_footstep", gain=1}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 665 B