items.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. ---------mob drops----------------
  2. minetest.register_craftitem('minerdream:slimeball_green', {
  3. description = "Green ball of slime",
  4. inventory_image = "minerdream_slimeball_green.png",
  5. stack_max= 1000,
  6. })
  7. minetest.register_craftitem('minerdream:slimeball_blue', {
  8. description = "Blue ball of slime",
  9. inventory_image = "minerdream_slimeball_blue.png",
  10. stack_max= 1000,
  11. })
  12. minetest.register_craftitem('minerdream:slimeball_red', {
  13. description = "Red ball of slime",
  14. inventory_image = "minerdream_slimeball_red.png",
  15. stack_max= 1000,
  16. })
  17. minetest.register_craftitem('minerdream:slimeball_yellow', {
  18. description = "Yellow ball of slime",
  19. inventory_image = "minerdream_slimeball_yellow.png",
  20. stack_max= 1000,
  21. })
  22. minetest.register_craftitem('minerdream:slimeball_purple', {
  23. description = "Purple ball of slime",
  24. inventory_image = "minerdream_slimeball_purple.png",
  25. stack_max= 1000,
  26. })
  27. minetest.register_craftitem('minerdream:slimeball_brown', {
  28. description = "Brown ball of slime",
  29. inventory_image = "minerdream_slimeball_brown.png",
  30. stack_max= 1000,
  31. })
  32. ---------------------materials---------------
  33. minetest.register_craftitem('minerdream:expensivestick', {
  34. description = "Expensive stick",
  35. inventory_image = "minerdream_expensivestick.png",
  36. stack_max= 1000,
  37. })
  38. minetest.register_craftitem('minerdream:steelstick', {
  39. description = "Stainless steel stick",
  40. inventory_image = "minerdream_steelstick.png",
  41. stack_max= 1000,
  42. })
  43. minetest.register_craftitem('minerdream:sulfur_powder', {
  44. description = "Sulfur powder",
  45. inventory_image = "minerdream_sulfur_powder.png",
  46. stack_max= 1000,
  47. })
  48. minetest.register_craftitem('minerdream:saltpeter_powder', {
  49. description = "Saltpeter powder",
  50. inventory_image = "minerdream_saltpeter_powder.png",
  51. stack_max= 1000,
  52. })
  53. -----------------ores----------------
  54. minetest.register_craftitem('minerdream:brass_nugget', {
  55. description = "".. core.colorize("#FFFFFF", "brass nugget\n")..core.colorize("#A0A0A0", "4 of those, can be combined into a bar"),
  56. inventory_image = "minerdream_brass_nugget.png",
  57. stack_max= 1000,
  58. })
  59. minetest.register_craftitem('minerdream:gold_nugget', {
  60. description = "".. core.colorize("#FFFFFF", "Raw gold nugget\n")..core.colorize("#A0A0A0", "4 of those, can be combined into a lump"),
  61. inventory_image = "minerdream_gold_nugget.png",
  62. stack_max= 1000,
  63. })
  64. minetest.register_craftitem('minerdream:rhodium_lump', {
  65. description = "".. core.colorize("#00FF00", "Rhodium lump\n")..core.colorize("#A0A0A0", "tier: 6 (epic)"),
  66. inventory_image = "minerdream_rhodium_lump.png",
  67. stack_max= 1000,
  68. })
  69. minetest.register_craftitem('minerdream:tantalum_lump', {
  70. description = "".. core.colorize("#00FF00", "Tantalum lump\n")..core.colorize("#A0A0A0", "tier: 6 (epic)"),
  71. inventory_image = "minerdream_tantalum_lump.png",
  72. stack_max= 1000,
  73. })
  74. minetest.register_craftitem('minerdream:bituminous_coal', {
  75. description = "".. core.colorize("#0040FF", "Bituminous coal lump\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  76. inventory_image = "minerdream_bituminous_coal.png",
  77. stack_max= 1000,
  78. })
  79. minetest.register_craftitem('minerdream:ruthenium_lump', {
  80. description = "".. core.colorize("#0040FF", "Ruthenium lump\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  81. inventory_image = "minerdream_ruthenium_lump.png",
  82. stack_max= 1000,
  83. })
  84. minetest.register_craftitem('minerdream:cobalt_lump', {
  85. description = "".. core.colorize("#0040FF", "Cobalt lump\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  86. inventory_image = "minerdream_cobalt_lump.png",
  87. stack_max= 1000,
  88. })
  89. minetest.register_craftitem('minerdream:platinum_lump', {
  90. description = "".. core.colorize("#40FF80", "Platinum lump\n")..core.colorize("#A0A0A0", "tier: 4 (rare)"),
  91. inventory_image = "minerdream_platinum_lump.png",
  92. stack_max= 1000,
  93. })
  94. minetest.register_craftitem('minerdream:aluminum_lump', {
  95. description = "".. core.colorize("#40FF80", "Aluminum lump\n")..core.colorize("#A0A0A0", "tier: 4 (rare)"),
  96. inventory_image = "minerdream_aluminum_lump.png",
  97. stack_max= 1000,
  98. })
  99. minetest.register_craftitem('minerdream:lead_lump', {
  100. description = "".. core.colorize("#00FFFF", "lead lump\n")..core.colorize("#A0A0A0", "tier: 3 (almost rare)"),
  101. inventory_image = "minerdream_lead_lump.png",
  102. stack_max= 1000,
  103. })
  104. minetest.register_craftitem('minerdream:lapislazuli_lump', {
  105. description = "".. core.colorize("#BFFFFF", "Lapis lazuli lump\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  106. inventory_image = "minerdream_lapislazuli_lump.png",
  107. stack_max= 1000,
  108. })
  109. minetest.register_craftitem('minerdream:sulfur_lump', {
  110. description = "".. core.colorize("#BFFFFF", "Sulfur lump\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  111. inventory_image = "minerdream_sulfur_lump.png",
  112. stack_max= 1000,
  113. })
  114. minetest.register_craftitem('minerdream:saltpeter_lump', {
  115. description = "".. core.colorize("#BFFFFF", "Saltpeter lump\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  116. inventory_image = "minerdream_saltpeter_lump.png",
  117. stack_max= 1000,
  118. })
  119. minetest.register_craftitem('minerdream:zinc_lump', {
  120. description = "".. core.colorize("#BFFFFF", "zinc lump\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  121. inventory_image = "minerdream_zinc_lump.png",
  122. stack_max= 1000,
  123. })
  124. minetest.register_craftitem('minerdream:silver_lump', {
  125. description = "".. core.colorize("#00FFFF", "Silver lump\n")..core.colorize("#A0A0A0", "tier: 3 (almost rare)"),
  126. inventory_image = "minerdream_silver_lump.png",
  127. stack_max= 1000,
  128. })
  129. minetest.register_craftitem('minerdream:calcium_lump', {
  130. description = "".. core.colorize("#FFFFFF", "Calcium lump\n")..core.colorize("#A0A0A0", "tier: 1 (common)"),
  131. inventory_image = "minerdream_calcium_lump.png",
  132. stack_max= 1000,
  133. })
  134. minetest.register_craftitem('minerdream:potassium_lump', {
  135. description = "".. core.colorize("#FFFFFF", "Potassium lump\n")..core.colorize("#A0A0A0", "tier: 1 (common)"),
  136. inventory_image = "minerdream_potassium_lump.png",
  137. stack_max= 1000,
  138. })
  139. minetest.register_craftitem('minerdream:nickel_lump', {
  140. description = "".. core.colorize("#BFFFFF", "Nickel lump\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  141. inventory_image = "minerdream_nickel_lump.png",
  142. stack_max= 1000,
  143. })
  144. ---------------refined goods-----------------
  145. minetest.register_craftitem('minerdream:rhodium_bar', {
  146. description = "".. core.colorize("#00FF00", "Rhodium bar\n")..core.colorize("#A0A0A0", "tier: 6 (epic)"),
  147. inventory_image = "minerdream_rhodium_bar.png",
  148. stack_max= 250,
  149. })
  150. minetest.register_craftitem('minerdream:tantalum_bar', {
  151. description = "".. core.colorize("#00FF00", "Tantalum bar\n")..core.colorize("#A0A0A0", "tier: 6 (epic)"),
  152. inventory_image = "minerdream_tantalum_bar.png",
  153. stack_max= 250,
  154. })
  155. minetest.register_craftitem('minerdream:ruthenium_bar', {
  156. description = "".. core.colorize("#0040FF", "Ruthenium bar\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  157. inventory_image = "minerdream_ruthenium_bar.png",
  158. stack_max= 250,
  159. })
  160. minetest.register_craftitem('minerdream:cobalt_bar', {
  161. description = "".. core.colorize("#0040FF", "Cobalt bar\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  162. inventory_image = "minerdream_cobalt_bar.png",
  163. stack_max= 250,
  164. })
  165. minetest.register_craftitem('minerdream:platinum_bar', {
  166. description = "".. core.colorize("#40FF80", "Platinum bar\n")..core.colorize("#A0A0A0", "tier: 4 (rare)"),
  167. inventory_image = "minerdream_platinum_bar.png",
  168. stack_max= 250,
  169. })
  170. minetest.register_craftitem('minerdream:aluminum_bar', {
  171. description = "".. core.colorize("#40FF80", "Aluminum bar\n")..core.colorize("#A0A0A0", "tier: 4 (rare)"),
  172. inventory_image = "minerdream_aluminum_bar.png",
  173. stack_max= 250,
  174. })
  175. minetest.register_craftitem('minerdream:stainlesssteel_bar', {
  176. description = "".. core.colorize("#BFFFFF", "Stainless steel bar\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  177. inventory_image = "minerdream_stainlesssteel_bar.png",
  178. stack_max= 250,
  179. })
  180. minetest.register_craftitem('minerdream:brass_bar', {
  181. description = "".. core.colorize("#BFFFFF", "brass bar\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  182. inventory_image = "minerdream_brass_bar.png",
  183. stack_max= 250,
  184. })
  185. minetest.register_craftitem('minerdream:zinc_bar', {
  186. description = "".. core.colorize("#BFFFFF", "zinc bar\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  187. inventory_image = "minerdream_zinc_bar.png",
  188. stack_max= 250,
  189. })
  190. minetest.register_craftitem('minerdream:lead_bar', {
  191. description = "".. core.colorize("#00FFFF", "lead bar\n")..core.colorize("#A0A0A0", "tier: 3 (almost rare)"),
  192. inventory_image = "minerdream_lead_bar.png",
  193. stack_max= 250,
  194. })
  195. minetest.register_craftitem('minerdream:calcium_bar', {
  196. description = "".. core.colorize("#FFFFFF", "Calcium bar\n")..core.colorize("#A0A0A0", "tier: 1 (common)"),
  197. inventory_image = "minerdream_calcium_bar.png",
  198. stack_max= 250,
  199. })
  200. minetest.register_craftitem('minerdream:potassium_bar', {
  201. description = "".. core.colorize("#FFFFFF", "Potassium bar\n")..core.colorize("#A0A0A0", "tier: 1 (common)"),
  202. inventory_image = "minerdream_potassium_bar.png",
  203. stack_max= 250,
  204. })
  205. minetest.register_craftitem('minerdream:nickel_bar', {
  206. description = "".. core.colorize("#BFFFFF", "Nickel bar\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  207. inventory_image = "minerdream_nickel_bar.png",
  208. stack_max= 250,
  209. })
  210. minetest.register_craftitem('minerdream:silver_bar', {
  211. description = "".. core.colorize("#00FFFF", "Silver bar\n")..core.colorize("#A0A0A0", "tier: 3 (almost rare)"),
  212. inventory_image = "minerdream_silver_bar.png",
  213. stack_max= 250,
  214. })
  215. ------------------consumables----------------
  216. minetest.register_craftitem("minerdream:vitamin", {
  217. description = "".. core.colorize("#FFFFFF", "Vitamin pill\n")..core.colorize("#A0A0A0", "Consumable\n")..core.colorize("#A0A0A0", "Restores 3 hp"),
  218. wield_scale = {x=0.25,y=0.25,z=0.5},
  219. inventory_image = "minerdream_pill.png",
  220. on_use = minetest.item_eat(3),
  221. })
  222. minetest.register_craftitem("minerdream:potion_tiny", {
  223. description = "".. core.colorize("#FFFFFF", "Tiny healing potion\n")..core.colorize("#A0A0A0", "Consumable\n")..core.colorize("#A0A0A0", "Restores 5 hp"),
  224. wield_scale = {x=0.75,y=0.75,z=0.75},
  225. inventory_image = "minerdream_potion_tiny.png",
  226. on_use = minetest.item_eat(5),
  227. })
  228. minetest.register_craftitem("minerdream:potion_lesser", {
  229. description = "".. core.colorize("#FFFFFF", "Lesser healing potion\n")..core.colorize("#A0A0A0", "Consumable\n")..core.colorize("#A0A0A0", "Restores 10 hp"),
  230. wield_scale = {x=0.75,y=0.75,z=0.75},
  231. inventory_image = "minerdream_potion_lesser.png",
  232. on_use = minetest.item_eat(10),
  233. })
  234. minetest.register_craftitem("minerdream:potion_normal", {
  235. description = "".. core.colorize("#FFFFFF", " Healing potion\n")..core.colorize("#A0A0A0", "Consumable\n")..core.colorize("#A0A0A0", "Restores 15 hp"),
  236. wield_scale = {x=0.75,y=0.75,z=0.75},
  237. inventory_image = "minerdream_potion_normal.png",
  238. on_use = minetest.item_eat(15),
  239. })
  240. minetest.register_craftitem("minerdream:potion_greater", {
  241. description = "".. core.colorize("#FFFFFF", "Greater healing potion\n")..core.colorize("#A0A0A0", "Consumable\n")..core.colorize("#A0A0A0", "Restores 20 hp"),
  242. wield_scale = {x=0.75,y=0.75,z=0.75},
  243. inventory_image = "minerdream_potion_greater.png",
  244. on_use = minetest.item_eat(20),
  245. })