Merge pull request #2 from VanessaE/master

Add alternate recipe for asphalt if building_blocks mod is present
This commit is contained in:
Christian 2013-10-12 03:05:07 -07:00
commit d04d0c142f

View File

@ -7,9 +7,21 @@ minetest.register_node(":streets:asphalt",{
groups = {cracky=3}
})
minetest.register_craft({
type = "cooking",
output = "streets:asphalt",
recipe = "default:gravel",
cooktime = 2
})
if minetest.get_modpath("building_blocks") then
minetest.register_craft({
type = "shapeless",
output = "streets:asphalt 3",
recipe = {
"default:sand",
"default:gravel",
"building_blocks:Tar"
},
})
else
minetest.register_craft({
type = "cooking",
output = "streets:asphalt",
recipe = "default:gravel",
cooktime = 2
})
end