summaryrefslogtreecommitdiff
path: root/streetlamps
diff options
context:
space:
mode:
authorwebdesigner97 <Christian_D_97@gmx.de>2013-10-13 12:42:17 +0200
committerwebdesigner97 <Christian_D_97@gmx.de>2013-10-13 12:42:17 +0200
commit4863e454ea76b951aa8a8fe2b0cace02df1fa8fd (patch)
tree9c841275ff342e5a3aed7ea1608e5c8c4cb7695a /streetlamps
parent81abbed3eb4a5a745c96efe8179d0cc3accff299 (diff)
downloadroads-4863e454ea76b951aa8a8fe2b0cace02df1fa8fd.tar
roads-4863e454ea76b951aa8a8fe2b0cace02df1fa8fd.tar.gz
roads-4863e454ea76b951aa8a8fe2b0cace02df1fa8fd.tar.bz2
roads-4863e454ea76b951aa8a8fe2b0cace02df1fa8fd.tar.xz
roads-4863e454ea76b951aa8a8fe2b0cace02df1fa8fd.zip
textures and selection_box
Diffstat (limited to 'streetlamps')
-rw-r--r--streetlamps/init.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/streetlamps/init.lua b/streetlamps/init.lua
index c0d3cca..621c7b1 100644
--- a/streetlamps/init.lua
+++ b/streetlamps/init.lua
@@ -14,6 +14,12 @@ minetest.register_node(":streets:streetlamp_basic_bottom",{
{-0.1,0.4,-0.1,0.1,0.5,0.1}
}
},
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.3,-0.5,-0.3,0.3,2.5,0.3}
+ }
+ },
after_place_node = function(pos,placer,itemstack)
minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z},{name = "streets:streetlamp_basic_middle"})
minetest.set_node({x = pos.x, y = pos.y + 2, z = pos.z},{name = "streets:streetlamp_basic_top_off"})
@@ -60,7 +66,7 @@ minetest.register_node(":streets:streetlamp_basic_top_off",{
minetest.register_node(":streets:streetlamp_basic_top_on",{
description = "U cheater U",
groups = {cracky = 1, not_in_creative_inventory = 1},
- tiles = {"streets_lamps_basic_top_top.png","streets_lamps_basic_top.png"},
+ tiles = {"streets_lamps_basic_top_top.png","streets_lamps_basic_top_top.png","streets_lamps_basic_top.png","streets_lamps_basic_top.png","streets_lamps_basic_top.png","streets_lamps_basic_top.png"},
paramtype = "light",
drawtype = "nodebox",
pointable = false,