lb_mineclone.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. local S = lucky_block.intllib
  2. local tmp -- helper
  3. -- chest items
  4. lucky_block:add_chest_items({
  5. {name = "mcl_core:wood", max = 5},
  6. {name = "mcl_core:apple", max = 3},
  7. {name = "mcl_core:iron_ingot", max = 3},
  8. {name = "mcl_core:gold_ingot", max = 3, chance = 2},
  9. {name = "mcl_core:diamond", max = 2, chance = 3},
  10. {name = "mcl_core:pick_iron", max = 1, chance = 2, min_wear = 20000, max_wear = 65536}
  11. })
  12. local mpath = minetest.get_modpath("mcl_core") .. "/schematics/"
  13. -- Default tree schematics
  14. lucky_block:add_schematics({
  15. {"oaktree1", mpath .. "mcl_core_oak_large_1.mts", {x = 2, y = 1, z = 2}},
  16. -- {"oaktree2", mpath .. "mcl_core_oak_large_2.mts", {x = 1, y = 1, z = 1}},
  17. -- {"oaktree3", mpath .. "mcl_core_oak_large_3.mts", {x = 1, y = 1, z = 1}},
  18. -- {"oaktree4", mpath .. "mcl_core_oak_large_4.mts", {x = 1, y = 1, z = 1}},
  19. -- {"oaktreeclassic", mpath .. "mcl_core_oak_classic.mts", {x = 1, y = 1, z = 1}},
  20. {"oaktreeswamp", mpath .. "mcl_core_oak_swamp.mts", {x = 3, y = 1, z = 3}},
  21. {"mangrovetree1", mpath .. "mcl_mangrove_tree_1.mts", {x = 3, y = 1, z = 3}},
  22. -- {"mangrovetree2", mpath .. "mcl_mangrove_tree_2.mts", {x = 1, y = 1, z = 1}},
  23. -- {"mangrovetree3", mpath .. "mcl_mangrove_tree_3.mts", {x = 1, y = 1, z = 1}},
  24. -- {"mangrovetree4", mpath .. "mcl_mangrove_tree_4.mts", {x = 1, y = 1, z = 1}},
  25. -- {"mangrovetree5", mpath .. "mcl_mangrove_tree_5.mts", {x = 1, y = 1, z = 1}},
  26. {"jungletree", mpath .. "mcl_core_jungle_tree.mts", {x = 2, y = 1, z = 2}},
  27. {"sprucetree1", mpath .. "mcl_core_spruce_huge_1.mts", {x = 5, y = 1, z = 5}},
  28. -- {"sprucetree2", mpath .. "mcl_core_spruce_huge_2.mts", {x = 1, y = 1, z = 1}},
  29. -- {"sprucetree3", mpath .. "mcl_core_spruce_huge_3.mts", {x = 1, y = 1, z = 1}},
  30. -- {"sprucetree4", mpath .. "mcl_core_spruce_huge_4.mts", {x = 1, y = 1, z = 1}},
  31. {"birchtree", mpath .. "mcl_core_birch.mts", {x = 2, y = 1, z = 2}},
  32. {"birchtreetall", mpath .. "mcl_core_birch_tall.mts", {x = 3, y = 1, z = 3}},
  33. {"darkoaktree", mpath .. "mcl_core_dark_oak.mts", {x = 5, y = 1, z = 5}},
  34. {"brownmushroom1", mpath .. "mcl_mushrooms_huge_brown.mts", {x = 3, y = 1, z = 3}},
  35. -- {"brownmushroom2", mpath .. "mcl_mushrooms_giant_brown.mts", {x = 1, y = 1, z = 1}},
  36. {"redmushroom1", mpath .. "mcl_mushrooms_huge_red.mts", {x = 3, y = 1, z = 3}},
  37. -- {"redmushroom2", mpath .. "mcl_mushrooms_giant_red.mts", {x = 1, y = 1, z = 1}}
  38. })
  39. -- mineclone tree's
  40. lucky_block:add_blocks({
  41. {"sch", "oaktree1", 0, false},
  42. {"sch", "oaktreeswamp", 0, false},
  43. {"sch", "mangrovetree1", 0, false},
  44. {"sch", "jungletree", 0, false},
  45. {"sch", "sprucetree1", 0, false},
  46. {"sch", "birchtree", 0, false},
  47. {"sch", "birchtreetall", 0, false},
  48. {"sch", "darkoaktree", 0, false},
  49. {"sch", "brownmushroom1", 0, false},
  50. {"sch", "redmushroom1", 0, false}
  51. })
  52. -- mineclone lucky blocks
  53. lucky_block:add_blocks({
  54. {"nod", "mcl_chests_small:chest", 0, {
  55. {name = "mcl_core:glass_red", max = 5},
  56. {name = "mcl_core:glass_green", max = 5},
  57. {name = "mcl_core:glass_blue", max = 5},
  58. {name = "mcl_core:glass_light_blue", max = 5},
  59. {name = "mcl_core:glass_black", max = 5},
  60. {name = "mcl_core:glass_white", max = 5},
  61. {name = "mcl_core:glass_brown", max = 5},
  62. {name = "mcl_core:glass_yellow", max = 5},
  63. {name = "mcl_core:glass_orange", max = 5},
  64. {name = "mcl_core:glass_pink", max = 5},
  65. {name = "mcl_core:glass_gray", max = 5},
  66. {name = "mcl_core:glass_lime", max = 5},
  67. {name = "mcl_core:glass_silver", max = 5},
  68. {name = "mcl_core:glass_magenta", max = 5},
  69. {name = "mcl_core:glass_purple", max = 5},
  70. {name = "mcl_core:glass_cyan", max = 5},
  71. {name = "mcl_core:glass_glass", max = 10}
  72. }},
  73. {"lig"},
  74. {"fal", {
  75. "mcl_core:wood", "mcl_core:gravel", "mcl_core:sand",
  76. "mcl_core:sand", "mcl_core:stone", "mcl_core:dirt", "mcl_core:goldblock"
  77. }, 0},
  78. {"sch", "watertrap", 1, true, {
  79. {"default:water_source", "mcl_core:water_source"},
  80. {"default:obsidian_glass", "mcl_core:glass"}
  81. }},
  82. {"tel"},
  83. {"dro", {"mcl_core:apple"}, 10},
  84. {"dro", {"mcl_core:snow"}, 10},
  85. {"sch", "sandtrap", 1, true, {
  86. {"default:sand", "mcl_core:sand"}
  87. }},
  88. {"sch", "lavatrap", 1, true, {
  89. {"default:lava_source", "mcl_core:lava_source"}
  90. }},
  91. {"exp", 2},
  92. {"nod", "mcl_core:diamondblock", 0},
  93. {"nod", "mcl_core:ironblock", 0},
  94. {"nod", "mcl_core:dirt", 0},
  95. {"nod", "mcl_chests:chest_small", 0, {
  96. {name = "mcl_core:dirt", max = 15},
  97. {name = "mcl_core:mycelium", max = 15},
  98. {name = "mcl_core:podzol", max = 15},
  99. {name = "mcl_core:coarse_dirt", max = 15},
  100. {name = "mcl_core:dirt_with_grass", max = 15},
  101. }},
  102. {"dro", {"default:sword_steel"}},
  103. {"sch", "jungletree", 0, false},
  104. {"dro", {
  105. "mcl_core:axe_iron", "mcl_core:pick_iron",
  106. "mcl_core:shovel_iron", "mcl_core:sword_iron"
  107. }},
  108. {"exp", 2},
  109. {"dro", {"mcl_core:coal_lump"}, 3},
  110. {"tro", "mcl_core:diamondblock", "tnt_explode", true},
  111. {"exp", 3},
  112. {"nod", "mcl_chests:chest_small", 0, {
  113. {name = "mcl_core:acaciasapling", max = 10},
  114. {name = "mcl_core:darksapling", max = 10},
  115. {name = "mcl_core:birchsapling", max = 10},
  116. {name = "mcl_core:junglesapling", max = 10},
  117. {name = "mcl_core:sapling", max = 10},
  118. {name = "mcl_core:sprucesapling", max = 10},
  119. {name = "mcl_core:deadbush", max = 5},
  120. }},
  121. {"sch", "platform", 1, true, {
  122. {"default:sandstone", "mcl_core:sandstone"},
  123. {"default:sandstonebrick", "mcl_core:sandstone"}
  124. }},
  125. {"nod", "mcl_core:wood", 0},
  126. {"nod", "mcl_core:gravel", 0},
  127. {"sch", "sandtrap", 1, true, {{"default:sand", "mcl_core:gravel"}} },
  128. {"sch", "obsidiantrap", 1, true, {
  129. {"default:obsidian", "mcl_core:obsidian"},
  130. {"default:lava_source", "mcl_core:lava_source"}
  131. }},
  132. {"lig"},
  133. {"nod", "mcl_chests:chest_small", 0, {
  134. {name = "mcl_core:wood", max = 10},
  135. {name = "mcl_core:acaciawood", max = 10},
  136. {name = "mcl_core:darkwood", max = 10},
  137. {name = "mcl_core:junglewood", max = 10},
  138. {name = "mcl_core:birchwood", max = 10},
  139. {name = "mcl_core:sprucewood", max = 10},
  140. }},
  141. {"nod", "mcl_chests:chest_small", 0, {
  142. {name = "mcl_core:tree", max = 10},
  143. {name = "mcl_core:acaciatree", max = 10},
  144. {name = "mcl_core:darktree", max = 10},
  145. {name = "mcl_core:jungletree", max = 10},
  146. {name = "mcl_core:birchtree", max = 10},
  147. {name = "mcl_core:sprucetree", max = 10},
  148. }},
  149. {"dro", {"mcl_core:sand"}, 20},
  150. {"dro", {"mcl_core:gravel"}, 15},
  151. {"nod", "mcl_chests:chest_small", 0, {
  152. {name = "mcl_core:sand", max = 20},
  153. {name = "mcl_core:sandstone", max = 20},
  154. {name = "mcl_core:gravel", max = 20},
  155. }},
  156. {"tel", 10, 5},
  157. {"dro", {"mcl_core:obsidian"}, 14}
  158. })
  159. -- Additional Wishing Well Styles
  160. lucky_block:add_blocks({
  161. {"sch", "wishingwell", 0, true, {
  162. {"default:stonebrick", "mcl_core:sandstone"},
  163. {"stairs:slab_stonebrick", "mcl_stairs:slab_sandstone"},
  164. {"default:fence_wood", "mcl_fences:fence"},
  165. {"default:steelblock", "mcl_core:ironblock"},
  166. {"default:glass", "mcl_core:glass"}
  167. }}
  168. })
  169. -- mcl_crafting_table
  170. if minetest.get_modpath("mcl_crafting_table") then
  171. lucky_block:add_blocks({
  172. {"nod", "mcl_crafting_table:crafting_table", 0},
  173. {"dro", {"mcl_crafting_table:crafting_table"}, 1}
  174. })
  175. end
  176. -- mcl_dye
  177. if minetest.get_modpath("mcl_dye") then
  178. lucky_block:add_blocks({
  179. {"dro", {"mcl_dye:"}, 10, true}
  180. })
  181. end
  182. -- mcl_buckets
  183. if minetest.get_modpath("mcl_buckets") then
  184. lucky_block:add_blocks({
  185. {"dro", {"mcl_buckets:bucket_empty"}, 5},
  186. {"dro", {"mcl_buckets:bucket_lava"}},
  187. {"dro", {"mcl_buckets:bucket_water"}},
  188. {"dro", {"mcl_buckets:bucket_cod"}},
  189. {"dro", {"mcl_buckets:bucket_salmon"}},
  190. {"nod", "mcl_core:water_source", 1}
  191. })
  192. end
  193. -- mcl_books
  194. if minetest.get_modpath("mcl_books") then
  195. lucky_block:add_blocks({
  196. {"nod", "mcl_books:bookshelf"},
  197. {"dro", {"mcl_books:bookshelf", "mcl_books:book", "mcl_core:paper"}, 5},
  198. })
  199. end
  200. -- mcl_wool
  201. if minetest.get_modpath("mcl_wool") then
  202. lucky_block:add_blocks({
  203. {"sch", "sandtrap", 1, true, {{"default:sand", "mcl_wool:red"}} },
  204. {"dro", {"mcl_wool:"}, 10, true},
  205. {"sch", "sandtrap", 1, true, {{"default:sand", "mcl_wool:green"}} },
  206. {"dro", {"mcl_wool:white"}, 10}
  207. })
  208. end
  209. -- mcl_flowers
  210. if minetest.get_modpath("mcl_flowers") then
  211. tmp = "mcl_flowers:"
  212. lucky_block:add_blocks({
  213. {"dro", {
  214. tmp.."tallgrass", tmp.."peony", tmp.."sunflower", tmp.."double_grass",
  215. tmp.."double_fern", tmp.."fern", tmp.."waterlily", tmp.."poppy",
  216. tmp.."dandelion", tmp.."oxeye_daisy", tmp.."tulip_orange",
  217. tmp.."tulip_pink", tmp.."tulip_red", tmp.."tulip_white",
  218. tmp.."allium", tmp.."azure_bluet", tmp.."blue_orchid"
  219. }, 12},
  220. {"nod", "mcl_chests:chest_small", 0, {
  221. {name = tmp.."tallgrass", max = 10},
  222. {name = tmp.."peony", max = 10},
  223. {name = tmp.."sunflower", max = 10},
  224. {name = tmp.."double_grass", max = 10},
  225. {name = tmp.."double_fern", max = 10},
  226. {name = tmp.."fern", max = 10},
  227. {name = tmp.."waterlily", max = 10},
  228. {name = tmp.."poppy", max = 10},
  229. {name = tmp.."dandelion", max = 10},
  230. {name = tmp.."oxeye_daisy", max = 10},
  231. {name = tmp.."tulip_orange", max = 10},
  232. {name = tmp.."tulip_pink", max = 10},
  233. {name = tmp.."tulip_white", max = 10},
  234. {name = tmp.."tulip_red", max = 10},
  235. {name = tmp.."allium", max = 10},
  236. {name = tmp.."azure_bluet", max = 10},
  237. {name = tmp.."blue_orchid", max = 10}
  238. }}
  239. })
  240. end
  241. -- mcl_hoppers
  242. if minetest.get_modpath("mcl_hoppers") then
  243. lucky_block:add_blocks({
  244. {"dro", {"mcl_hoppers:hopper"}}
  245. })
  246. end
  247. -- mcl_doors
  248. if minetest.get_modpath("mcl_doors") then
  249. lucky_block:add_blocks({
  250. {"dro", {"mcl_doors:wooden_door"}},
  251. {"dro", {"mcl_doors:acacia_door"}},
  252. {"dro", {"mcl_doors:birch_door"}},
  253. {"dro", {"mcl_doors:dark_oak_door"}},
  254. {"dro", {"mcl_doors:jungle_door"}},
  255. {"dro", {"mcl_doors:spruce_door"}},
  256. {"dro", {"mcl_doors:iron_door"}},
  257. {"dro", {"mcl_doors:wooden_trapdoor"}},
  258. {"dro", {"mcl_doors:acacia_trapdoor"}},
  259. {"dro", {"mcl_doors:birch_trapdoor"}},
  260. {"dro", {"mcl_doors:dark_oak_trapdoor"}},
  261. {"dro", {"mcl_doors:jungle_trapdoor"}},
  262. {"dro", {"mcl_doors:spruce_trapdoor"}},
  263. {"dro", {"mcl_doors:iron_trapdoor"}}
  264. })
  265. end
  266. -- mcl_fences
  267. if minetest.get_modpath("mcl_fences") then
  268. tmp = "mcl_fences:"
  269. lucky_block:add_blocks({
  270. {"dro", {
  271. tmp.."fence", tmp.."spruce_fence", tmp.."birch_fence",
  272. tmp.."jungle_fence", tmp.."dark_oak_fence", tmp.."acacia_fence"
  273. }, 10},
  274. {"dro", {
  275. tmp.."fence_gate", tmp.."spruce_fence_gate", tmp.."birch_fence_gate",
  276. tmp.."jungle_fence_gate", tmp.."dark_oak_fence_gate", tmp.."acacia_fence_gate"
  277. }, 5}
  278. })
  279. end
  280. -- Screwdriver mod
  281. if minetest.get_modpath("screwdriver") then
  282. if screwdriver and screwdriver.handler then
  283. minetest.register_tool(":screwdriver:screwdriver_magenta", {
  284. description = S("Super Mega Magenta Ultra Screwdriver 2500"
  285. .. "\n(left-click to rotate face, right-click to rotates axis)"),
  286. inventory_image = "screwdriver.png^[colorize:#ff009970",
  287. groups = {not_in_creative_inventory = 1},
  288. on_use = function(itemstack, user, pointed_thing)
  289. screwdriver.handler(itemstack, user, pointed_thing,
  290. screwdriver.ROTATE_FACE, 2500)
  291. return itemstack
  292. end,
  293. on_place = function(itemstack, user, pointed_thing)
  294. screwdriver.handler(itemstack, user, pointed_thing,
  295. screwdriver.ROTATE_AXIS, 2500)
  296. return itemstack
  297. end
  298. })
  299. end
  300. lucky_block:add_blocks({
  301. {"dro", {"screwdriver:screwdriver"}},
  302. {"dro", {"screwdriver:screwdriver_magenta"}},
  303. })
  304. end
  305. -- mcl_farming
  306. if minetest.get_modpath("mcl_farming") then
  307. lucky_block:add_blocks({
  308. {"dro", {"mcl_farming:beetroot_item"}, 5},
  309. {"dro", {"mcl_farming:carrot_item"}, 5},
  310. {"dro", {"mcl_farming:melon_item"}, 5},
  311. {"dro", {"mcl_farming:potato_item"}, 5},
  312. {"dro", {"mcl_farming:potato_item_baked"}, 5},
  313. {"dro", {"mcl_farming:potato_item_poison"}, 3},
  314. {"nod", "mcl_farming:pumpkin"},
  315. {"dro", {"mcl_farming:pumpkin_pie"}, 3},
  316. {"dro", {"mcl_farming:wheat_item"}, 10},
  317. {"dro", {"mcl_farming:bread"}, 5},
  318. {"dro", {"mcl_farming:cookie"}, 5},
  319. {"exp", 2},
  320. {"nod", "mcl_farming:hay_block"},
  321. {"dro", {"mcl_farming:hay_block"}, 4},
  322. {"nod", "mcl_core:water_source", 1},
  323. {"sch", "instafarm", 0, true, {
  324. {"farming:soil_wet", "mcl_farming:soil_wet"},
  325. {"default:dirt", "mcl_core:dirt"},
  326. {"default:water_source", "mcl_core:water_source"},
  327. {"farming:wheat_8", "mcl_farming:wheat"},
  328. {"farming:cotton_8", "mcl_farming:carrot"}
  329. }},
  330. {"sch", "instafarm", 0, true, {
  331. {"farming:soil_wet", "mcl_farming:soil_wet"},
  332. {"default:dirt", "mcl_core:dirt"},
  333. {"default:water_source", "mcl_core:water_source"},
  334. {"farming:wheat_8", "mcl_farming:potato"},
  335. {"farming:cotton_8", "mcl_farming:beetroot"}
  336. }},
  337. {"nod", "mcl_chests:chest_small", 0, {
  338. {name = "mcl_farming:beetroot_seeds", max = 10},
  339. {name = "mcl_farming:melon_seeds", max = 10},
  340. {name = "mcl_farming:pumpkin_seeds", max = 10},
  341. {name = "mcl_farming:wheat_seeds", max = 10},
  342. {name = "mcl_farming:wheat_item", max = 10},
  343. {name = "mcl_farming:melon", max = 2},
  344. {name = "mcl_farming:pumpkin", max = 2}
  345. }}
  346. })
  347. end
  348. -- mcl_boats
  349. if minetest.get_modpath("mcl_boats") then
  350. lucky_block:add_blocks({
  351. {"dro", {"mcl_boats:boat"}},
  352. {"nod", "mcl_core:water_source", 0}
  353. })
  354. end
  355. -- mcl_beds
  356. if minetest.get_modpath("mcl_beds") then
  357. lucky_block:add_blocks({
  358. {"dro", {"mcl_beds:bed_"}, 1, true}
  359. })
  360. end
  361. -- mcl_walls
  362. if minetest.get_modpath("mcl_walls") then
  363. lucky_block:add_blocks({
  364. {"dro", {"mcl_walls:cobble"}, 10},
  365. {"dro", {"mcl_walls:mossycobble"}, 10},
  366. {"dro", {"mcl_walls:andesite"}, 10},
  367. {"dro", {"mcl_walls:granite"}, 10},
  368. {"dro", {"mcl_walls:diorite"}, 10},
  369. {"dro", {"mcl_walls:brick"}, 10},
  370. {"dro", {"mcl_walls:sandstone"}, 10},
  371. {"dro", {"mcl_walls:redsandstone"}, 10},
  372. {"dro", {"mcl_walls:stonebrick"}, 10},
  373. {"dro", {"mcl_walls:stonebrickmossy"}, 10},
  374. {"dro", {"mcl_walls:prismarine"}, 10},
  375. {"dro", {"mcl_walls:endbricks"}, 10},
  376. {"dro", {"mcl_walls:netherbrick"}, 10},
  377. {"dro", {"mcl_walls:rednetherbrick"}, 10},
  378. {"dro", {"mcl_walls:mudbrick"}, 10},
  379. {"flo", 3, {"mcl_core:lava_source"}, 1}
  380. })
  381. end
  382. -- mcl_minecarts
  383. if minetest.get_modpath("mcl_minecarts") then
  384. lucky_block:add_blocks({
  385. {"dro", {"mcl_minecarts:minecart"}},
  386. {"dro", {"mcl_minecarts:chest_minecart"}},
  387. {"dro", {"mcl_minecarts:rail"}, 10},
  388. {"dro", {"mcl_minecarts:golden_rail"}, 5},
  389. {"dro", {"mcl_minecarts:activator_rail"}, 5},
  390. {"dro", {"mcl_minecarts:detector_rail"}, 5}
  391. })
  392. end
  393. -- mcl_armor
  394. if minetest.get_modpath("mcl_armor") then
  395. tmp = "mcl_armor:"
  396. lucky_block:add_blocks({
  397. {"dro", {
  398. tmp.."leather_helmet", tmp.."leather_chestplate",
  399. tmp.."leather_leggings", tmp.."leather_boots"
  400. }, 1},
  401. {"dro", {
  402. tmp.."gold_helmet", tmp.."gold_chestplate",
  403. tmp.."gold_leggings", tmp.."gold_boots"
  404. }, 1},
  405. {"dro", {
  406. tmp.."chain_helmet", tmp.."chain_chestplate",
  407. tmp.."chain_leggings", tmp.."chain_boots"
  408. }, 1},
  409. {"dro", {
  410. tmp.."iron_helmet", tmp.."iron_chestplate",
  411. tmp.."iron_leggings", tmp.."iron_boots"
  412. }, 1},
  413. {"dro", {
  414. tmp.."diamond_helmet", tmp.."diamond_chestplate",
  415. tmp.."diamond_leggings", tmp.."diamond_boots"
  416. }, 1},
  417. {"dro", {
  418. tmp.."netherite_helmet", tmp.."netherite_chestplate",
  419. tmp.."netherite_leggings", tmp.."netherite_boots"
  420. }, 1}
  421. })
  422. end
  423. -- mcl_fire
  424. if minetest.get_modpath("mcl_fire") then
  425. lucky_block:add_blocks({
  426. {"dro", {"mcl_fire:flint_and_steel"}},
  427. {"nod", "mcl_fire:fire", 1},
  428. {"nod", "mcl_fire:eternal_fire", 1},
  429. {"sch", "firetrap", 1, true, { {"fire:basic_flame", "mcl_fire:fire"} }},
  430. })
  431. end
  432. -- mcl_tnt
  433. if minetest.get_modpath("mcl_tnt") then
  434. lucky_block:add_blocks({
  435. {"dro", {"mcl_mobitems:gunpowder"}, 5},
  436. {"spw", {"mcl_tnt:tnt"}, 4, nil, nil, 2},
  437. {"nod", "mcl_tnt:tnt", 0},
  438. {"spw", {"mcl_tnt:tnt"}, 6, nil, nil, 5},
  439. })
  440. end
  441. -- mobs_mc
  442. if minetest.get_modpath("mobs_mc") then
  443. lucky_block:add_blocks({
  444. --{"spw", {"entity name"}, how many to spawn, tamed, owned, range, nametag}
  445. {"spw", {"mobs_mc:bat"}, 3, nil, nil, 5, nil},
  446. {"spw", {"mobs_mc:chicken"}, 4, nil, nil, 5, "Chicken Squad"},
  447. {"spw", {"mobs_mc:creeper"}, 1, nil, nil, 3, "Mr. Boombastic"},
  448. {"spw", {"mobs_mc:parrot"}, 4, nil, nil, 5, "Parrot Party"},
  449. {"spw", {"mobs_mc:sheep"}, 1, true, true, 5, nil},
  450. {"spw", {"mobs_mc:silverfish"}, 5, nil, nil, 5, nil},
  451. {"spw", {"mobs_mc:spider"}, 3, nil, nil, 5, nil},
  452. {"spw", {"mobs_mc:witch"}, 1, nil, nil, 3, "Ezmerelda"},
  453. {"spw", {"mobs_mc:wolf"}, 2, nil, nil, 3, nil},
  454. {"spw", {"mobs_mc:zombie"}, 3, nil, nil, 5, nil},
  455. {"spw", {"mobs_mc:pig"}, 2, nil, nil, 5, nil}
  456. })
  457. end
  458. -- mcl_mobitems
  459. if minetest.get_modpath("mcl_mobitems") then
  460. tmp = "mcl_mobitems:"
  461. lucky_block:add_blocks({
  462. {"dro", {tmp.."rotten_flesh"}, 10},
  463. {"dro", {tmp.."mutton", tmp.."cooked_mutton"}, 10},
  464. {"dro", {tmp.."beef", tmp.."cooked_beef"}, 10},
  465. {"dro", {tmp.."chicken", tmp.."cooked_chicken"}, 10},
  466. {"dro", {tmp.."porkchop", tmp.."cooked_porkchop"}, 10},
  467. {"dro", {tmp.."rabbit", tmp.."cooked_rabbit"}, 10},
  468. {"dro", {tmp.."milk_bucket", tmp.."spider_eye"}, 10},
  469. {"dro", {tmp.."bone", tmp.."string"}, 10},
  470. {"exp", 4},
  471. {"dro", {tmp.."blaze_rod", tmp.."blaze_powder"}, 4},
  472. {"dro", {tmp.."magma_tear", tmp.."ghast_tear"}, 2},
  473. {"dro", {tmp.."leather", tmp.."feather"}, 5},
  474. {"dro", {tmp.."saddle"}},
  475. {"dro", {tmp.."iron_horse_armor"}},
  476. {"dro", {tmp.."gold_horse_armor"}},
  477. {"dro", {tmp.."diamond_horse_armor"}}
  478. })
  479. end
  480. -- mcl_potions
  481. if minetest.get_modpath("mcl_potions") then
  482. tmp = "mcl_potions:"
  483. lucky_block:add_blocks({
  484. {"dro", {tmp.."awkward", tmp.."healing"}, 1},
  485. {"dro", {tmp.."mundane", tmp.."night_vision"}, 1},
  486. {"dro", {tmp.."slowness", tmp.."swiftness"}, 1},
  487. {"dro", {tmp.."poison", tmp.."leaping"}, 1},
  488. {"dro", {tmp.."invisibility", tmp.."regeneration"}, 1},
  489. {"dro", {tmp.."water_breathing", tmp.."fire_resistance"}, 1}
  490. })
  491. end
  492. -- mcl_torches
  493. if minetest.get_modpath("mcl_torches") then
  494. lucky_block:add_blocks({
  495. {"dro", {"mcl_torches:torch"}, 5},
  496. {"nod", "mcl_torches:torch", 1}
  497. })
  498. end
  499. -- mcl_cake
  500. if minetest.get_modpath("mcl_cake") then
  501. lucky_block:add_blocks({
  502. {"dro", {"mcl_cake:cake"}, 3},
  503. {"nod", "mcl_cake:cake", 0},
  504. {"nod", "mcl_cake:cake_1", 0},
  505. {"nod", "mcl_cake:cake_2", 0},
  506. {"nod", "mcl_cake:cake_3", 0},
  507. {"nod", "mcl_cake:cake_4", 0},
  508. {"nod", "mcl_cake:cake_5", 0},
  509. {"nod", "mcl_cake:cake_6", 0},
  510. {"lig"}
  511. })
  512. end
  513. -- mcl_fishing
  514. if minetest.get_modpath("mcl_fishing") then
  515. tmp = "mcl_fishing:"
  516. lucky_block:add_blocks({
  517. {"dro", {tmp.."fishing_rod"}, 1},
  518. {"dro", {tmp.."salmon_raw", tmp.."salmon_cooked"}, 5},
  519. {"dro", {tmp.."clownfish_raw", tmp.."pufferfish_raw"}, 5},
  520. })
  521. end
  522. -- mcl_nether
  523. if minetest.get_modpath("mcl_nether") then
  524. tmp = "mcl_nether:"
  525. lucky_block:add_blocks({
  526. {"flo", 3, {tmp.."glowstone"}, 1},
  527. {"flo", 3, {tmp.."quartz_ore"}, 1},
  528. {"flo", 3, {tmp.."netheriteblock"}, 1},
  529. {"flo", 3, {tmp.."netherrack", tmp.."soul_sand"}, 1},
  530. {"flo", 3, {tmp.."magma"}, 1},
  531. {"flo", 5, {
  532. tmp.."quartz_block", tmp.."quartz_chiseled", tmp.."quartz_smooth"
  533. }, 2},
  534. })
  535. end