diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:54:00 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:54:00 -0400 |
commit | ca86550f263814ec05231677f2a3b4343ca56d59 (patch) | |
tree | 8aafae80d504ba8b98b3e9ee7abdf834f5acf6ff | |
parent | a3a959ab5e98308dabb81e920967bb52d19109a7 (diff) |
added tube entry overlays to most MV machines
-rw-r--r-- | technic/machines/register/machine_base.lua | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua index a0dcea7..571622d 100644 --- a/technic/machines/register/machine_base.lua +++ b/technic/machines/register/machine_base.lua @@ -2,6 +2,7 @@ local S = technic.getter local fs_helpers = pipeworks.fs_helpers +local tube_entry = "^pipeworks_tube_connection_metallic.png" local tube = { insert_object = function(pos, node, stack, direction) @@ -139,13 +140,18 @@ function technic.register_base_machine(data) end end + local tentry = tube_entry + if ltier == "lv" then + tentry = "" + end minetest.register_node("technic:"..ltier.."_"..machine_name, { description = machine_desc:format(tier), - tiles = {"technic_"..ltier.."_"..machine_name.."_top.png", - "technic_"..ltier.."_"..machine_name.."_bottom.png", - "technic_"..ltier.."_"..machine_name.."_side.png", - "technic_"..ltier.."_"..machine_name.."_side.png", - "technic_"..ltier.."_"..machine_name.."_side.png", + tiles = { + "technic_"..ltier.."_"..machine_name.."_top.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_bottom.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, "technic_"..ltier.."_"..machine_name.."_front.png" }, paramtype2 = "facedir", @@ -210,11 +216,12 @@ function technic.register_base_machine(data) minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{ description = machine_desc:format(tier), - tiles = {"technic_"..ltier.."_"..machine_name.."_top.png", - "technic_"..ltier.."_"..machine_name.."_bottom.png", - "technic_"..ltier.."_"..machine_name.."_side.png", - "technic_"..ltier.."_"..machine_name.."_side.png", - "technic_"..ltier.."_"..machine_name.."_side.png", + tiles = { + "technic_"..ltier.."_"..machine_name.."_top.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_bottom.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, + "technic_"..ltier.."_"..machine_name.."_side.png"..tentry, "technic_"..ltier.."_"..machine_name.."_front_active.png" }, paramtype2 = "facedir", |