Advertisement
Boe6

CommandStudio - generate rand 8x8x2

Mar 19th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. def ^call_block($start;$end;$block;$damage=0):
  2. execute @e[type=Area_effect_cloud,name=RNGresult,score_RNGuse_min=$start,score_RNGuse=$end] ~ ~ ~ fill 0 10 -16 7 11 -9 $block $damage
  3.  
  4. def ^get_block_0_15($start;$block):
  5. var $start1 = ($start+1)
  6. var $start2 = ($start+2)
  7. var $start3 = ($start+3)
  8. var $start4 = ($start+4)
  9. var $start5 = ($start+5)
  10. var $start6 = ($start+6)
  11. var $start7 = ($start+7)
  12. var $start8 = ($start+8)
  13. var $start9 = ($start+9)
  14. var $start10 = ($start+10)
  15. var $start11 = ($start+11)
  16. var $start12 = ($start+12)
  17. var $start13 = ($start+13)
  18. var $start14 = ($start+14)
  19. var $start15 = ($start+15)
  20. ^call_block($start;$start;$block)
  21. ^call_block($start1;$start1;$block;1)
  22. ^call_block($start2;$start2;$block;2)
  23. ^call_block($start3;$start3;$block;3)
  24. ^call_block($start4;$start4;$block;4)
  25. ^call_block($start5;$start5;$block;5)
  26. ^call_block($start6;$start6;$block;6)
  27. ^call_block($start7;$start7;$block;7)
  28. ^call_block($start8;$start8;$block;8)
  29. ^call_block($start9;$start9;$block;9)
  30. ^call_block($start10;$start10;$block;10)
  31. ^call_block($start11;$start11;$block;11)
  32. ^call_block($start12;$start12;$block;12)
  33. ^call_block($start13;$start13;$block;13)
  34. ^call_block($start14;$start14;$block;14)
  35. ^call_block($start15;$start15;$block;15)
  36.  
  37. def ^get_block(): //Chooses block from weighted list
  38. ^get_rng()
  39. blockdata -16 4 -16 {auto:1}
  40. blockdata -16 4 -15 {auto:1}
  41. blockdata -16 4 -14 {auto:1}
  42.  
  43. def ^get_blockset1():
  44. //planks
  45. ^call_block(0;19;planks)
  46. ^call_block(20;39;planks;1)
  47. ^call_block(40;59;planks;2)
  48. ^call_block(60;79;planks;3)
  49. ^call_block(80;99;planks;4)
  50. ^call_block(100;119;planks;5)
  51. //logs
  52. ^call_block(120;131;log)
  53. ^call_block(132;143;log;1)
  54. ^call_block(144;155;log;2)
  55. ^call_block(156;167;log;3)
  56. ^call_block(168;173;log2)
  57. ^call_block(174;199;log2;1)
  58. //stone
  59. ^call_block(200;299;stone)
  60. ^call_block(300;399;cobblestone)
  61. //ores
  62. ^call_block(400;449;coal_ore)
  63. ^call_block(450;469;gold_ore)
  64. ^call_block(470;519;iron_ore)
  65. ^call_block(520;539;lapis_ore)
  66. ^call_block(540;559;diamond_ore)
  67. ^call_block(560;569;redstone_ore)
  68. ^call_block(570;579;emerald_ore)
  69. ^call_block(580;599;quartz_ore)
  70.  
  71. def ^get_blockset2():
  72. //basics
  73. ^call_block(600;609;pumpkin)
  74. ^call_block(610;619;crafting_table)
  75. ^call_block(620;629;furnace)
  76. ^call_block(630;639;glass)
  77. ^call_block(640;649;dirt)
  78. ^call_block(650;659;dirt;1)
  79. ^call_block(660;669;sand)
  80. ^call_block(670;679;sandstone)
  81. ^call_block(680;689;brick)
  82. ^call_block(690;699;bookshelf)
  83. ^call_block(700;709;snow)
  84. ^call_block(710;719;end_stone)
  85. ^call_block(720;729;netherrack)
  86. ^call_block(730;739;glowstone)
  87. ^call_block(740;749;prismarine;1)
  88. ^call_block(750;759;packed_ice)
  89. ^call_block(760;769;ice)
  90. ^call_block(770;779;sea_lantern)
  91. ^call_block(780;789;magma)
  92. ^call_block(790;799;slime)
  93. //rares
  94. ^call_block(800;804;lapis_block)
  95. ^call_block(805;809;gold_block)
  96. ^call_block(810;814;iron_block)
  97. ^call_block(815;819;diamond_block)
  98. ^call_block(820;824;emerald_block)
  99. ^call_block(825;829;redstone_block)
  100. ^call_block(830;834;bone_block)
  101. ^call_block(835;839;tnt)
  102. ^call_block(840;844;obsidian)
  103. ^call_block(845;899;melon_block)
  104.  
  105. def ^get_blockset3():
  106. //colorfuls
  107. ^get_block_0_15(900;concrete)
  108. ^get_block_0_15(916;stained_hardened_clay)
  109. ^get_block_0_15(932;wool)
  110. ^get_block_0_15(948;stained_glass)
  111. ^get_block_0_15(964;stained_glass_pane)
  112. ^get_block_0_15(980;carpet)
  113. ^call_block(996;997;air)
  114. ^call_block(998;999;bedrock)
  115.  
  116.  
  117. chain -14 4 -16, +y:
  118. i0:blockdata ~ ~ ~ {auto:0}
  119. ^get_block()
  120.  
  121. chain -16 4 -16, +y:
  122. i0:blockdata ~ ~ ~ {auto:0}
  123. ^get_blockset1()
  124.  
  125. chain -16 4 -15, +y:
  126. i0:blockdata ~ ~ ~ {auto:0}
  127. ^get_blockset2()
  128.  
  129. chain -16 4 -14, +y:
  130. i0:blockdata ~ ~ ~ {auto:0}
  131. ^get_blockset3()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement