mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-24 18:00:29 +01:00
added tube entry overlays to most MV machines
This commit is contained in:
parent
a3a959ab5e
commit
ca86550f26
@ -2,6 +2,7 @@
|
|||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
local fs_helpers = pipeworks.fs_helpers
|
local fs_helpers = pipeworks.fs_helpers
|
||||||
|
local tube_entry = "^pipeworks_tube_connection_metallic.png"
|
||||||
|
|
||||||
local tube = {
|
local tube = {
|
||||||
insert_object = function(pos, node, stack, direction)
|
insert_object = function(pos, node, stack, direction)
|
||||||
@ -139,13 +140,18 @@ function technic.register_base_machine(data)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local tentry = tube_entry
|
||||||
|
if ltier == "lv" then
|
||||||
|
tentry = ""
|
||||||
|
end
|
||||||
minetest.register_node("technic:"..ltier.."_"..machine_name, {
|
minetest.register_node("technic:"..ltier.."_"..machine_name, {
|
||||||
description = machine_desc:format(tier),
|
description = machine_desc:format(tier),
|
||||||
tiles = {"technic_"..ltier.."_"..machine_name.."_top.png",
|
tiles = {
|
||||||
"technic_"..ltier.."_"..machine_name.."_bottom.png",
|
"technic_"..ltier.."_"..machine_name.."_top.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_bottom.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_front.png"
|
"technic_"..ltier.."_"..machine_name.."_front.png"
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -210,11 +216,12 @@ function technic.register_base_machine(data)
|
|||||||
|
|
||||||
minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{
|
minetest.register_node("technic:"..ltier.."_"..machine_name.."_active",{
|
||||||
description = machine_desc:format(tier),
|
description = machine_desc:format(tier),
|
||||||
tiles = {"technic_"..ltier.."_"..machine_name.."_top.png",
|
tiles = {
|
||||||
"technic_"..ltier.."_"..machine_name.."_bottom.png",
|
"technic_"..ltier.."_"..machine_name.."_top.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_bottom.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_side.png",
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
|
"technic_"..ltier.."_"..machine_name.."_side.png"..tentry,
|
||||||
"technic_"..ltier.."_"..machine_name.."_front_active.png"
|
"technic_"..ltier.."_"..machine_name.."_front_active.png"
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
Loading…
Reference in New Issue
Block a user