init.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. minetest.register_craftitem('charcoal:charcoal', {
  2. description = 'Charcoal',
  3. inventory_image = 'charcoal_charcoal.png',
  4. groups = {coal=1},
  5. })
  6. minetest.register_craftitem('charcoal:charcoal_block', {
  7. description = 'Charcoal Block',
  8. inventory_image = 'charcoal_charcoal_block_icon.png',
  9. groups = {coal=1},
  10. })
  11. minetest.register_craft({
  12. type = 'cooking',
  13. output = 'charcoal:charcoal',
  14. recipe = 'group:tree',
  15. cooktime = 9,
  16. })
  17. minetest.register_craft({
  18. output = 'charcoal:charcoal_block',
  19. recipe = {
  20. {'charcoal:charcoal', 'charcoal:charcoal', 'charcoal:charcoal'},
  21. {'charcoal:charcoal', 'charcoal:charcoal', 'charcoal:charcoal'},
  22. {'charcoal:charcoal', 'charcoal:charcoal', 'charcoal:charcoal'},
  23. }
  24. })
  25. minetest.register_node('charcoal:charcoal_block', {
  26. description = 'Charcoal Block',
  27. tiles = {'charcoal_charcoal_block.png'},
  28. groups = {cracky=1},
  29. })
  30. minetest.register_craft({
  31. type = 'fuel',
  32. recipe = 'charcoal:charcoal',
  33. burntime = 40,
  34. })
  35. minetest.register_craft({
  36. type = 'fuel',
  37. recipe = 'charcoal:charcoal_block',
  38. burntime = 370,
  39. })
  40. minetest.register_craft({
  41. output = 'default:torch 4',
  42. recipe = {
  43. {'charcoal:charcoal'},
  44. {'default:stick'},
  45. }
  46. })
  47. minetest.register_craft({
  48. output = 'charcoal:charcoal 9',
  49. recipe = {
  50. {'charcoal:charcoal_block'},
  51. }
  52. })