drinks.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. -- add all drinks even if mods to brew them aren't active
  2. -- (name, desc, has bottle, hunger, thirst, alcoholic)
  3. wine:add_drink("wine", "Wine", true, 2, 5, 1)
  4. wine:add_drink("beer", "Beer", true, 2, 8, 1)
  5. wine:add_drink("rum", "Rum", true, 2, 5, 1)
  6. wine:add_drink("tequila", "Tequila", true, 2, 3, 1)
  7. wine:add_drink("wheat_beer", "Wheat Beer", true, 2, 8, 1)
  8. wine:add_drink("sake", "Sake", true, 2, 3, 1)
  9. wine:add_drink("bourbon", "Bourbon", true, 2, 3, 1)
  10. wine:add_drink("vodka", "Vodka", true, 2, 3, 1)
  11. wine:add_drink("cider", "Cider", true, 2, 6, 1)
  12. wine:add_drink("mead", "Honey-Mead", true, 4, 5, 1)
  13. wine:add_drink("mint", "Mint Julep", true, 4, 3, 1)
  14. wine:add_drink("brandy", "Brandy", true, 3, 4, 1)
  15. wine:add_drink("coffee_liquor", "Coffee Liquor", true, 3, 4, 1)
  16. wine:add_drink("champagne", "Champagne", true, 4, 5, 1)
  17. wine:add_drink("cointreau", "Cointreau", true, 2, 3, 1)
  18. wine:add_drink("margarita", "Margarita", false, 4, 5, 1)
  19. wine:add_drink("kefir", "Kefir", true, 4, 4, 0)
  20. wine:add_drink("sparkling_agave_juice", "Sparkling Agave Juice", 2, 4, 0)
  21. wine:add_drink("sparkling_apple_juice", "Sparkling Apple Juice", 2, 5, 0)
  22. wine:add_drink("sparkling_carrot_juice", "Sparkling Carrot Juice", 3, 4, 0)
  23. wine:add_drink("sparkling_blackberry_juice", "Sparkling Blackberry Juice", 2, 4, 0)
  24. -- brandy recipe
  25. minetest.register_craft({
  26. type = "cooking",
  27. cooktime = 25, -- forks
  28. output = "wine:glass_brandy",
  29. recipe = "wine:glass_wine"
  30. })
  31. -- Raw champagne alias
  32. minetest.register_alias("wine:glass_champagne_raw", "wine:glass_champagne")
  33. -- quick override to add wine to food group
  34. minetest.override_item("wine:glass_wine", {
  35. groups = {
  36. food_wine = 1, vessel = 1, dig_immediate = 3,
  37. attached_node = 1, alcohol = 1, drink = 1
  38. }
  39. })
  40. -- quick override to add brandy to food group
  41. minetest.override_item("wine:glass_brandy", {
  42. groups = {
  43. food_brandy = 1, vessel = 1, dig_immediate = 3,
  44. attached_node = 1, alcohol = 1, drink = 1
  45. }
  46. })
  47. -- wine mod adds tequila by default
  48. wine:add_item({
  49. {
  50. {"wine:agave_syrup", "wine:blue_agave", "vessels:drinking_glass"},
  51. "wine:glass_sparkling_agave_juice"
  52. },
  53. {"wine:blue_agave", "wine:glass_tequila"}
  54. })
  55. -- default game
  56. if minetest.get_modpath("default") then
  57. wine:add_item({
  58. {"default:apple", "wine:glass_cider"},
  59. {"default:papyrus", "wine:glass_rum"}
  60. })
  61. end
  62. -- xdecor
  63. if minetest.get_modpath("xdecor") then
  64. wine:add_item({ {"xdecor:honey", "wine:glass_mead"} })
  65. end
  66. -- mobs_animal
  67. if minetest.get_modpath("mobs_animal")
  68. or minetest.get_modpath("xanadu") then
  69. wine:add_item({
  70. {"mobs:honey", "wine:glass_mead"},
  71. {"mobs:glass_milk", "wine:glass_kefir"}
  72. })
  73. end
  74. -- farming
  75. if minetest.get_modpath("farming") then
  76. wine:add_item({ {"farming:wheat", "wine:glass_wheat_beer"} })
  77. if farming.mod and (farming.mod == "redo" or farming.mod == "undo") then
  78. -- mint julep recipe
  79. if farming.mod == "undo" then
  80. minetest.register_craft({
  81. type = "shapeless",
  82. output = "wine:glass_mint",
  83. recipe = {
  84. "wine:glass_bourbon", "farming:sugar", "farming:mint_leaf",
  85. "farming:mint_leaf", "farming:mint_leaf"
  86. }
  87. })
  88. else
  89. minetest.register_craft({
  90. output = "wine:glass_mint",
  91. recipe = {
  92. {"farming:mint_leaf", "farming:mint_leaf", "farming:mint_leaf"},
  93. {"wine:glass_bourbon", "farming:sugar", ""}
  94. }
  95. })
  96. end
  97. wine:add_item({
  98. {"farming:grapes", "wine:glass_wine"},
  99. {"farming:barley", "wine:glass_beer"},
  100. {"farming:rice", "wine:glass_sake"},
  101. {"farming:corn", "wine:glass_bourbon"},
  102. {"farming:baked_potato", "wine:glass_vodka"},
  103. {{"wine:glass_rum", "farming:coffee_beans"}, "wine:glass_coffee_liquor"},
  104. {{"wine:glass_wine", "farming:sugar"}, "wine:glass_champagne"},
  105. {
  106. {"default:apple", "farming:sugar", "vessels:drinking_glass"},
  107. "wine:glass_sparkling_apple_juice"
  108. },
  109. {
  110. {"farming:carrot", "farming:sugar", "vessels:drinking_glass"},
  111. "wine:glass_sparkling_carrot_juice"
  112. },
  113. {
  114. {"farming:blackberry 2", "farming:sugar", "vessels:drinking_glass"},
  115. "wine:glass_sparkling_blackberry_juice"
  116. }
  117. })
  118. end
  119. end
  120. -- ethereal
  121. if minetest.get_modpath("ethereal") then
  122. wine:add_item({ {"ethereal:orange", "wine:glass_cointreau"} })
  123. -- margarita recipe
  124. minetest.register_craft({
  125. output = "wine:glass_margarita 2",
  126. recipe = {
  127. {"wine:glass_cointreau", "wine:glass_tequila", "ethereal:lemon"}
  128. }
  129. })
  130. end
  131. -- mineclone2
  132. if minetest.get_modpath("mcl_core") then
  133. wine:add_item({
  134. {"mcl_core:apple", "wine:glass_cider"},
  135. {"mcl_core:reeds", "wine:glass_rum"},
  136. {"mcl_farming:wheat_item", "wine:glass_wheat_beer"},
  137. {"mcl_farming:potato_item_baked", "wine:glass_vodka"},
  138. {
  139. {"mcl_core:apple", "mcl_core:sugar", "vessels:drinking_glass"},
  140. "wine:glass_sparkling_apple_juice"
  141. },
  142. {
  143. {"mcl_farming:carrot_item", "mcl_core:sugar", "vessels:drinking_glass"},
  144. "wine:glass_sparkling_carrot_juice"
  145. }
  146. })
  147. end
  148. -- freezer
  149. -- Mentireta recipe
  150. if minetest.get_modpath("freezer") then
  151. minetest.register_craft({
  152. type = "shapeless",
  153. output = "wine:glass_mentireta",
  154. recipe = {
  155. "wine:glass_coffee_liquor", "freezer:lemon_juice", "default:ice"
  156. },
  157. replacements = {{"freezer:lemon_juice", "vessels:drinking_glass"}}
  158. })
  159. end