crafts.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. if not grinder.crafts_registered then
  2. if minetest.get_modpath("default") then
  3. minetest.register_craft({
  4. type = "grinding",
  5. output = 'default:gravel',
  6. recipe = 'default:cobble',
  7. time = 10,
  8. })
  9. minetest.register_craft({
  10. type = "grinding",
  11. output = 'darkage:darkdirt',
  12. recipe = 'default:gravel',
  13. time = 10,
  14. })
  15. minetest.register_craft({
  16. type = "grinding",
  17. output = 'default:sand 4',
  18. recipe = 'default:stone',
  19. time = 10,
  20. })
  21. minetest.register_craft({
  22. type = "grinding",
  23. output = 'default:desert_sand 4',
  24. recipe = 'default:desert_stone',
  25. time = 10,
  26. })
  27. minetest.register_craft({
  28. type = "grinding",
  29. output = "default:sand 2",
  30. recipe = "default:sandstone",
  31. time = 10,
  32. })
  33. minetest.register_craft({
  34. type = "grinding",
  35. output = "default:desert_sand 2",
  36. recipe = "default:desert_sandstone",
  37. time = 10,
  38. })
  39. minetest.register_craft({
  40. type = "grinding",
  41. output = "sand:sand_with_ice_crystals 2",
  42. recipe = "default:silver_sandstone",
  43. time = 10,
  44. })
  45. minetest.register_craft({
  46. type = "grinding",
  47. output = 'farming:flour 2',
  48. recipe = 'farming:seed_wheat',
  49. time = 5,
  50. })
  51. minetest.register_craft({
  52. type = "shapeless",
  53. output = "farming:flour",
  54. recipe = {
  55. "farming:seed_wheat", "farming:seed_wheat",
  56. "farming:mortar_pestle"
  57. },
  58. replacements = {{"farming:mortar_pestle", "farming:mortar_pestle"}},
  59. })
  60. -- Recipes for desert stone & cobble.
  61. --[[
  62. minetest.register_craft({
  63. output = "default:desert_cobble 4",
  64. recipe = {
  65. {"", "default:cobble", "" },
  66. {"default:cobble", "dusts:copper", "default:cobble"},
  67. {"", "default:cobble", "" },
  68. }
  69. })
  70. --]]
  71. minetest.register_craft({
  72. type = "alloying",
  73. output = "default:desert_cobble 4",
  74. recipe = {"default:cobble 4", "dusts:copper"},
  75. time = 6,
  76. })
  77. end
  78. minetest.register_craft({
  79. output = 'grind2:lv_inactive',
  80. recipe = {
  81. {'default:stonebrick', 'default:diamond', 'default:stonebrick'},
  82. {'default:stonebrick', 'techcrafts:machine_casing', 'default:stonebrick'},
  83. {'morerocks:granite', 'techcrafts:electric_motor', 'morerocks:granite'},
  84. }
  85. })
  86. minetest.register_craft({
  87. output = 'grind2:mv_inactive',
  88. recipe = {
  89. {'stainless_steel:ingot', 'grind2:lv_inactive', 'stainless_steel:ingot'},
  90. {'techcrafts:electric_motor', 'transformer:mv', 'techcrafts:machine_casing'},
  91. {'stainless_steel:ingot', 'cb2:mv', 'stainless_steel:ingot'},
  92. }
  93. })
  94. grinder.crafts_registered = true
  95. end