From 0211c582e9ce8745e19ff49496b026d393dad074 Mon Sep 17 00:00:00 2001 From: sfence <sfence.software@gmail.com> Date: Mon, 06 Jun 2022 18:53:50 +0200 Subject: [PATCH] Add charge set/get callbacks (#600) --- technic/machines/LV/battery_box.lua | 36 +++++------------------------------- 1 files changed, 5 insertions(+), 31 deletions(-) diff --git a/technic/machines/LV/battery_box.lua b/technic/machines/LV/battery_box.lua index a3f5171..bf7f846 100644 --- a/technic/machines/LV/battery_box.lua +++ b/technic/machines/LV/battery_box.lua @@ -1,43 +1,17 @@ --- LV Battery box and some other nodes... - -technic.register_power_tool("technic:battery", 10000) -technic.register_power_tool("technic:red_energy_crystal", 100000) -technic.register_power_tool("technic:green_energy_crystal", 250000) -technic.register_power_tool("technic:blue_energy_crystal", 500000) - -minetest.register_craft({ - output = 'technic:battery', - recipe = { - {'group:wood', 'default:copper_ingot', 'group:wood'}, - {'group:wood', 'moreores:tin_ingot', 'group:wood'}, - {'group:wood', 'default:copper_ingot', 'group:wood'}, - } -}) - -minetest.register_tool("technic:battery", { - description = "RE Battery", - inventory_image = "technic_battery.png", - tool_capabilities = { - charge = 0, - max_drop_level = 0, - groupcaps = { - fleshy = {times={}, uses=10000, maxlevel=0} - } - } -}) +-- LV Battery box minetest.register_craft({ output = 'technic:lv_battery_box0', recipe = { - {'technic:battery', 'group:wood', 'technic:battery'}, - {'technic:battery', 'default:copper_ingot', 'technic:battery'}, - {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, + {'group:wood', 'group:wood', 'group:wood'}, + {'technic:battery', 'technic:machine_casing', 'technic:battery'}, + {'technic:battery', 'technic:lv_cable', 'technic:battery'}, } }) technic.register_battery_box({ tier = "LV", - max_charge = 50000, + max_charge = 40000, charge_rate = 1000, discharge_rate = 4000, charge_step = 500, -- Gitblit v1.8.0