treasure.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. minetest.register_node("minerdream:treasure1", {
  2. description = "".. core.colorize("#BFFFFF", "Wooden loot crate\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)"),
  3. tiles = {"minerdream_treasure1.png"},
  4. is_ground_content = false,
  5. groups = {cracky = 3, choppy = 3},
  6. drop = {
  7. max_items = 5,
  8. items = {
  9. {
  10. items = {'minerdream:dagger 1'},
  11. rarity = 25,
  12. },
  13. {
  14. items = {'minerdream:treasure2'},
  15. rarity = 15,
  16. },
  17. {
  18. items = {'default:wood 5'},
  19. rarity = 5,
  20. },
  21. {
  22. items = {'default:stick 5'},
  23. rarity = 5,
  24. },
  25. {
  26. items = {'default:torch 10'},
  27. rarity = 5,
  28. },
  29. {
  30. items = {'default:apple 3'},
  31. rarity = 5,
  32. },
  33. {
  34. items = {'minerdream:arrow 10'},
  35. rarity = 5,
  36. },
  37. {
  38. items = {'minerdream:shuriken 15'},
  39. rarity = 5,
  40. },
  41. {
  42. items = {'default:coal_lump 3'},
  43. rarity = 10,
  44. },
  45. {
  46. items = {'minerdream:potassium_lump 3'},
  47. rarity = 10,
  48. },
  49. {
  50. items = {'minerdream:calcium_lump 3'},
  51. rarity = 10,
  52. },
  53. {
  54. items = {'default:flint 2'},
  55. rarity = 10,
  56. },
  57. {
  58. items = {'minerdream:zinc_lump 3'},
  59. rarity = 15,
  60. },
  61. {
  62. items = {'minerdream:nickel_lump 3'},
  63. rarity = 15,
  64. },
  65. {
  66. items = {'default:iron_lump 3'},
  67. rarity = 15,
  68. },
  69. {
  70. items = {'default:copper_lump 3'},
  71. rarity = 15,
  72. },
  73. {
  74. items = {'default:tin_lump 3'},
  75. rarity = 15,
  76. },
  77. }
  78. },
  79. sounds = default.node_sound_wood_defaults(),
  80. })
  81. minetest.register_node("minerdream:treasure2", {
  82. description = "".. core.colorize("#00FFFF", "Sturdy wooden loot crate\n")..core.colorize("#A0A0A0", "tier: 3 (almost rare)"),
  83. tiles = {"minerdream_treasure2.png"},
  84. is_ground_content = false,
  85. groups = {cracky = 2, choppy = 2},
  86. drop = {
  87. max_items = 5,
  88. items = {
  89. {
  90. items = {'minerdream:shortsword 1'},
  91. rarity = 25,
  92. },
  93. {
  94. items = {'minerdream:club 1'},
  95. rarity = 25,
  96. },
  97. {
  98. items = {'minerdream:grenade 1'},
  99. rarity = 5,
  100. },
  101. {
  102. items = {'minerdream:treasure3'},
  103. rarity = 25,
  104. },
  105. {
  106. items = {'minerdream:shuriken 25'},
  107. rarity = 5,
  108. },
  109. {
  110. items = {'default:tree 5'},
  111. rarity = 5,
  112. },
  113. {
  114. items = {'default:wood 5'},
  115. rarity = 5,
  116. },
  117. {
  118. items = {'default:torch 15'},
  119. rarity = 5,
  120. },
  121. {
  122. items = {'minerdream:vitamin 3'},
  123. rarity = 5,
  124. },
  125. {
  126. items = {'minerdream:potion_tiny 1'},
  127. rarity = 5,
  128. },
  129. {
  130. items = {'default:coal_lump 5'},
  131. rarity = 10,
  132. },
  133. {
  134. items = {'default:steel_ingot 3'},
  135. rarity = 10,
  136. },
  137. {
  138. items = {'default:ladder_wood 15'},
  139. rarity = 5,
  140. },
  141. {
  142. items = {'minerdream:lead_lump 3'},
  143. rarity = 15,
  144. },
  145. {
  146. items = {'minerdream:silver_lump 3'},
  147. rarity = 15,
  148. },
  149. {
  150. items = {'default:gold_lump 3'},
  151. rarity = 15,
  152. },
  153. {
  154. items = {'minerdream:lapislazuli_lump 4'},
  155. rarity = 11,
  156. },
  157. {
  158. items = {'default:mese_crystal 3'},
  159. rarity = 15,
  160. },
  161. {
  162. items = {'default:diamond 2'},
  163. rarity = 20,
  164. },
  165. {
  166. items = {'minerdream:arrow 15'},
  167. rarity = 5,
  168. },
  169. }
  170. },
  171. sounds = default.node_sound_wood_defaults(),
  172. })
  173. minetest.register_node("minerdream:treasure3", {
  174. description = "".. core.colorize("#40FF80", "Reinforced wooden loot crate\n")..core.colorize("#A0A0A0", "tier: 4 (rare)"),
  175. tiles = {"minerdream_treasure3.png"},
  176. is_ground_content = false,
  177. groups = {cracky = 1, choppy = 1},
  178. drop = {
  179. max_items = 5,
  180. items = {
  181. {
  182. items = {'minerdream:mace 1'},
  183. rarity = 25,
  184. },
  185. {
  186. items = {'minerdream:treasure4'},
  187. rarity = 30,
  188. },
  189. {
  190. items = {'minerdream:grenade 2'},
  191. rarity = 5,
  192. },
  193. {
  194. items = {'minerdream:throwing_knife 15'},
  195. rarity = 5,
  196. },
  197. {
  198. items = {'default:tree 5'},
  199. rarity = 5,
  200. },
  201. {
  202. items = {'default:torch 25'},
  203. rarity = 5,
  204. },
  205. {
  206. items = {'farming:bread 3'},
  207. rarity = 5,
  208. },
  209. {
  210. items = {'minerdream:potion_tiny 2'},
  211. rarity = 3,
  212. },
  213. {
  214. items = {'default:coal_lump 8'},
  215. rarity = 10,
  216. },
  217. {
  218. items = {'default:steel_ingot 5'},
  219. rarity = 10,
  220. },
  221. {
  222. items = {'minerdream:platinum_lump 3'},
  223. rarity = 15,
  224. },
  225. {
  226. items = {'minerdream:aluminum_lump 3'},
  227. rarity = 15,
  228. },
  229. {
  230. items = {'default:ladder_wood 20'},
  231. rarity = 5,
  232. },
  233. {
  234. items = {'minerdream:arrow 20'},
  235. rarity = 5,
  236. },
  237. }
  238. },
  239. sounds = default.node_sound_wood_defaults(),
  240. })
  241. minetest.register_node("minerdream:treasure4", {
  242. description = "".. core.colorize("#0040FF", "Well-reinforced wooden loot crate\n")..core.colorize("#A0A0A0", "tier: 5 (extra rare)"),
  243. tiles = {"minerdream_treasure4.png"},
  244. is_ground_content = false,
  245. groups = {cracky = 4, choppy = 1},
  246. drop = {
  247. max_items = 5,
  248. items = {
  249. {
  250. items = {'minerdream:revolver'},
  251. rarity = 25,
  252. },
  253. {
  254. items = {'minerdream:claymore'},
  255. rarity = 20,
  256. },
  257. {
  258. items = {'minerdream:treasure5'},
  259. rarity = 20,
  260. },
  261. {
  262. items = {'minerdream:throwing_knife 25'},
  263. rarity = 5,
  264. },
  265. {
  266. items = {'minerdream:grenade 3'},
  267. rarity = 5,
  268. },
  269. {
  270. items = {'default:torch 35'},
  271. rarity = 5,
  272. },
  273. {
  274. items = {'farming:bread 5'},
  275. rarity = 5,
  276. },
  277. {
  278. items = {'minerdream:potion_lesser 1'},
  279. rarity = 3,
  280. },
  281. {
  282. items = {'default:coal_lump 10'},
  283. rarity = 10,
  284. },
  285. {
  286. items = {'minerdream:bituminous_coal 5'},
  287. rarity = 15,
  288. },
  289. {
  290. items = {'default:steel_ingot 8'},
  291. rarity = 10,
  292. },
  293. {
  294. items = {'minerdream:stainlesssteel_bar 3'},
  295. rarity = 15,
  296. },
  297. {
  298. items = {'minerdream:cobalt_lump 3'},
  299. rarity = 15,
  300. },
  301. {
  302. items = {'minerdream:ruthenium_lump 3'},
  303. rarity = 15,
  304. },
  305. {
  306. items = {'minerdream:amethyst 1'},
  307. rarity = 15,
  308. },
  309. {
  310. items = {'minerdream:garnet 1'},
  311. rarity = 15,
  312. },
  313. {
  314. items = {'minerdream:jade 1'},
  315. rarity = 15,
  316. },
  317. {
  318. items = {'default:ladder_wood 25'},
  319. rarity = 5,
  320. },
  321. {
  322. items = {'minerdream:arrow 25'},
  323. rarity = 5,
  324. },
  325. {
  326. items = {'minerdream:bullet 25'},
  327. rarity = 7,
  328. },
  329. }
  330. },
  331. sounds = default.node_sound_wood_defaults(),
  332. })
  333. minetest.register_node("minerdream:treasure5", {
  334. description = "".. core.colorize("#00FF00", "Steel loot crate\n")..core.colorize("#A0A0A0", "tier: 6 (epic)"),
  335. tiles = {"minerdream_treasure5.png"},
  336. is_ground_content = false,
  337. groups = {cracky = 5},
  338. drop = {
  339. max_items = 5,
  340. items = {
  341. {
  342. items = {'minerdream:shotgun'},
  343. rarity = 25,
  344. },
  345. {
  346. items = {'minerdream:katana'},
  347. rarity = 20,
  348. },
  349. {
  350. items = {'minerdream:treasure5'},
  351. rarity = 25,
  352. },
  353. {
  354. items = {'minerdream:throwing_knife 30'},
  355. rarity = 5,
  356. },
  357. {
  358. items = {'minerdream:grenade 4'},
  359. rarity = 5,
  360. },
  361. {
  362. items = {'default:torch 50'},
  363. rarity = 5,
  364. },
  365. {
  366. items = {'farming:bread 7'},
  367. rarity = 5,
  368. },
  369. {
  370. items = {'minerdream:potion_lesser 2'},
  371. rarity = 3,
  372. },
  373. {
  374. items = {'minerdream:bituminous_coal 8'},
  375. rarity = 10,
  376. },
  377. {
  378. items = {'default:steel_ingot 10'},
  379. rarity = 10,
  380. },
  381. {
  382. items = {'minerdream:stainlesssteel_bar 4'},
  383. rarity = 13,
  384. },
  385. {
  386. items = {'minerdream:rhodium_lump 3'},
  387. rarity = 15,
  388. },
  389. {
  390. items = {'minerdream:tantalum_lump 3'},
  391. rarity = 15,
  392. },
  393. {
  394. items = {'minerdream:onyx 1'},
  395. rarity = 15,
  396. },
  397. {
  398. items = {'minerdream:spinel 1'},
  399. rarity = 15,
  400. },
  401. {
  402. items = {'minerdream:topaz 1'},
  403. rarity = 15,
  404. },
  405. {
  406. items = {'minerdream:aquamarine 1'},
  407. rarity = 15,
  408. },
  409. {
  410. items = {'default:ladder_wood 30'},
  411. rarity = 5,
  412. },
  413. {
  414. items = {'minerdream:arrow 30'},
  415. rarity = 5,
  416. },
  417. {
  418. items = {'minerdream:bullet 30'},
  419. rarity = 7,
  420. },
  421. }
  422. },
  423. sounds = default.node_sound_wood_defaults(),
  424. })