summaryrefslogtreecommitdiff
path: root/asphalt/init.lua
blob: 958cfd5ded09f244e5854320a80cc105c2af0b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--[[
	Streets Mod: All kinds of asphalt
]]
minetest.register_node(":streets:asphalt",{
	description = streets.S("Asphalt"),
	tiles	= {"streets_asphalt.png"},
	groups	= {cracky=3}
})

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