lucky_block.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. -- add lucky blocks
  2. if minetest.get_modpath("lucky_block") then
  3. local epath = minetest.get_modpath("ethereal") .. "/schematics/"
  4. lucky_block:add_schematics({
  5. {"pinetree", ethereal.pinetree, {x = 3, y = 0, z = 3}},
  6. {"palmtree", ethereal.palmtree, {x = 4, y = 0, z = 4}},
  7. {"bananatree", ethereal.bananatree, {x = 3, y = 0, z = 3}},
  8. {"orangetree", ethereal.orangetree, {x = 2, y = 0, z = 2}},
  9. {"birchtree", ethereal.birchtree, {x = 2, y = 0, z = 2}}
  10. })
  11. lucky_block:add_blocks({
  12. {"dro", {"ethereal:firethorn"}, 3},
  13. {"dro", {"ethereal:firethorn_jelly"}, 3},
  14. {"nod", "ethereal:crystal_spike", 1},
  15. {"sch", "pinetree", 0, false},
  16. {"dro", {"ethereal:orange"}, 10},
  17. {"sch", "appletree", 0, false},
  18. {"dro", {"ethereal:strawberry"}, 10},
  19. {"sch", "bananatree", 0, false},
  20. {"sch", "orangetree", 0, false},
  21. {"dro", {"ethereal:banana"}, 10},
  22. {"sch", "acaciatree", 0, false},
  23. {"dro", {"ethereal:golden_apple"}, 3},
  24. {"sch", "palmtree", 0, false},
  25. {"dro", {"ethereal:tree_sapling"}, 5},
  26. {"dro", {"ethereal:orange_tree_sapling"}, 5},
  27. {"dro", {"ethereal:banana_tree_sapling"}, 5},
  28. {"dro", {"ethereal:willow_sapling"} ,5},
  29. {"dro", {"ethereal:mushroom_sapling"} ,5},
  30. {"dro", {"ethereal:palm_sapling"} ,5},
  31. {"dro", {"ethereal:flight_potion"}, 1},
  32. {"dro", {"ethereal:birch_sapling"} ,5},
  33. {"dro", {"ethereal:redwood_sapling"} ,1},
  34. {"dro", {"ethereal:prairie_dirt"}, 10},
  35. {"dro", {"ethereal:grove_dirt"}, 10},
  36. {"fal", {"default:lava_source", "default:lava_source", "default:lava_source",
  37. "default:lava_source", "default:lava_source"}, 1, true, 4},
  38. {"dro", {"ethereal:cold_dirt"}, 10},
  39. {"dro", {"ethereal:mushroom_dirt"}, 10},
  40. {"dro", {"ethereal:fiery_dirt"}, 10},
  41. {"dro", {"ethereal:axe_crystal"}},
  42. {"nod", "ethereal:fire_flower", 1},
  43. {"dro", {"ethereal:sword_crystal"}},
  44. {"dro", {"ethereal:pick_crystal"}},
  45. {"sch", "birchtree", 0, false},
  46. {"dro", {"ethereal:fish_raw"}},
  47. {"dro", {"ethereal:shovel_crystal"}},
  48. {"dro", {"ethereal:fishing_rod_baited"}},
  49. {"exp"},
  50. {"dro", {"ethereal:fire_dust"}, 2},
  51. {"exp", 4},
  52. {"dro", {"ethereal:crystal_gilly_staff"}},
  53. {"dro", {"ethereal:light_staff"}},
  54. {"nod", "default:chest", 0, {
  55. {name = "ethereal:birch_sapling", max = 10},
  56. {name = "ethereal:palm_sapling", max = 10},
  57. {name = "ethereal:orange_tree_sapling", max = 10},
  58. {name = "ethereal:redwood_sapling", max = 10},
  59. {name = "ethereal:bamboo_sprout", max = 10},
  60. {name = "ethereal:banana_tree_sapling", max = 10},
  61. {name = "ethereal:mushroom_sapling", max = 10},
  62. {name = "ethereal:frost_tree_sapling", max = 10},
  63. {name = "ethereal:sakura_sapling", max = 10},
  64. {name = "ethereal:willow_sapling", max = 10},
  65. {name = "ethereal:lemon_tree_sapling", max = 10},
  66. {name = "ethereal:olive_tree_sapling", max = 10}
  67. }},
  68. {"flo", 5, {"ethereal:blue_marble_tile"}, 2},
  69. {"dro", {"ethereal:blue_marble", "ethereal:blue_marble_tile"}, 8},
  70. {"dro", {"ethereal:etherium_ore"}, 5},
  71. {"nod", "default:chest", 0, {
  72. {name = "ethereal:fish_bluefin", max = 7},
  73. {name = "ethereal:fish_blueram", max = 7},
  74. {name = "ethereal:fish_catfish", max = 7},
  75. {name = "ethereal:fish_clownfish", max = 7},
  76. {name = "ethereal:fish_pike", max = 7},
  77. {name = "ethereal:fish_flathead", max = 7},
  78. {name = "ethereal:fish_plaice", max = 7},
  79. {name = "ethereal:fish_pufferfish", max = 5},
  80. {name = "ethereal:fish_salmon", max = 7},
  81. {name = "ethereal:fish_cichlid", max = 7},
  82. {name = "ethereal:fish_trout", max =7},
  83. {name = "ethereal:fish_angler", max = 7},
  84. {name = "ethereal:fish_piranha", max = 7},
  85. {name = "ethereal:fishing_rod", max = 1},
  86. {name = "ethereal:worm", max = 10}
  87. }},
  88. {"dro", {"ethereal:lemon"}, 9}
  89. })
  90. if minetest.get_modpath("3d_armor") then
  91. lucky_block:add_blocks({
  92. {"dro", {"3d_armor:helmet_crystal"}},
  93. {"dro", {"3d_armor:chestplate_crystal"}},
  94. {"dro", {"3d_armor:leggings_crystal"}},
  95. {"dro", {"3d_armor:boots_crystal"}},
  96. {"lig"}
  97. })
  98. end
  99. if minetest.get_modpath("shields") then
  100. lucky_block:add_blocks({
  101. {"dro", {"shields:shield_crystal"}},
  102. {"exp"}
  103. })
  104. end
  105. end -- END IF