2016-01-26 15:57:34 +01:00
|
|
|
--[[
|
2016-05-30 22:09:31 +02: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({
|
2016-05-30 22:09:31 +02:00
|
|
|
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,
|
2016-05-30 22:09:31 +02:00
|
|
|
craft = {
|
|
|
|
output = "streets:asphalt 1",
|
|
|
|
type = "cooking",
|
2016-01-26 15:57:34 +01:00
|
|
|
recipe = "default:gravel",
|
|
|
|
cooktime = 2
|
2016-05-30 22:09:31 +02:00
|
|
|
}
|
2016-01-26 15:57:34 +01:00
|
|
|
})
|
|
|
|
|
2016-05-25 14:47:00 -05:00
|
|
|
streets.register_road_surface({
|
2016-05-30 22:09:31 +02:00
|
|
|
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,
|
2016-05-30 22:09:31 +02:00
|
|
|
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({
|
2016-05-30 22:09:31 +02:00
|
|
|
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({
|
2016-05-30 22:09:31 +02:00
|
|
|
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,
|
2016-05-30 22:09:31 +02:00
|
|
|
craft = {
|
|
|
|
output = "streets:asphalt_blue 1",
|
|
|
|
type = "shapeless",
|
2016-06-01 00:54:33 +02:00
|
|
|
recipe = {"streets:asphalt", "dye:blue"}
|
2016-05-30 22:09:31 +02:00
|
|
|
}
|
2016-02-28 14:41:38 +01:00
|
|
|
})
|
2016-06-01 00:54:33 +02: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"}
|
|
|
|
})
|