battery.lua 841 B

1234567891011121314151617181920
  1. -- The battery item. Used to 'upgrade' battery array boxes so they can
  2. -- store energy consistent with the number of batteries stored in them.
  3. -- Also used as a craftitem in recipes.
  4. minetest.register_craftitem("battery:battery", {
  5. description = "RE Battery\n\nReduces the power requirements of a machine, if used as an upgrade.\nStores energy when wired into battery box housings.",
  6. inventory_image = "technic_battery.png",
  7. stack_max = 1, -- May store meta in the future. Used as upgrade item.
  8. })
  9. minetest.register_alias("battery:re_battery", "battery:battery")
  10. minetest.register_craft({
  11. output = 'battery:battery',
  12. recipe = {
  13. {'group:wood', 'default:copper_ingot', 'group:wood'},
  14. {'default:mese_crystal', 'moreores:tin_ingot', 'default:mese_crystal'},
  15. {'group:wood', 'default:copper_ingot', 'group:wood'},
  16. }
  17. })