86 lines
2.0 KiB
Lua
Raw Normal View History

2016-01-26 15:57:34 +01:00
--[[
## StreetsMod 2.0 ##
Submod: roadsurface
Optional: true
Category: Roads
2016-01-26 15:57:34 +01:00
]]
2016-05-25 14:47:00 -05:00
streets.register_road_surface({
name="asphalt",
friendlyname = "Asphalt",
tiles = {"streets_asphalt.png"},
groups = {cracky = 3,asphalt = 1},
sounds = default.node_sound_stone_defaults(),
2016-06-04 00:10:09 +02:00
register_stairs = true,
craft = {
output = "streets:asphalt 1",
type = "cooking",
2016-01-26 15:57:34 +01:00
recipe = "default:gravel",
cooktime = 2
}
2016-01-26 15:57:34 +01:00
})
2016-05-25 14:47:00 -05:00
streets.register_road_surface({
name = "asphalt_red",
friendlyname = "Red Asphalt",
tiles = {"streets_asphalt_red.png"},
groups = {cracky = 3,asphalt = 1},
sounds = default.node_sound_stone_defaults(),
2016-06-04 00:10:09 +02:00
register_stairs = true,
craft = {
output = "streets:asphalt_red 1",
type = "shapeless",
recipe = {"streets:asphalt", "dye:red"}
}
2016-01-26 15:57:34 +01:00
})
2016-06-04 00:10:09 +02:00
--[[streets.register_road_surface({
name = "asphalt_yellow",
friendlyname = "Yellow Asphalt",
tiles = {"streets_asphalt_yellow.png"},
groups = {cracky = 3,asphalt = 1},
sounds = default.node_sound_stone_defaults(),
craft = {
output = "streets:asphalt_yellow 1",
type = "shapeless",
recipe = {"streets:asphalt", "dye:yellow"}
}
2016-01-26 15:57:34 +01:00
})
2016-06-04 00:10:09 +02:00
]]
2016-02-28 14:41:38 +01:00
2016-05-25 14:47:00 -05:00
streets.register_road_surface({
name = "asphalt_blue",
friendlyname = "Blue Asphalt",
tiles = {"streets_asphalt_blue.png"},
groups = {cracky = 3,asphalt = 1},
sounds = default.node_sound_stone_defaults(),
2016-06-04 00:10:09 +02:00
register_stairs = false,
craft = {
output = "streets:asphalt_blue 1",
type = "shapeless",
recipe = {"streets:asphalt", "dye:blue"}
}
2016-02-28 14:41:38 +01:00
})
minetest.register_node("streets:sidewalk", {
description = "Sidewalk",
tiles = {"streets_sidewalk.png"},
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults()
})
if minetest.get_modpath("moreblocks") or minetest.get_modpath("stairsplus") then
stairsplus:register_all("streets", "sidewalk", "streets:sidewalk", {
description = "Concrete",
tiles = {"streets_sidewalk.png"},
groups = {cracky = 3, asphalt = 1},
sounds = default.node_sound_stone_defaults()
})
end
minetest.register_craft({
output = "streets:sidewalk 1",
type = "shapeless",
recipe = {"streets:asphalt", "dye:white"}
})