add delineators
parent
a2fc5ea197
commit
7eee408de0
1
init.lua
1
init.lua
|
@ -34,6 +34,7 @@ streets.load_submod("streets_roadsurface")
|
|||
streets.load_submod("streets_roadmarkings")
|
||||
streets.load_submod("streets_roadworks")
|
||||
streets.load_submod("streets_installations")
|
||||
streets.load_submod("streets_accessories")
|
||||
|
||||
-- Let the API register everything and finish the setup
|
||||
dofile(streets.conf.modpath .. "/api_register_all.lua")
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
--[[
|
||||
## StreetsMod 2.0 ##
|
||||
Submod: accessories
|
||||
Optional: true
|
||||
]]
|
||||
|
||||
minetest.register_node(":streets:delineator", {
|
||||
tiles = {"streets_delineator_top.png", "streets_delineator_top.png", "streets_delineator_right.png", "streets_delineator_left.png", "streets_delineator_front.png", "streets_delineator_back.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 2},
|
||||
light_source = 2,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, -0.5, -0.0625, 0.125, 0.4375, 0.0625}, -- Body
|
||||
{-0.125, 0.4375, -0.0625, 0, 0.5, 0.0625}, -- Top
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, -0.5, -0.0625, 0.125, 0.5, 0.0625}, -- Body
|
||||
}
|
||||
}
|
||||
})
|
Binary file not shown.
After Width: | Height: | Size: 337 B |
Binary file not shown.
After Width: | Height: | Size: 336 B |
Binary file not shown.
After Width: | Height: | Size: 320 B |
Binary file not shown.
After Width: | Height: | Size: 315 B |
Binary file not shown.
After Width: | Height: | Size: 526 B |
Loading…
Reference in New Issue