lucky_block.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 = 1, y = 0, z = 1}},
  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:birch_sapling"} ,5},
  32. {"dro", {"ethereal:redwood_sapling"} ,1},
  33. {"dro", {"ethereal:prairie_dirt"}, 10},
  34. {"dro", {"ethereal:grove_dirt"}, 10},
  35. {"fal", {"default:lava_source", "default:lava_source", "default:lava_source",
  36. "default:lava_source", "default:lava_source"}, 1, true, 4},
  37. {"dro", {"ethereal:cold_dirt"}, 10},
  38. {"dro", {"ethereal:mushroom_dirt"}, 10},
  39. {"dro", {"ethereal:fiery_dirt"}, 10},
  40. {"dro", {"ethereal:axe_crystal"}},
  41. {"nod", "ethereal:fire_flower", 1},
  42. {"dro", {"ethereal:sword_crystal"}},
  43. {"dro", {"ethereal:pick_crystal"}},
  44. {"sch", "birchtree", 0, false},
  45. {"dro", {"ethereal:fish_raw"}},
  46. {"dro", {"ethereal:shovel_crystal"}},
  47. {"dro", {"ethereal:fishing_rod_baited"}},
  48. {"exp"},
  49. {"dro", {"ethereal:fire_dust"}, 2},
  50. {"exp", 4},
  51. {"dro", {"ethereal:crystal_gilly_staff"}},
  52. {"dro", {"ethereal:light_staff"}},
  53. {"nod", "default:chest", 0, {
  54. {name = "ethereal:birch_sapling", max = 10},
  55. {name = "ethereal:palm_sapling", max = 10},
  56. {name = "ethereal:orange_tree_sapling", max = 10},
  57. {name = "ethereal:redwood_sapling", max = 10},
  58. {name = "ethereal:bamboo_sprout", max = 10},
  59. {name = "ethereal:banana_tree_sapling", max = 10},
  60. {name = "ethereal:mushroom_sapling", max = 10},
  61. {name = "ethereal:frost_tree_sapling", max = 10},
  62. {name = "ethereal:sakura_sapling", max = 10},
  63. {name = "ethereal:willow_sapling", max = 10},
  64. }},
  65. })
  66. if minetest.get_modpath("3d_armor") then
  67. lucky_block:add_blocks({
  68. {"dro", {"3d_armor:helmet_crystal"}},
  69. {"dro", {"3d_armor:chestplate_crystal"}},
  70. {"dro", {"3d_armor:leggings_crystal"}},
  71. {"dro", {"3d_armor:boots_crystal"}},
  72. {"lig"},
  73. })
  74. end
  75. if minetest.get_modpath("shields") then
  76. lucky_block:add_blocks({
  77. {"dro", {"shields:shield_crystal"}},
  78. {"exp"},
  79. })
  80. end
  81. end -- END IF