crafting.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. -----------------------------------------------------------------------------------------------
  2. -- Fishing - crabman77 version
  3. -- Rewrited from original Fishing - Mossmanikin's version - Recipes 0.0.8
  4. -----------------------------------------------------------------------------------------------
  5. -- License (code & textures): WTFPL
  6. -- Contains code from: animal_clownfish, animal_fish_blue_white, fishing (original), stoneage
  7. -- Looked at code from:
  8. -- Dependencies: default, farming
  9. -- Supports: animal_clownfish, animal_fish_blue_white, animal_rat, mobs
  10. -----------------------------------------------------------------------------------------------
  11. -----------------------------------------------------------------------------------------------
  12. -- Fishing Pole
  13. -----------------------------------------------------------------------------------------------
  14. -- Wood Fishing Pole
  15. minetest.register_craft({
  16. output = "fishing:pole_wood",
  17. recipe = {
  18. {"", "", "group:stick" },
  19. {"", "group:stick", "farming:string" },
  20. {"group:stick", "", "farming:string" },
  21. }
  22. })
  23. if minetest.get_modpath("moreblocks") ~= nil then
  24. minetest.register_craft({
  25. output = "fishing:pole_wood",
  26. recipe = {
  27. {"", "", "group:stick" },
  28. {"", "group:stick", "moreblocks:rope" },
  29. {"group:stick", "", "moreblocks:rope" },
  30. }
  31. })
  32. end
  33. if minetest.get_modpath("ropes") ~= nil then
  34. minetest.register_craft({
  35. output = "fishing:pole_wood",
  36. recipe = {
  37. {"", "", "group:stick" },
  38. {"", "group:stick", "ropes:rope" },
  39. {"group:stick", "", "ropes:rope" },
  40. }
  41. })
  42. end
  43. -- Mithril Fishing Pole
  44. -- Some subgames have bundled all of moreores' content in their default mod; just check for mithril
  45. if (minetest.get_modpath("moreores") ~= nil or minetest.registered_items["default:mithril_ingot"]) and minetest.get_modpath("mobs") ~= nil then
  46. minetest.register_craft({
  47. output = "fishing:pole_perfect",
  48. recipe = {
  49. {"", "", "moreores:mithril_ingot" },
  50. {"", "moreores:mithril_ingot", "mobs:spider_cobweb" },
  51. {"moreores:mithril_ingot", "", "mobs:spider_cobweb" },
  52. }
  53. })
  54. end
  55. -----------------------------------------------------------------------------------------------
  56. -- Fishing bait
  57. -----------------------------------------------------------------------------------------------
  58. --bait corn
  59. minetest.register_craft({
  60. output = "fishing:bait_corn 9",
  61. recipe = {
  62. {"", "farming:corn", ""},
  63. }
  64. })
  65. --bait bread
  66. minetest.register_craft({
  67. output = "fishing:bait_bread 9",
  68. recipe = {
  69. {"", "farming:bread", ""},
  70. }
  71. })
  72. -----------------------------------------------------------------------------------------------
  73. -- Roasted Fish
  74. -----------------------------------------------------------------------------------------------
  75. minetest.register_craft({
  76. type = "cooking",
  77. output = "fishing:fish_cooked",
  78. recipe = "group:fishraw",
  79. cooktime = 2,
  80. })
  81. if minetest.get_modpath("mobs_fish") ~= nil then
  82. minetest.register_craft({
  83. type = "cooking",
  84. output = "fishing:fish_cooked",
  85. recipe = "mobs_fish:clownfish",
  86. cooktime = 2,
  87. })
  88. minetest.register_craft({
  89. type = "cooking",
  90. output = "fishing:fish_cooked",
  91. recipe = "mobs_fish:tropical",
  92. cooktime = 2,
  93. })
  94. end
  95. -----------------------------------------------------------------------------------------------
  96. -- Wheat Seed
  97. -----------------------------------------------------------------------------------------------
  98. minetest.register_craft({
  99. type = "shapeless",
  100. output = "farming:seed_wheat",
  101. recipe = {"farming:wheat"},
  102. })
  103. -----------------------------------------------------------------------------------------------
  104. -- Sushi
  105. -----------------------------------------------------------------------------------------------
  106. if minetest.get_modpath("flowers_plus") ~= nil then
  107. minetest.register_craft({
  108. type = "shapeless",
  109. output = "fishing:sushi",
  110. recipe = {"fishing:fish_cooked", "farming:seed_wheat", "flowers_plus:seaweed" },
  111. })
  112. end
  113. if minetest.get_modpath("seaplants") ~= nil then
  114. minetest.register_craft({
  115. type = "shapeless",
  116. output = "fishing:sushi",
  117. recipe = {"fishing:fish_cooked", "farming:seed_wheat", "seaplants:kelpgreen" },
  118. })
  119. end
  120. -----------------------------------------------------------------------------------------------
  121. -- Roasted Shark
  122. -----------------------------------------------------------------------------------------------
  123. minetest.register_craft({
  124. type = "cooking",
  125. output = "fishing:shark_cooked",
  126. recipe = "fishing:shark_raw",
  127. cooktime = 2,
  128. })
  129. if minetest.get_modpath("mobs_sharks") ~= nil then
  130. minetest.register_craft({
  131. type = "cooking",
  132. output = "fishing:shark_cooked",
  133. recipe = "mobs_sharks:shark_lg",
  134. cooktime = 2,
  135. })
  136. minetest.register_craft({
  137. type = "cooking",
  138. output = "fishing:shark_cooked",
  139. recipe = "mobs_sharks:shark_md",
  140. cooktime = 2,
  141. })
  142. minetest.register_craft({
  143. type = "cooking",
  144. output = "fishing:shark_cooked",
  145. recipe = "mobs_sharks:shark_sm",
  146. cooktime = 2,
  147. })
  148. end
  149. -----------------------------------------------------------------------------------------------
  150. -- Roasted Pike
  151. -----------------------------------------------------------------------------------------------
  152. minetest.register_craft({
  153. type = "cooking",
  154. output = "fishing:pike_cooked",
  155. recipe = "fishing:pike_raw",
  156. cooktime = 2,
  157. })