Advertisement
florilu

ExtraBiomesGenMod Pyramid Source

Jun 26th, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**You dont have the permission to use this source by yourself! The rights are reserved by florilu so if you would like to use it, you have to ask him if you are allowed to. So if you post a mod that uses the same source I will say there is a abuse of the permission. If you do, please give me credits.*/
  2.  
  3. //_______________________________________________________________________________________________________
  4. //The comments are in german
  5. package net.minecraft.src;
  6.  
  7. import java.util.Random;
  8. import java.io.PrintStream;
  9.  
  10. public class WorldGenPyramid extends WorldGenerator
  11. {
  12. public WorldGenPyramid()
  13. {
  14.  
  15. }
  16.  
  17. public boolean generate(World world, Random rand, int x, int y, int z)
  18. {
  19. if(world.getBlockId(x, y, z)!= Block.sand.blockID || world.getBlockId(x, y + 1, z)!= 0)
  20. {
  21. return false;
  22. }
  23. int block = Block.sandStone.blockID;
  24. int glow = Block.glowStone.blockID;
  25. int shelf = Block.bookShelf.blockID;
  26. //Boden Anfang
  27. world.setBlockWithNotify(x, y, z, block);
  28. world.setBlockWithNotify(x, y, z + 1, block);
  29. world.setBlockWithNotify(x, y, z + 2, block);
  30. world.setBlockWithNotify(x, y, z + 3, block);
  31. world.setBlockWithNotify(x, y, z + 4, block);
  32. world.setBlockWithNotify(x, y, z + 5, block); //Mitte
  33. world.setBlockWithNotify(x, y, z + 6, block);
  34. world.setBlockWithNotify(x + 1, y, z + 4, block);
  35. world.setBlockWithNotify(x + 1, y, z + 5, block);
  36. world.setBlockWithNotify(x + 1, y, z + 6, block);
  37. world.setBlockWithNotify(x - 1, y, z + 4, block);
  38. world.setBlockWithNotify(x - 1, y, z + 5, block);
  39. world.setBlockWithNotify(x - 1, y, z + 6, block);
  40. world.setBlockWithNotify(x, y + 1, z + 5, Block.enchantmentTable.blockID);
  41. //Boden Ende
  42. //Regalring Ring 1 von 2 Anfang
  43. world.setBlockWithNotify(x + 1, y + 1, z + 3, shelf);
  44. world.setBlockWithNotify(x + 2, y + 1, z + 3, shelf);
  45. world.setBlockWithNotify(x + 2, y + 1, z + 4, shelf);
  46. world.setBlockWithNotify(x + 2, y + 1, z + 5, shelf);
  47. world.setBlockWithNotify(x + 2, y + 1, z + 6, shelf);
  48. world.setBlockWithNotify(x + 2, y + 1, z + 7, shelf);
  49. world.setBlockWithNotify(x + 1, y + 1, z + 7, shelf);
  50. world.setBlockWithNotify(x, y + 1, z + 7, shelf);
  51. world.setBlockWithNotify(x - 1, y + 1, z + 7, shelf);
  52. world.setBlockWithNotify(x - 2, y + 1, z + 7, shelf);
  53. world.setBlockWithNotify(x - 2, y + 1, z + 6, shelf);
  54. world.setBlockWithNotify(x - 2, y + 1, z + 5, shelf);
  55. world.setBlockWithNotify(x - 2, y + 1, z + 4, shelf);
  56. world.setBlockWithNotify(x - 2, y + 1, z + 3, shelf);
  57. world.setBlockWithNotify(x - 1, y + 1, z + 3, shelf);
  58. //Regalring Ring 1 von 2 Ende
  59. //Regalring Ring 2 von 2 Anfang
  60. world.setBlockWithNotify(x + 1, y + 2, z + 3, shelf);
  61. world.setBlockWithNotify(x + 2, y + 2, z + 3, shelf);
  62. world.setBlockWithNotify(x + 2, y + 2, z + 4, shelf);
  63. world.setBlockWithNotify(x + 2, y + 2, z + 5, shelf);
  64. world.setBlockWithNotify(x + 2, y + 2, z + 6, shelf);
  65. world.setBlockWithNotify(x + 2, y + 2, z + 7, shelf);
  66. world.setBlockWithNotify(x + 1, y + 2, z + 7, shelf);
  67. world.setBlockWithNotify(x, y + 2, z + 7, shelf);
  68. world.setBlockWithNotify(x - 1, y + 2, z + 7, shelf);
  69. world.setBlockWithNotify(x - 2, y + 2, z + 7, shelf);
  70. world.setBlockWithNotify(x - 2, y + 2, z + 6, shelf);
  71. world.setBlockWithNotify(x - 2, y + 2, z + 5, shelf);
  72. world.setBlockWithNotify(x - 2, y + 2, z + 4, shelf);
  73. world.setBlockWithNotify(x - 2, y + 2, z + 3, shelf);
  74. world.setBlockWithNotify(x - 1, y + 2, z + 3, shelf);
  75. //Regalring Ring 2 von 2 Ende
  76. //glowstonering anfang
  77. world.setBlockWithNotify(x + 1, y + 3, z + 3, glow);
  78. world.setBlockWithNotify(x + 2, y + 3, z + 3, glow);
  79. world.setBlockWithNotify(x + 2, y + 3, z + 4, glow);
  80. world.setBlockWithNotify(x + 2, y + 3, z + 5, glow);
  81. world.setBlockWithNotify(x + 2, y + 3, z + 6, glow);
  82. world.setBlockWithNotify(x + 2, y + 3, z + 7, glow);
  83. world.setBlockWithNotify(x + 1, y + 3, z + 7, glow);
  84. world.setBlockWithNotify(x, y + 3, z + 7, glow);
  85. world.setBlockWithNotify(x - 1, y + 3, z + 7, glow);
  86. world.setBlockWithNotify(x - 2, y + 3, z + 7, glow);
  87. world.setBlockWithNotify(x - 2, y + 3, z + 6, glow);
  88. world.setBlockWithNotify(x - 2, y + 3, z + 5, glow);
  89. world.setBlockWithNotify(x - 2, y + 3, z + 4, glow);
  90. world.setBlockWithNotify(x - 2, y + 3, z + 3, glow);
  91. world.setBlockWithNotify(x - 1, y + 3, z + 3, glow);
  92. //Glowstonering Ende
  93. //Aussenseite Anfang 1. Ring
  94. world.setBlockWithNotify(x + 1, y + 1, z, block);
  95. world.setBlockWithNotify(x + 2, y + 1, z, block);
  96. world.setBlockWithNotify(x + 3, y + 1, z, block);
  97. world.setBlockWithNotify(x + 4, y + 1, z, block);
  98. world.setBlockWithNotify(x + 5, y + 1, z, block);
  99. world.setBlockWithNotify(x + 5, y + 1, z + 1, block);
  100. world.setBlockWithNotify(x + 5, y + 1, z + 2, block);
  101. world.setBlockWithNotify(x + 5, y + 1, z + 3, block);
  102. world.setBlockWithNotify(x + 5, y + 1, z + 4, block);
  103. world.setBlockWithNotify(x + 5, y + 1, z + 5, block);
  104. world.setBlockWithNotify(x + 5, y + 1, z + 6, block);
  105. world.setBlockWithNotify(x + 5, y + 1, z + 7, block);
  106. world.setBlockWithNotify(x + 5, y + 1, z + 8, block);
  107. world.setBlockWithNotify(x + 5, y + 1, z + 9, block);
  108. world.setBlockWithNotify(x + 5, y + 1, z + 10, block);
  109. world.setBlockWithNotify(x + 4, y + 1, z + 10, block);
  110. world.setBlockWithNotify(x + 3, y + 1, z + 10, block);
  111. world.setBlockWithNotify(x + 2, y + 1, z + 10, block);
  112. world.setBlockWithNotify(x + 1, y + 1, z + 10, block);
  113. world.setBlockWithNotify(x, y + 1, z + 10, block);
  114. world.setBlockWithNotify(x - 1, y + 1, z + 10, block);
  115. world.setBlockWithNotify(x - 2, y + 1, z + 10, block);
  116. world.setBlockWithNotify(x - 3, y + 1, z + 10, block);
  117. world.setBlockWithNotify(x - 4, y + 1, z + 10, block);
  118. world.setBlockWithNotify(x - 5, y + 1, z + 10, block);
  119. world.setBlockWithNotify(x - 5, y + 1, z + 9, block);
  120. world.setBlockWithNotify(x - 5, y + 1, z + 8, block);
  121. world.setBlockWithNotify(x - 5, y + 1, z + 7, block);
  122. world.setBlockWithNotify(x - 5, y + 1, z + 6, block);
  123. world.setBlockWithNotify(x - 5, y + 1, z + 5, block);
  124. world.setBlockWithNotify(x - 5, y + 1, z + 4, block);
  125. world.setBlockWithNotify(x - 5, y + 1, z + 3, block);
  126. world.setBlockWithNotify(x - 5, y + 1, z + 2, block);
  127. world.setBlockWithNotify(x - 5, y + 1, z + 1, block);
  128. world.setBlockWithNotify(x - 5, y + 1, z, block);
  129. world.setBlockWithNotify(x - 4, y + 1, z, block);
  130. world.setBlockWithNotify(x - 3, y + 1, z, block);
  131. world.setBlockWithNotify(x - 2, y + 1, z, block);
  132. world.setBlockWithNotify(x - 1, y + 1, z, block);
  133. //Aussenseite Ende 1. Ring
  134. //Aussenseite Anfang 2. Ring
  135. world.setBlockWithNotify(x + 1, y + 2, z + 1, block);
  136. world.setBlockWithNotify(x + 2, y + 2, z + 1, block);
  137. world.setBlockWithNotify(x + 3, y + 2, z + 1, block);
  138. world.setBlockWithNotify(x + 4, y + 2, z + 1, block);
  139. world.setBlockWithNotify(x + 4, y + 2, z + 2, block);
  140. world.setBlockWithNotify(x + 4, y + 2, z + 3, block);
  141. world.setBlockWithNotify(x + 4, y + 2, z + 4, block);
  142. world.setBlockWithNotify(x + 4, y + 2, z + 5, block);
  143. world.setBlockWithNotify(x + 4, y + 2, z + 6, block);
  144. world.setBlockWithNotify(x + 4, y + 2, z + 6, block);
  145. world.setBlockWithNotify(x + 4, y + 2, z + 7, block);
  146. world.setBlockWithNotify(x + 4, y + 2, z + 8, block);
  147. world.setBlockWithNotify(x + 4, y + 2, z + 9, block);
  148. world.setBlockWithNotify(x + 3, y + 2, z + 9, block);
  149. world.setBlockWithNotify(x + 2, y + 2, z + 9, block);
  150. world.setBlockWithNotify(x + 1, y + 2, z + 9, block);
  151. world.setBlockWithNotify(x, y + 2, z + 9, block);
  152. world.setBlockWithNotify(x - 1, y + 2, z + 9, block);
  153. world.setBlockWithNotify(x - 2, y + 2, z + 9, block);
  154. world.setBlockWithNotify(x - 3, y + 2, z + 9, block);
  155. world.setBlockWithNotify(x - 4, y + 2, z + 9, block);
  156. world.setBlockWithNotify(x - 4, y + 2, z + 8, block);
  157. world.setBlockWithNotify(x - 4, y + 2, z + 7, block);
  158. world.setBlockWithNotify(x - 4, y + 2, z + 6, block);
  159. world.setBlockWithNotify(x - 4, y + 2, z + 5, block);
  160. world.setBlockWithNotify(x - 4, y + 2, z + 4, block);
  161. world.setBlockWithNotify(x - 4, y + 2, z + 3, block);
  162. world.setBlockWithNotify(x - 4, y + 2, z + 2, block);
  163. world.setBlockWithNotify(x - 4, y + 2, z + 1, block);
  164. world.setBlockWithNotify(x - 3, y + 2, z + 1, block);
  165. world.setBlockWithNotify(x - 2, y + 2, z + 1, block);
  166. world.setBlockWithNotify(x - 1, y + 2, z + 1, block);
  167. //Aussenseite Ende 2. Ring
  168. //Aussenseite Anfang 3. Ring
  169. world.setBlockWithNotify(x + 1, y + 3, z + 2, block);
  170. world.setBlockWithNotify(x + 2, y + 3, z + 2, block);
  171. world.setBlockWithNotify(x + 3, y + 3, z + 2, block);
  172. world.setBlockWithNotify(x + 3, y + 3, z + 3, block);
  173. world.setBlockWithNotify(x + 3, y + 3, z + 4, block);
  174. world.setBlockWithNotify(x + 3, y + 3, z + 5, block);
  175. world.setBlockWithNotify(x + 3, y + 3, z + 6, block);
  176. world.setBlockWithNotify(x + 3, y + 3, z + 7, block);
  177. world.setBlockWithNotify(x + 3, y + 3, z + 8, block);
  178. world.setBlockWithNotify(x + 2, y + 3, z + 8, block);
  179. world.setBlockWithNotify(x + 1, y + 3, z + 8, block);
  180. world.setBlockWithNotify(x, y + 3, z + 8, block);
  181. world.setBlockWithNotify(x - 1, y + 3, z + 8, block);
  182. world.setBlockWithNotify(x - 2, y + 3, z + 8, block);
  183. world.setBlockWithNotify(x - 3, y + 3, z + 8, block);
  184. world.setBlockWithNotify(x - 3, y + 3, z + 7, block);
  185. world.setBlockWithNotify(x - 3, y + 3, z + 6, block);
  186. world.setBlockWithNotify(x - 3, y + 3, z + 5, block);
  187. world.setBlockWithNotify(x - 3, y + 3, z + 4, block);
  188. world.setBlockWithNotify(x - 3, y + 3, z + 3, block);
  189. world.setBlockWithNotify(x - 3, y + 3, z + 2, block);
  190. world.setBlockWithNotify(x - 2, y + 3, z + 2, block);
  191. world.setBlockWithNotify(x - 1, y + 3, z + 2, block);
  192. world.setBlockWithNotify(x, y + 3, z + 2, block);
  193. //Aussenseite Ende 3. Ring
  194. //Aussenseite Anfang 4. Ring
  195. world.setBlockWithNotify(x, y + 4, z + 3, block);
  196. world.setBlockWithNotify(x + 1, y + 4, z + 3, block);
  197. world.setBlockWithNotify(x + 2, y + 4, z + 3, block);
  198. world.setBlockWithNotify(x + 2, y + 4, z + 4, block);
  199. world.setBlockWithNotify(x + 2, y + 4, z + 5, block);
  200. world.setBlockWithNotify(x + 2, y + 4, z + 6, block);
  201. world.setBlockWithNotify(x + 2, y + 4, z + 7, block);
  202. world.setBlockWithNotify(x + 1, y + 4, z + 7, block);
  203. world.setBlockWithNotify(x, y + 4, z + 7, block);
  204. world.setBlockWithNotify(x - 1, y + 4, z + 7, block);
  205. world.setBlockWithNotify(x - 2, y + 4, z + 7, block);
  206. world.setBlockWithNotify(x - 2, y + 4, z + 6, block);
  207. world.setBlockWithNotify(x - 2, y + 4, z + 5, block);
  208. world.setBlockWithNotify(x - 2, y + 4, z + 4, block);
  209. world.setBlockWithNotify(x - 2, y + 4, z + 3, block);
  210. world.setBlockWithNotify(x - 1, y + 4, z + 3, block);
  211. //Aussenseite Ende 4. Ring
  212. //Aussenseite Anfang 5. Ring
  213. world.setBlockWithNotify(x, y + 5, z + 4, block);
  214. world.setBlockWithNotify(x + 1, y + 5, z + 4, block);
  215. world.setBlockWithNotify(x + 1, y + 5, z + 5, block);
  216. world.setBlockWithNotify(x + 1, y + 5, z + 6, block);
  217. world.setBlockWithNotify(x, y + 5, z + 6, block);
  218. world.setBlockWithNotify(x - 1, y + 5, z + 6, block);
  219. world.setBlockWithNotify(x - 1, y + 5, z + 5, block);
  220. world.setBlockWithNotify(x - 1, y + 5, z + 4, block);
  221. //Aussenseite Ende 5. Ring
  222. //Aussenseite Anfang Stein an der Spitze
  223. world.setBlockWithNotify(x, y + 6, z + 5, block);
  224. //Aussenseite Ende Stein an der Spitze
  225. //Zusatz Anfang
  226. world.setBlockWithNotify(x + 1, y + 2, z, block);
  227. world.setBlockWithNotify(x + 1, y + 3, z, block);
  228. world.setBlockWithNotify(x - 1, y + 2, z, block);
  229. world.setBlockWithNotify(x - 1, y + 3, z, block);
  230. world.setBlockWithNotify(x, y + 3, z, block);
  231. world.setBlockWithNotify(x + 1, y + 1, z + 1, block);
  232. world.setBlockWithNotify(x - 1, y + 1, z + 1, block);
  233. world.setBlockWithNotify(x + 1, y + 1, z + 2, block);
  234. world.setBlockWithNotify(x + 1, y + 2, z + 2, block);
  235. world.setBlockWithNotify(x - 1, y + 1, z + 2, block);
  236. world.setBlockWithNotify(x - 1, y + 2, z + 2, block);
  237. world.setBlockWithNotify(x, y + 3, z + 3, glow);
  238. world.setBlockWithNotify(x - 1, y + 3, z + 1, block);
  239. world.setBlockWithNotify(x + 1, y + 3, z + 1, block);
  240. world.setBlockWithNotify(x, y + 3, z + 1, block);
  241. world.setBlockWithNotify(x, y + 4, z + 1, block);
  242. world.setBlockWithNotify(x, y + 4, z + 2, block);
  243.  
  244. return true;
  245. }
  246. }
  247.  
  248. //You dont have the permission to use the source codes by yourself
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement