Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ^call_block($start;$end;$block;$damage=0):
- execute @e[type=Area_effect_cloud,name=RNGresult,score_RNGuse_min=$start,score_RNGuse=$end] ~ ~ ~ fill 0 10 -16 7 11 -9 $block $damage
- def ^get_block_0_15($start;$block):
- var $start1 = ($start+1)
- var $start2 = ($start+2)
- var $start3 = ($start+3)
- var $start4 = ($start+4)
- var $start5 = ($start+5)
- var $start6 = ($start+6)
- var $start7 = ($start+7)
- var $start8 = ($start+8)
- var $start9 = ($start+9)
- var $start10 = ($start+10)
- var $start11 = ($start+11)
- var $start12 = ($start+12)
- var $start13 = ($start+13)
- var $start14 = ($start+14)
- var $start15 = ($start+15)
- ^call_block($start;$start;$block)
- ^call_block($start1;$start1;$block;1)
- ^call_block($start2;$start2;$block;2)
- ^call_block($start3;$start3;$block;3)
- ^call_block($start4;$start4;$block;4)
- ^call_block($start5;$start5;$block;5)
- ^call_block($start6;$start6;$block;6)
- ^call_block($start7;$start7;$block;7)
- ^call_block($start8;$start8;$block;8)
- ^call_block($start9;$start9;$block;9)
- ^call_block($start10;$start10;$block;10)
- ^call_block($start11;$start11;$block;11)
- ^call_block($start12;$start12;$block;12)
- ^call_block($start13;$start13;$block;13)
- ^call_block($start14;$start14;$block;14)
- ^call_block($start15;$start15;$block;15)
- def ^get_block(): //Chooses block from weighted list
- ^get_rng()
- blockdata -16 4 -16 {auto:1}
- blockdata -16 4 -15 {auto:1}
- blockdata -16 4 -14 {auto:1}
- def ^get_blockset1():
- //planks
- ^call_block(0;19;planks)
- ^call_block(20;39;planks;1)
- ^call_block(40;59;planks;2)
- ^call_block(60;79;planks;3)
- ^call_block(80;99;planks;4)
- ^call_block(100;119;planks;5)
- //logs
- ^call_block(120;131;log)
- ^call_block(132;143;log;1)
- ^call_block(144;155;log;2)
- ^call_block(156;167;log;3)
- ^call_block(168;173;log2)
- ^call_block(174;199;log2;1)
- //stone
- ^call_block(200;299;stone)
- ^call_block(300;399;cobblestone)
- //ores
- ^call_block(400;449;coal_ore)
- ^call_block(450;469;gold_ore)
- ^call_block(470;519;iron_ore)
- ^call_block(520;539;lapis_ore)
- ^call_block(540;559;diamond_ore)
- ^call_block(560;569;redstone_ore)
- ^call_block(570;579;emerald_ore)
- ^call_block(580;599;quartz_ore)
- def ^get_blockset2():
- //basics
- ^call_block(600;609;pumpkin)
- ^call_block(610;619;crafting_table)
- ^call_block(620;629;furnace)
- ^call_block(630;639;glass)
- ^call_block(640;649;dirt)
- ^call_block(650;659;dirt;1)
- ^call_block(660;669;sand)
- ^call_block(670;679;sandstone)
- ^call_block(680;689;brick)
- ^call_block(690;699;bookshelf)
- ^call_block(700;709;snow)
- ^call_block(710;719;end_stone)
- ^call_block(720;729;netherrack)
- ^call_block(730;739;glowstone)
- ^call_block(740;749;prismarine;1)
- ^call_block(750;759;packed_ice)
- ^call_block(760;769;ice)
- ^call_block(770;779;sea_lantern)
- ^call_block(780;789;magma)
- ^call_block(790;799;slime)
- //rares
- ^call_block(800;804;lapis_block)
- ^call_block(805;809;gold_block)
- ^call_block(810;814;iron_block)
- ^call_block(815;819;diamond_block)
- ^call_block(820;824;emerald_block)
- ^call_block(825;829;redstone_block)
- ^call_block(830;834;bone_block)
- ^call_block(835;839;tnt)
- ^call_block(840;844;obsidian)
- ^call_block(845;899;melon_block)
- def ^get_blockset3():
- //colorfuls
- ^get_block_0_15(900;concrete)
- ^get_block_0_15(916;stained_hardened_clay)
- ^get_block_0_15(932;wool)
- ^get_block_0_15(948;stained_glass)
- ^get_block_0_15(964;stained_glass_pane)
- ^get_block_0_15(980;carpet)
- ^call_block(996;997;air)
- ^call_block(998;999;bedrock)
- chain -14 4 -16, +y:
- i0:blockdata ~ ~ ~ {auto:0}
- ^get_block()
- chain -16 4 -16, +y:
- i0:blockdata ~ ~ ~ {auto:0}
- ^get_blockset1()
- chain -16 4 -15, +y:
- i0:blockdata ~ ~ ~ {auto:0}
- ^get_blockset2()
- chain -16 4 -14, +y:
- i0:blockdata ~ ~ ~ {auto:0}
- ^get_blockset3()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement