Add stormdrain and manhole
parent
181c29c19c
commit
a2fc5ea197
1
init.lua
1
init.lua
|
@ -33,6 +33,7 @@ dofile(streets.conf.modpath .. "/global.lua")
|
|||
streets.load_submod("streets_roadsurface")
|
||||
streets.load_submod("streets_roadmarkings")
|
||||
streets.load_submod("streets_roadworks")
|
||||
streets.load_submod("streets_installations")
|
||||
|
||||
-- Let the API register everything and finish the setup
|
||||
dofile(streets.conf.modpath .. "/api_register_all.lua")
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,61 @@
|
|||
--[[
|
||||
## StreetsMod 2.0 ##
|
||||
Submod: installations
|
||||
Optional: true
|
||||
]]
|
||||
|
||||
for surface_name, surface_data in pairs(streets.api.register_road_surfaces) do
|
||||
minetest.register_node(":streets:" .. surface_name:sub(2, -1):split(":")[2] .. "_manhole", {
|
||||
description = "Manhole",
|
||||
tiles = {surface_data["tiles"][1] .. "^streets_manhole.png", surface_data.tiles[1]},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 3},
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.375}, -- F
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5}, -- B
|
||||
{-0.5, -0.5, -0.4375, -0.375, 0.5, 0.4375}, -- L
|
||||
{0.375, -0.5, -0.4375, 0.5, 0.5, 0.4375}, -- R
|
||||
{-0.25, 0.4375, -0.25, 0.25, 0.5, 0.25}, -- CenterPlate
|
||||
{-0.5, 0.4375, -0.0625, 0.5, 0.5, 0.0625}, -- CenterLR
|
||||
{-0.0625, 0.4375, -0.5, 0.0625, 0.5, 0.5}, -- CenterFR
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "regular"
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node(":streets:" .. surface_name:sub(2, -1):split(":")[2] .. "_stormdrain", {
|
||||
description = "Stormdrain",
|
||||
tiles = {surface_data["tiles"][1] .. "^streets_stormdrain.png", surface_data.tiles[1]},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 3},
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375}, -- F
|
||||
{-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, -- B
|
||||
{-0.5, -0.5, -0.4375, -0.375, 0.5, 0.4375}, -- L
|
||||
{0.375, -0.5, -0.4375, 0.5, 0.5, 0.4375}, -- R
|
||||
{-0.4375, 0.4375, 0, 0.4375, 0.5, 0.4375}, -- T1
|
||||
{-0.3125, 0.4375, -0.4375, -0.25, 0.5, 0}, -- S1
|
||||
{0.25, 0.4375, -0.4375, 0.3125, 0.5, 0}, -- S2
|
||||
{-0.1875, 0.4375, -0.4375, -0.125, 0.5, 0}, -- S3
|
||||
{0.125, 0.4375, -0.4375, 0.1875, 0.5, 0}, -- S4
|
||||
{-0.0625, 0.4375, -0.3125, 0.0625, 0.5, 0}, -- S5
|
||||
{-0.125, 0.4375, -0.375, 0.125, 0.5, -0.3125}, -- S6
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "regular"
|
||||
}
|
||||
})
|
||||
end
|
Binary file not shown.
After Width: | Height: | Size: 667 B |
Binary file not shown.
After Width: | Height: | Size: 501 B |
Loading…
Reference in New Issue