craftice.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. -- get Boilerplate for Translations
  2. local S = cannabis.S
  3. minetest.register_craftitem("cannabis:canapa_ice_seed", {
  4. description = S("Hemp Seed"),
  5. inventory_image = "cannabis_canapa_ice_seed.png",
  6. groups = {seed = 2, food_artichoke = 1, flammable = 2},
  7. on_place = function(itemstack, placer, pointed_thing)
  8. return farming.place_seed(itemstack, placer, pointed_thing, "cannabis:canapa_ice")
  9. end,
  10. on_use = minetest.item_eat(10),
  11. })
  12. minetest.register_craftitem("cannabis:canapa_ice_leaves", {
  13. description = S("Hemp Leaves"),
  14. inventory_image = "cannabis_canapa_ice_leaves.png",
  15. on_use = minetest.item_eat(5),
  16. })
  17. minetest.register_craftitem("cannabis:canapa_ice_flower", {
  18. description = S("Hemp ice Flower"),
  19. inventory_image = "cannabis_canapa_ice_flower.png",
  20. on_use = minetest.item_eat(5),
  21. })
  22. -------------------------------------------------------------------
  23. minetest.register_craft({
  24. output = "cannabis:canapa_oil 4 ",
  25. recipe = {
  26. {"","",""},
  27. {"","",""},
  28. {"cannabis:canapa_ice_flower","cannabis:canapa_ice_raisin","cannabis:canapa_ice_flower"},
  29. }
  30. })
  31. minetest.register_craft({
  32. output = "cannabis:canapa_fuel 4 ",
  33. recipe ={
  34. {"cannabis:canapa_ice","cannabis:canapa_ice",""},
  35. {"cannabis:canapa_ice","cannabis:canapa_ice",""},
  36. {"cannabis:canapa_ice","cannabis:canapa_ice",""},
  37. }
  38. })
  39. minetest.register_craft({
  40. output = "cannabis:canapa_plastic 8 ",
  41. recipe ={
  42. {"cannabis:canapa_ice","cannabis:canapa_ice","cannabis:canapa_ice"},
  43. {"cannabis:canapa_ice","cannabis:canapa_ice","cannabis:canapa_ice"},
  44. }
  45. })
  46. minetest.register_craft({
  47. output = "cannabis:canapa_glue 10 ",
  48. recipe = {
  49. {"cannabis:canapa_ice_plastic","cannabis:canapa_ice_raisin","cannabis:canapa_ice_plastic"},
  50. {"cannabis:canapa_ice_raisin","cannabis:canapa_ice_oil","cannabis:canapa_ice_raisin"},
  51. {"cannabis:canapa_ice_plastic","cannabis:canapa_ice_raisin","cannabis:canapa_ice_plastic"},
  52. }
  53. })
  54. minetest.register_craft({
  55. output = "cannabis:hp_block_canapa 4 ",
  56. recipe = {
  57. {"cannabis:canapa_ice_fiber","cannabis:canapa_ice_glue","cannabis:canapa_ice_fiber"},
  58. {"cannabis:canapa_ice_glue","cannabis:canapa_ice_fiber","cannabis:canapa_ice_glue"},
  59. {"cannabis:canapa_ice_fiber","cannabis:canapa_ice_glue","cannabis:canapa_ice_fiber"},
  60. }
  61. })
  62. minetest.register_craft({
  63. output = "cannabis:canapa_raisin 3 ",
  64. recipe = {
  65. {"","",""},
  66. {"","",""},
  67. {"cannabis:canapa_ice_flower","cannabis:canapa_ice_flower",""},
  68. }
  69. })
  70. minetest.register_craft({
  71. output = "cannabis:climbing_i",
  72. recipe = {
  73. {"cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves"},
  74. {"cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves"},
  75. {"cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves","cannabis:canapa_ice_leaves"},
  76. }
  77. })
  78. minetest.register_craft({
  79. output = "cannabis:canapa_ice_seed 10 ",
  80. recipe = {
  81. {"cannabis:canapa_ice","",""},
  82. {"","cannabis:canapa_ice",""},
  83. {"","","cannabis:canapa_ice"},
  84. }
  85. })
  86. minetest.register_craft({
  87. output = "cannabis:canapa_fiber 10 ",
  88. recipe = {
  89. {"","","cannabis:canapa_ice"},
  90. {"","cannabis:canapa_ice",""},
  91. {"cannabis:canapa_ice","",""},
  92. }
  93. })
  94. minetest.register_craft({
  95. output = "cannabis:canapa_paper 6 ",
  96. recipe = {
  97. {"cannabis:canapa_ice", "cannabis:canapa_ice", "cannabis:canapa_ice"
  98. },
  99. }
  100. })
  101. minetest.register_craft({
  102. type = "fuel",
  103. recipe = "cannabis:canapa_ice",
  104. burntime = 15,
  105. })
  106. minetest.register_craft({
  107. type = "shapeless",
  108. output = "cannabis:canapa_ice_flour 4",
  109. recipe = {"cannabis:canapa_ice_seed", "cannabis:canapa_ice_seed", "cannabis:canapa_ice_seed", "cannabis:canapa_ice_seed"}
  110. })
  111. minetest.register_craft({
  112. type = "cooking",
  113. cooktime = 10,
  114. output = "cannabis:canapa_bread",
  115. recipe = "cannabis:canapa_flour"
  116. })
  117. minetest.register_craft({
  118. output = "cannabis:cannabis_foglie_ice_block",
  119. recipe = {
  120. {"cannabis:climbing_i","cannabis:climbing_i","cannabis:climbing_i"},
  121. {"cannabis:climbing_i","cannabis:climbing_i","cannabis:climbing_i"},
  122. {"cannabis:climbing_i","cannabis:climbing_i","cannabis:climbing_i"},
  123. }
  124. })
  125. minetest.register_craft({
  126. type = "shapeless",
  127. output = "cannabis:mixed_hr_ingot 3",
  128. recipe = {"cannabis:fibra_ingot", "cannabis:foglie_ingot", "cannabis:tessuto_ingot"}
  129. })
  130. minetest.register_craft({
  131. type = "shapeless",
  132. output = "cannabis:climbing_i 9",
  133. recipe = {"cannabis:cannabis_foglie_ice_block", "", ""}
  134. })