some kind of new pole, not good...

This commit is contained in:
webdesigner97 2014-04-24 10:03:02 +02:00
parent 6432eb425e
commit 15c9df485d
2 changed files with 42 additions and 0 deletions

View File

@ -1,6 +1,9 @@
--[[
StreetsMod: inDev Trafficlights
]]
dofile(streets.modpath .. "/../trafficlight/pole.lua")
streets.tlBox = {
--[[ Thank you, rubenwardy, for your awesome NodeboxEditor! Not perfect, but still great! ]]
{-0.1875,-0.5,0.5,0.1875,0.5,0.75}, --nodebox1

39
trafficlight/pole.lua Normal file
View File

@ -0,0 +1,39 @@
--[[
StreetsMod: inDev Trafficlights
]]
minetest.register_node(":streets:bigpole", {
description = "Pole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
groups = {cracky = 1, level = 2, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15, -1.15, -0.15, 0.15, 1.15, 0.15}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
}
},
on_place = minetest.rotate_node
})
minetest.register_node(":streets:bigpole_edge", {
drop = "streets:bigpole",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
tiles = {"streets_pole.png"},
groups = {cracky = 1, level = 2, not_in_creative_inventory = 1, bigpole = 1},
node_box = {
type = "fixed",
fixed = {
{-0.15,-0.5,-0.15,0.15,0.15,0.15},
{-0.15,-0.15,-0.125,0.15,0.15,-0.5}
}
},
})