summaryrefslogtreecommitdiff
path: root/trafficlight/init.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2016-05-12 15:01:25 -0500
committercheapie <no-email-for-you@example.com>2016-05-12 15:01:25 -0500
commit1cced6fb370c902c6396a3ee13032451286f5217 (patch)
tree419cfadc70ea856d85d4631780c1544739e8fa56 /trafficlight/init.lua
parent51ca015487ec8116a5d4efddceacb6a620e56e61 (diff)
downloadroads-1cced6fb370c902c6396a3ee13032451286f5217.tar
roads-1cced6fb370c902c6396a3ee13032451286f5217.tar.gz
roads-1cced6fb370c902c6396a3ee13032451286f5217.tar.bz2
roads-1cced6fb370c902c6396a3ee13032451286f5217.tar.xz
roads-1cced6fb370c902c6396a3ee13032451286f5217.zip
Improve inventory images
Diffstat (limited to 'trafficlight/init.lua')
-rw-r--r--trafficlight/init.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/trafficlight/init.lua b/trafficlight/init.lua
index 4985a17..a3d0660 100644
--- a/trafficlight/init.lua
+++ b/trafficlight/init.lua
@@ -203,7 +203,7 @@ minetest.register_node(":streets:trafficlight_top_extender_left_off",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ inventory_image = "streets_trafficlight_inv_extender_left.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -239,7 +239,6 @@ minetest.register_node(":streets:trafficlight_top_extender_left_yellow",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
- inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -275,7 +274,6 @@ minetest.register_node(":streets:trafficlight_top_extender_left_green",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
- inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -310,7 +308,7 @@ minetest.register_node(":streets:trafficlight_top_extender_right_off",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ inventory_image = "streets_trafficlight_inv_extender_right.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -346,7 +344,6 @@ minetest.register_node(":streets:trafficlight_top_extender_right_yellow",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
- inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -382,7 +379,6 @@ minetest.register_node(":streets:trafficlight_top_extender_right_green",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2, not_in_creative_inventory = 1},
- inventory_image = "streets_trafficlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -417,7 +413,7 @@ minetest.register_node(":streets:pedlight_top_off",{
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ inventory_image = "streets_pedlight_inv.png",
light_source = 11,
sunlight_propagates = true,
node_box = {
@@ -529,7 +525,7 @@ for _,i in pairs({"","_left","_right"}) do
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 1, level = 2},
- inventory_image = "streets_trafficlight_inv.png",
+ inventory_image = ((i == "") and "streets_trafficlight_inv_straight.png") or ((i == "_left") and "streets_trafficlight_inv_left.png") or ((i == "_right") and "streets_trafficlight_inv_right.png"),
light_source = 11,
sunlight_propagates = true,
node_box = {