init.lua 538 B

1234567891011121314151617181920212223242526
  1. -- Base mese burntime.
  2. -- Warning: this affects how much energy machines produce from mese.
  3. local bmb = 60 -- Coal lumps burn for 40.
  4. -- Localize for performance.
  5. local math_floor = math.floor
  6. minetest.register_craft({
  7. type = "mesefuel",
  8. recipe = 'default:mese_crystal_fragment',
  9. burntime = math_floor(bmb/12),
  10. })
  11. minetest.register_craft({
  12. type = "mesefuel",
  13. recipe = 'default:mese_crystal',
  14. burntime = bmb,
  15. })
  16. minetest.register_craft({
  17. type = "mesefuel",
  18. recipe = 'default:mese',
  19. burntime = math_floor(bmb*12),
  20. })