lb_schems.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. -- Generate schematics
  2. local air = {name = "air"}
  3. local san = {name = "default:sand"}
  4. local sst = {name = "default:sandstone"}
  5. local ssb = {name = "default:sandstonebrick"}
  6. local luc = {name = "lucky_block:lucky_block"}
  7. local lav = {name = "default:lava_source"}
  8. local dir = {name = "default:dirt"}
  9. local sow = {name = "farming:soil_wet"}
  10. local wat = {name = "default:water_source"}
  11. local whe = {name = "farming:wheat_8"}
  12. local cot = {name = "farming:cotton_8"}
  13. local obg = {name = "default:obsidian_glass"}
  14. local fir = {name = "fire:basic_flame"}
  15. local obs = {name = "default:obsidian"}
  16. local platform = {
  17. size = {x = 5, y = 3, z = 5},
  18. data = {
  19. sst, sst, sst, sst, sst,
  20. ssb, ssb, ssb, ssb, ssb,
  21. ssb, ssb, ssb, ssb, ssb,
  22. sst, sst, sst, sst, sst,
  23. ssb, luc, air, luc, ssb,
  24. ssb, air, air, air, ssb,
  25. sst, sst, sst, sst, sst,
  26. ssb, air, air, air, ssb,
  27. ssb, air, air, air, ssb,
  28. sst, sst, sst, sst, sst,
  29. ssb, luc, air, luc, ssb,
  30. ssb, air, air, air, ssb,
  31. sst, sst, sst, sst, sst,
  32. ssb, ssb, ssb, ssb, ssb,
  33. ssb, ssb, ssb, ssb, ssb
  34. }
  35. }
  36. local insta_farm = {
  37. size = {x = 5, y = 3, z = 3},
  38. data = {
  39. dir, dir, dir, dir, dir,
  40. sow, sow, sow, sow, sow,
  41. cot, cot, cot, cot, cot,
  42. sow, dir, dir, dir, sow,
  43. sow, wat, wat, wat, sow,
  44. cot, air, air, air, whe,
  45. dir, dir, dir, dir, san,
  46. sow, sow, sow, sow, sow,
  47. whe, whe, whe, whe, whe
  48. }
  49. }
  50. local lava_trap = {
  51. size = {x = 3, y = 6, z = 3},
  52. data = {
  53. lav, lav, lav,
  54. air, air, air,
  55. air, air, air,
  56. air, air, air,
  57. air, air, air,
  58. air, air, air,
  59. lav, lav, lav,
  60. air, air, air,
  61. air, air, air,
  62. air, air, air,
  63. air, air, air,
  64. air, air, air,
  65. lav, lav, lav,
  66. air, air, air,
  67. air, air, air,
  68. air, air, air,
  69. air, air, air,
  70. air, air, air
  71. }
  72. }
  73. local sand_trap = {
  74. size = {x = 3, y = 3, z = 3},
  75. data = {
  76. san, san, san,
  77. san, san, san,
  78. san, san, san,
  79. san, san, san,
  80. san, san, san,
  81. san, san, san,
  82. san, san, san,
  83. san, san, san,
  84. san, san, san
  85. }
  86. }
  87. local water_trap = {
  88. size = {x = 3, y = 3, z = 3},
  89. data = {
  90. obg, obg, obg,
  91. obg, obg, obg,
  92. obg, obg, obg,
  93. obg, obg, obg,
  94. obg, wat, obg,
  95. obg, obg, obg,
  96. obg, obg, obg,
  97. obg, obg, obg,
  98. obg, obg, obg
  99. }
  100. }
  101. local fire_trap = {
  102. size = {x = 3, y = 3, z = 3},
  103. data = {
  104. fir, fir, fir,
  105. fir, fir, fir,
  106. fir, fir, fir,
  107. fir, fir, fir,
  108. fir, fir, fir,
  109. fir, fir, fir,
  110. fir, fir, fir,
  111. fir, fir, fir,
  112. fir, fir, fir
  113. }
  114. }
  115. local obsidian_trap = {
  116. size = {x = 3, y = 3, z = 3},
  117. data = {
  118. obs, obs, obs,
  119. obs, obs, obs,
  120. obs, obs, obs,
  121. obs, air, obs,
  122. obs, air, obs,
  123. obs, lav, obs,
  124. obs, obs, obs,
  125. obs, obs, obs,
  126. obs, obs, obs
  127. }
  128. }
  129. -- add schematics to list
  130. lucky_block:add_schematics({
  131. {"watertrap", water_trap, {x = 1, y = 0, z = 1}},
  132. {"sandtrap", sand_trap, {x = 1, y = 0, z = 1}},
  133. {"lavatrap", lava_trap, {x = 1, y = 5, z = 1}},
  134. {"platform", platform, {x = 2, y = 1, z = 2}},
  135. {"instafarm", insta_farm, {x = 2, y = 2, z = 1}},
  136. {"firetrap", fire_trap, {x = 1, y = 0, z = 1}},
  137. {"obsidiantrap", obsidian_trap, {x = 1, y = 0, z = 1}}
  138. })