forked from minetest-mods/technic
added tube entry overlays to fuel-fired generators
This commit is contained in:
parent
b6d343e928
commit
092ab7e738
|
@ -1,6 +1,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)
|
||||||
|
@ -20,6 +21,7 @@ local tube = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function technic.register_generator(data)
|
function technic.register_generator(data)
|
||||||
|
|
||||||
local tier = data.tier
|
local tier = data.tier
|
||||||
local ltier = string.lower(tier)
|
local ltier = string.lower(tier)
|
||||||
|
|
||||||
|
@ -108,9 +110,14 @@ function technic.register_generator(data)
|
||||||
|
|
||||||
minetest.register_node("technic:"..ltier.."_generator", {
|
minetest.register_node("technic:"..ltier.."_generator", {
|
||||||
description = desc,
|
description = desc,
|
||||||
tiles = {"technic_"..ltier.."_generator_top.png", "technic_machine_bottom.png",
|
tiles = {
|
||||||
"technic_"..ltier.."_generator_side.png", "technic_"..ltier.."_generator_side.png",
|
"technic_"..ltier.."_generator_top.png"..tube_entry,
|
||||||
"technic_"..ltier.."_generator_side.png", "technic_"..ltier.."_generator_front.png"},
|
"technic_machine_bottom.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_front.png"
|
||||||
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = groups,
|
groups = groups,
|
||||||
connect_sides = {"bottom", "back", "left", "right"},
|
connect_sides = {"bottom", "back", "left", "right"},
|
||||||
|
@ -171,9 +178,14 @@ function technic.register_generator(data)
|
||||||
|
|
||||||
minetest.register_node("technic:"..ltier.."_generator_active", {
|
minetest.register_node("technic:"..ltier.."_generator_active", {
|
||||||
description = desc,
|
description = desc,
|
||||||
tiles = {"technic_"..ltier.."_generator_top.png", "technic_machine_bottom.png",
|
tiles = {
|
||||||
"technic_"..ltier.."_generator_side.png", "technic_"..ltier.."_generator_side.png",
|
"technic_"..ltier.."_generator_top.png"..tube_entry,
|
||||||
"technic_"..ltier.."_generator_side.png", "technic_"..ltier.."_generator_front_active.png"},
|
"technic_machine_bottom.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_side.png"..tube_entry,
|
||||||
|
"technic_"..ltier.."_generator_front_active.png"
|
||||||
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = active_groups,
|
groups = active_groups,
|
||||||
connect_sides = {"bottom"},
|
connect_sides = {"bottom"},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user