diff --git a/elepower_dynamics/conduits.lua b/elepower_dynamics/conduits.lua index f789569..c911edf 100644 --- a/elepower_dynamics/conduits.lua +++ b/elepower_dynamics/conduits.lua @@ -5,3 +5,11 @@ ele.register_conduit("elepower_dynamics:conduit", { tiles = {"elepower_conduit.png"}, groups = {oddly_breakable_by_hand = 1, cracky = 1} }) + +-- Fluid +fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", { + description = "Opaque Fluid Duct", + tiles = {"elepower_opaque_duct.png"}, + duct_density = 1/5, + groups = {oddly_breakable_by_hand = 1, cracky = 1} +}) diff --git a/elepower_dynamics/crafting.lua b/elepower_dynamics/crafting.lua index 110c7c1..f58ddb5 100644 --- a/elepower_dynamics/crafting.lua +++ b/elepower_dynamics/crafting.lua @@ -125,6 +125,16 @@ minetest.register_craft({ } }) +-- Opaque Fluid Duct +minetest.register_craft({ + output = "elepower_dynamics:opaque_duct 3", + recipe = { + {"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"}, + {"fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct"}, + {"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"}, + } +}) + -- Portable Tank minetest.register_craft({ output = "elepower_dynamics:portable_tank", diff --git a/elepower_dynamics/textures/elepower_opaque_duct.png b/elepower_dynamics/textures/elepower_opaque_duct.png new file mode 100644 index 0000000..555375f Binary files /dev/null and b/elepower_dynamics/textures/elepower_opaque_duct.png differ diff --git a/elepower_machines/crafting.lua b/elepower_machines/crafting.lua index 36bbba5..5ed9e31 100644 --- a/elepower_machines/crafting.lua +++ b/elepower_machines/crafting.lua @@ -397,6 +397,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "elepower_machines:opaque_duct_roll", + recipe = { + {"elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct"}, + {"elepower_dynamics:opaque_duct", "basic_materials:motor", "elepower_dynamics:opaque_duct"}, + {"elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct", "elepower_dynamics:opaque_duct"}, + } +}) + -- Nodes -- Coal-fired Alloy Furnace @@ -648,3 +657,13 @@ minetest.register_craft({ {"elepower_dynamics:electrum_plate", "elepower_dynamics:brass_plate", "elepower_dynamics:electrum_plate"}, } }) + +-- Pump +minetest.register_craft({ + output = "elepower_machines:pump", + recipe = { + {"elepower_dynamics:lead_gear", "elepower_dynamics:integrated_circuit", "elepower_dynamics:lead_gear"}, + {"bucket:bucket_empty", "elepower_machines:machine_block", "bucket:bucket_empty"}, + {"elepower_dynamics:electrum_plate", "elepower_machines:opaque_duct_roll", "elepower_dynamics:electrum_plate"}, + } +}) diff --git a/elepower_machines/craftitems.lua b/elepower_machines/craftitems.lua index 5d0ece6..21e3aae 100644 --- a/elepower_machines/craftitems.lua +++ b/elepower_machines/craftitems.lua @@ -62,3 +62,9 @@ minetest.register_craftitem("elepower_machines:heavy_filter", { return itemstack end }) + +-- Pump Tube Roll +minetest.register_craftitem("elepower_machines:opaque_duct_roll", { + description = "Retractable Opaque Fluid Duct\nA Pump uses this to reach fluids.", + inventory_image = "elepower_opaque_duct.png", +})