init.lua 682 B

12345678910111213141516171819202122232425262728293031323334353637
  1. minetest.register_craftitem("charcoal:charcoal", {
  2. description = "Charcoal Lump",
  3. inventory_image = "charcoal_charcoal.png",
  4. -- punching unlit torch with coal powder relights
  5. on_use = function(...)
  6. return real_torch.relight(...)
  7. end,
  8. })
  9. minetest.register_craft({
  10. type = "fuel",
  11. recipe = "charcoal:charcoal",
  12. burntime = 4,
  13. })
  14. minetest.register_craft({
  15. type = "coalfuel",
  16. recipe = "charcoal:charcoal",
  17. burntime = 4,
  18. })
  19. minetest.register_craft({
  20. output = 'torches:torch_floor 4',
  21. recipe = {
  22. {'charcoal:charcoal'},
  23. {'group:stick'},
  24. }
  25. })
  26. minetest.register_craft({
  27. type = "cooking",
  28. output = "charcoal:charcoal 6",
  29. recipe = "group:tree",
  30. })