From 4863e454ea76b951aa8a8fe2b0cace02df1fa8fd Mon Sep 17 00:00:00 2001 From: webdesigner97 Date: Sun, 13 Oct 2013 12:42:17 +0200 Subject: textures and selection_box --- streetlamps/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3