diff --git a/elepower_dynamics/crafting.lua b/elepower_dynamics/crafting.lua index b3477aa..0675150 100644 --- a/elepower_dynamics/crafting.lua +++ b/elepower_dynamics/crafting.lua @@ -122,6 +122,11 @@ minetest.register_craft({ {"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"}, {"basic_materials:copper_wire", "basic_materials:copper_wire", "basic_materials:copper_wire"}, {"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"}, + }, + replacements = { + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, } }) @@ -158,6 +163,21 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "elepower_dynamics:wound_copper_coil", + recipe = { + {"", "basic_materials:copper_wire", ""}, + {"basic_materials:copper_wire", "elepower_dynamics:iron_ingot", "basic_materials:copper_wire"}, + {"", "basic_materials:copper_wire", ""} + }, + replacements = { + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + } +}) + minetest.register_craft({ output = "elepower_dynamics:wound_silver_coil", recipe = { @@ -167,6 +187,21 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "elepower_dynamics:wound_silver_coil", + recipe = { + {"", "basic_materials:silver_wire", ""}, + {"basic_materials:silver_wire", "elepower_dynamics:zinc_ingot", "basic_materials:silver_wire"}, + {"", "basic_materials:silver_wire", ""} + }, + replacements = { + {"basic_materials:silver_wire", "basic_materials:empty_spool"}, + {"basic_materials:silver_wire", "basic_materials:empty_spool"}, + {"basic_materials:silver_wire", "basic_materials:empty_spool"}, + {"basic_materials:silver_wire", "basic_materials:empty_spool"}, + } +}) + minetest.register_craft({ output = "elepower_dynamics:servo_valve 3", recipe = { diff --git a/elepower_farming/machines/composter.lua b/elepower_farming/machines/composter.lua index a762375..659be59 100644 --- a/elepower_farming/machines/composter.lua +++ b/elepower_farming/machines/composter.lua @@ -141,7 +141,13 @@ end ele.register_base_device("elepower_farming:composter", { description = "Composter\nConvert organic matter to Biofuel", - groups = {oddly_breakable_by_hand = 1, cracky = 1, fluid_container = 1, tubedevice = 1, tubedevice_receiver = 1}, + groups = { + oddly_breakable_by_hand = 1, + cracky = 1, + fluid_container = 1, + tubedevice = 1, + tubedevice_receiver = 1 + }, fluid_buffers = { output = { capacity = 8000, diff --git a/elepower_machines/machines/alloy_furnace.lua b/elepower_machines/machines/alloy_furnace.lua index 98f2408..1eeebc6 100644 --- a/elepower_machines/machines/alloy_furnace.lua +++ b/elepower_machines/machines/alloy_furnace.lua @@ -2,7 +2,7 @@ elepm.register_craft_type("alloy", { description = "Alloying", inputs = 2, - icon = "elepower_alloy_furnace.png", + icon = "elepower_machine_side.png^elepower_alloy_furnace.png", }) elepm.register_crafter("elepower_machines:alloy_furnace", { diff --git a/elepower_machines/machines/bucketer.lua b/elepower_machines/machines/bucketer.lua index 795b738..2c5d7c1 100644 --- a/elepower_machines/machines/bucketer.lua +++ b/elepower_machines/machines/bucketer.lua @@ -139,7 +139,13 @@ end ele.register_base_device("elepower_machines:bucketer", { description = "Bucketer", - groups = {oddly_breakable_by_hand = 1, cracky = 1, fluid_container = 1, tube = 1}, + groups = { + oddly_breakable_by_hand = 1, + cracky = 1, + fluid_container = 1, + tubedevice = 1, + tubedevice_receiver = 1, + }, fluid_buffers = { input = { capacity = 8000, diff --git a/elepower_machines/machines/coal_alloy_furnace.lua b/elepower_machines/machines/coal_alloy_furnace.lua index 4da5732..1190692 100644 --- a/elepower_machines/machines/coal_alloy_furnace.lua +++ b/elepower_machines/machines/coal_alloy_furnace.lua @@ -232,6 +232,7 @@ ele.register_base_device("elepower_machines:coal_alloy_furnace", { on_timer = alloy_furnace_timer, groups = { tubedevice = 1, + tubedevice_receiver = 1, cracky = 2, } }) diff --git a/elepower_machines/machines/grindstone.lua b/elepower_machines/machines/grindstone.lua index 5c0dd55..e34a571 100644 --- a/elepower_machines/machines/grindstone.lua +++ b/elepower_machines/machines/grindstone.lua @@ -146,6 +146,7 @@ ele.register_base_device("elepower_machines:grindstone", { on_timer = grindstone_timer, groups = { tubedevice = 1, + tubedevice_receiver = 1, cracky = 2, }, }) diff --git a/elepower_machines/machines/pcb_plant.lua b/elepower_machines/machines/pcb_plant.lua index de78149..c101dfd 100644 --- a/elepower_machines/machines/pcb_plant.lua +++ b/elepower_machines/machines/pcb_plant.lua @@ -143,7 +143,14 @@ end ele.register_machine("elepower_machines:pcb_plant", { description = "Printed Circuit Board Plant", - groups = {oddly_breakable_by_hand = 1, cracky = 1, fluid_container = 1, ele_user = 1}, + groups = { + fluid_container = 1, + cracky = 1, + ele_user = 1, + tubedevice = 1, + tubedevice_receiver = 1, + oddly_breakable_by_hand = 1, + }, fluid_buffers = { acid = { capacity = 8000, diff --git a/elepower_machines/machines/pulverizer.lua b/elepower_machines/machines/pulverizer.lua index cb27ae6..69eec1b 100644 --- a/elepower_machines/machines/pulverizer.lua +++ b/elepower_machines/machines/pulverizer.lua @@ -1,7 +1,7 @@ elepm.register_craft_type("grind", { description = "Grinding", - icon = "elepower_grinder.png", + icon = "elepower_machine_side.png^elepower_grinder.png", inputs = 1, }) diff --git a/elepower_machines/machines/wind_turbine.lua b/elepower_machines/machines/wind_turbine.lua index 863af20..004f285 100644 --- a/elepower_machines/machines/wind_turbine.lua +++ b/elepower_machines/machines/wind_turbine.lua @@ -163,6 +163,7 @@ minetest.register_entity("elepower_machines:wind_turbine_blades", { timer = 0, controller = {x = 0, y = 0, z = 0}, wind = false, + on_step = function (self, dt) if self.wind then local rot = self.object:get_rotation() diff --git a/elepower_mining/miner.lua b/elepower_mining/miner.lua index d8b5fc3..cfc0c7b 100644 --- a/elepower_mining/miner.lua +++ b/elepower_mining/miner.lua @@ -235,7 +235,14 @@ ele.register_machine("elepower_mining:miner_controller", { ele_inrush = 1200, ele_usage = 128, paramtype2 = "facedir", - groups = {fluid_container = 1, oddly_breakable_by_hand = 1, cracky = 1, tube = 1, ele_user = 1}, + groups = { + fluid_container = 1, + oddly_breakable_by_hand = 1, + cracky = 1, + tubedevice = 1, + tubedevice_receiver = 0, + ele_user = 1 + }, on_construct = function (pos) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() diff --git a/elepower_nuclear/crafting.lua b/elepower_nuclear/crafting.lua index 4a41de7..4e8c9e7 100644 --- a/elepower_nuclear/crafting.lua +++ b/elepower_nuclear/crafting.lua @@ -88,6 +88,8 @@ minetest.register_craft({ {"", "elepower_dynamics:acidic_compound", ""}, }, replacements = { + {'elepower_dynamics:nitrogen_container', "elepower_dynamics:gas_container"}, + {'elepower_dynamics:nitrogen_container', "elepower_dynamics:gas_container"}, {'elepower_dynamics:nitrogen_container', "elepower_dynamics:gas_container"}, {'bucket:bucket_water', "bucket:bucket_empty"} } @@ -100,6 +102,14 @@ minetest.register_craft({ {"basic_materials:copper_wire", "elepower_dynamics:graphite_ingot", "basic_materials:copper_wire"}, {"basic_materials:copper_wire", "elepower_dynamics:copper_plate", "basic_materials:copper_wire"}, {"basic_materials:copper_wire", "elepower_dynamics:graphite_ingot", "basic_materials:copper_wire"}, + }, + replacements = { + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, } }) diff --git a/elepower_nuclear/machines/fusion_reactor.lua b/elepower_nuclear/machines/fusion_reactor.lua index 328da98..e2ec404 100644 --- a/elepower_nuclear/machines/fusion_reactor.lua +++ b/elepower_nuclear/machines/fusion_reactor.lua @@ -422,7 +422,6 @@ minetest.register_node("elepower_nuclear:reactor_fluid", { groups = { cracky = 2, fluid_container = 1, - tube = 1, }, fluid_buffers = {}, on_timer = port_timer, @@ -492,7 +491,6 @@ minetest.register_node("elepower_nuclear:reactor_output", { groups = { cracky = 2, fluid_container = 1, - tube = 1, }, fluid_buffers = {}, on_timer = port_timer, diff --git a/elepower_papi/formspec.lua b/elepower_papi/formspec.lua index 154b73b..cb2adf4 100644 --- a/elepower_papi/formspec.lua +++ b/elepower_papi/formspec.lua @@ -63,7 +63,7 @@ end function ele.formspec.fluid_bar(x, y, fluid_buffer) local texture = "default_water.png" local metric = 0 - local tooltip = ("tooltip[%d,%d;1,2.5;%s]"):format(x, y, "Empty Buffer") + local tooltip = ("tooltip[%f,%f;1,2.5;%s]"):format(x, y, "Empty Buffer") if fluid_buffer and fluid_buffer.fluid and fluid_buffer.fluid ~= "" and minetest.registered_nodes[fluid_buffer.fluid] ~= nil then @@ -74,7 +74,7 @@ function ele.formspec.fluid_bar(x, y, fluid_buffer) local fdesc = fluid_lib.cleanse_node_description(fluid_buffer.fluid) metric = math.floor(100 * fluid_buffer.amount / fluid_buffer.capacity) - tooltip = ("tooltip[%d,%d;1,2.5;%s\n%s / %s %s]"):format(x, y, fdesc, + tooltip = ("tooltip[%f,%f;1,2.5;%s\n%s / %s %s]"):format(x, y, fdesc, ele.helpers.comma_value(fluid_buffer.amount), ele.helpers.comma_value(fluid_buffer.capacity), fluid_lib.unit) end diff --git a/elepower_papi/machine.lua b/elepower_papi/machine.lua index 7de2ff8..7ea4288 100644 --- a/elepower_papi/machine.lua +++ b/elepower_papi/machine.lua @@ -325,15 +325,6 @@ function ele.register_base_device(nodename, nodedef) else nodedef['tube'] = tube end - - if nodedef.groups['tubedevice_receiver'] ~= 0 and nodedef['tube'] then - nodedef.groups.tubedevice_receiver = 1 - end - - if nodedef.groups.tube and not nodedef.groups.tubedevice then - nodedef.groups.tube = nil - nodedef.groups.tubedevice = 1 - end end -- Node IO Support diff --git a/elepower_wireless/crafting.lua b/elepower_wireless/crafting.lua index ae1edbc..3e52a6e 100644 --- a/elepower_wireless/crafting.lua +++ b/elepower_wireless/crafting.lua @@ -42,6 +42,9 @@ minetest.register_craft({ {"elepower_dynamics:wound_silver_coil", "elepower_dynamics:xycrone_lump", "elepower_dynamics:wound_silver_coil"}, {"elepower_dynamics:xycrone_lump", "basic_materials:copper_wire", "elepower_dynamics:xycrone_lump"}, {"elepower_dynamics:wound_silver_coil", "elepower_dynamics:battery", "elepower_dynamics:wound_silver_coil"}, + }, + replacements = { + {"basic_materials:copper_wire", "basic_materials:empty_spool"}, } })