2018-06-18 09:09:43 +02:00
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
-- see elepower_papi >> external_nodes_items.lua for explanation
|
|
|
|
-- shorten table ref
|
|
|
|
local epg = ele.external.graphic
|
|
|
|
local eps = ele.external.sounds
|
|
|
|
|
2018-06-18 18:15:15 +02:00
|
|
|
-- Electric power
|
2018-06-18 09:09:43 +02:00
|
|
|
ele.register_conduit("elepower_dynamics:conduit", {
|
|
|
|
description = "Power Conduit",
|
|
|
|
tiles = {"elepower_conduit.png"},
|
2021-06-10 11:19:07 +02:00
|
|
|
use_texture_alpha = "clip",
|
2018-06-18 09:09:43 +02:00
|
|
|
groups = {oddly_breakable_by_hand = 1, cracky = 1}
|
|
|
|
})
|
2021-08-08 12:39:20 +02:00
|
|
|
|
2021-06-14 00:29:25 +02:00
|
|
|
ele.register_conduit("elepower_dynamics:conduit_wall", {
|
|
|
|
description = "Power Conduit Wall Pass Through",
|
2021-08-08 12:39:20 +02:00
|
|
|
tiles = {"elepower_conduit_wall.png"},
|
2021-06-14 00:29:25 +02:00
|
|
|
use_texture_alpha = "clip",
|
|
|
|
ele_conductor_density = 4/8,
|
2021-08-08 12:39:20 +02:00
|
|
|
groups = {cracky = 1}
|
|
|
|
})
|
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
|
|
|
|
if ele.external.conduit_dirt_with_grass == true then
|
|
|
|
ele.register_conduit("elepower_dynamics:conduit_dirt_with_grass", {
|
|
|
|
description = "Power Conduit Grass Outlet",
|
|
|
|
tiles = {epg.grass.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.dirt,
|
|
|
|
epg.dirt.."^"..epg.grass_side
|
|
|
|
},
|
|
|
|
use_texture_alpha = "clip",
|
|
|
|
ele_conductor_density = 4/8,
|
|
|
|
groups = {crumbly = 3, soil = 1},
|
|
|
|
sounds = eps.node_sound_dirt_c
|
2021-08-08 12:39:20 +02:00
|
|
|
})
|
2021-08-11 12:25:00 +02:00
|
|
|
end
|
2021-08-08 12:39:20 +02:00
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
if ele.external.conduit_dirt_with_dry_grass == true then
|
|
|
|
ele.register_conduit("elepower_dynamics:conduit_dirt_with_dry_grass", {
|
|
|
|
description = "Power Conduit Dry Grass Outlet",
|
|
|
|
tiles = {epg.grass_dry.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.dirt,
|
|
|
|
epg.dirt.."^"..epg.grass_side_dry
|
|
|
|
},
|
|
|
|
use_texture_alpha = "clip",
|
|
|
|
ele_conductor_density = 4/8,
|
|
|
|
groups = {crumbly = 3, soil = 1},
|
|
|
|
sounds = eps.node_sound_dirt_c
|
2021-08-08 12:39:20 +02:00
|
|
|
})
|
2021-08-11 12:25:00 +02:00
|
|
|
end
|
2021-08-08 12:39:20 +02:00
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
if ele.external.conduit_stone_block == true then
|
|
|
|
ele.register_conduit("elepower_dynamics:conduit_stone_block", {
|
|
|
|
description = "Power Conduit Stone Block",
|
|
|
|
tiles = {epg.stone_block.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.stone_block.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.stone_block.."^elepower_conduit_node_socket.png"
|
|
|
|
},
|
|
|
|
use_texture_alpha = "clip",
|
|
|
|
ele_conductor_density = 4/8,
|
|
|
|
groups = {cracky = 2, stone = 1},
|
|
|
|
sounds = eps.node_sound_stone
|
|
|
|
})
|
|
|
|
end
|
2021-08-08 12:39:20 +02:00
|
|
|
|
2021-08-11 12:25:00 +02:00
|
|
|
if ele.external.conduit_stone_block_desert == true then
|
|
|
|
ele.register_conduit("elepower_dynamics:conduit_stone_block_desert", {
|
|
|
|
description = "Power Conduit Desert Stone Block",
|
|
|
|
tiles = {epg.desert_stone_block.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.desert_stone_block.."^elepower_conduit_node_socket.png",
|
|
|
|
epg.desert_stone_block.."^elepower_conduit_node_socket.png"
|
|
|
|
},
|
|
|
|
use_texture_alpha = "clip",
|
|
|
|
ele_conductor_density = 4/8,
|
|
|
|
groups = {cracky = 2, stone = 1},
|
|
|
|
sounds = eps.node_sound_stone
|
|
|
|
})
|
|
|
|
end
|
2021-08-08 12:39:20 +02:00
|
|
|
|
2018-12-17 16:38:10 +01:00
|
|
|
-- Fluid
|
|
|
|
fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", {
|
|
|
|
description = "Opaque Fluid Duct",
|
|
|
|
tiles = {"elepower_opaque_duct.png"},
|
2021-06-10 11:19:07 +02:00
|
|
|
use_texture_alpha = "clip",
|
2018-12-17 16:38:10 +01:00
|
|
|
duct_density = 1/5,
|
|
|
|
groups = {oddly_breakable_by_hand = 1, cracky = 1}
|
|
|
|
})
|