##############################
##
##        WorldEdit
##    Made By M7mdTG ;)
##
##############################

execute @e[type=worldedit:pos1,tag=!we_savedblock] ~~~ structure save we_selection ~~~ ~~~ false disk true
execute @e[type=worldedit:pos1,tag=!we_savedblock] ~~~ scoreboard players operation @s we_mask_mode = @a[tag=we_host] we_mask_mode
execute @e[type=worldedit:pos1,tag=!we_savedblock] ~~~ scoreboard players set @s we_xrot 0
execute @e[type=worldedit:pos1,tag=!we_savedblock] ~~~ tellraw @a {"rawtext":[{"text":"<WorldEdit> Sphere Started Successfully"}]}
execute @e[type=worldedit:pos1,tag=!we_savedblock] ~~~ tag @s add we_savedblock


execute @e[type=worldedit:pos1,scores={we_xrot=181..}] ~~~ tellraw @a {"rawtext":[{"text":"               §7>\n§r               Sphere Built Successfully:\n               Radius: <"},{"score":{"name":"@e[type=worldedit:pos1]","objective":"we_radius"}},{"text":">"}]}
execute @e[type=worldedit:pos1,scores={we_xrot=181..}] ~~~ execute @a[tag=we_host] ~~~ playsound random.levelup @s ~~~ 0.5 1
execute @e[type=worldedit:pos1,scores={we_xrot=181..}] ~~~ structure delete we_selection
kill @e[type=worldedit:pos1,scores={we_xrot=181..}]


execute @s[scores={we_radius=001}] ~~~ function we/high-end/sphere/1
execute @s[scores={we_radius=002}] ~~~ function we/high-end/sphere/2
execute @s[scores={we_radius=003}] ~~~ function we/high-end/sphere/3
execute @s[scores={we_radius=004}] ~~~ function we/high-end/sphere/4
execute @s[scores={we_radius=005}] ~~~ function we/high-end/sphere/5
execute @s[scores={we_radius=006}] ~~~ function we/high-end/sphere/6
execute @s[scores={we_radius=007}] ~~~ function we/high-end/sphere/7
execute @s[scores={we_radius=008}] ~~~ function we/high-end/sphere/8
execute @s[scores={we_radius=009}] ~~~ function we/high-end/sphere/9
execute @s[scores={we_radius=010}] ~~~ function we/high-end/sphere/10
execute @s[scores={we_radius=011}] ~~~ function we/high-end/sphere/11
execute @s[scores={we_radius=012}] ~~~ function we/high-end/sphere/12
execute @s[scores={we_radius=013}] ~~~ function we/high-end/sphere/13
execute @s[scores={we_radius=014}] ~~~ function we/high-end/sphere/14
execute @s[scores={we_radius=015}] ~~~ function we/high-end/sphere/15
execute @s[scores={we_radius=016}] ~~~ function we/high-end/sphere/16
execute @s[scores={we_radius=017}] ~~~ function we/high-end/sphere/17
execute @s[scores={we_radius=018}] ~~~ function we/high-end/sphere/18
execute @s[scores={we_radius=019}] ~~~ function we/high-end/sphere/19
execute @s[scores={we_radius=020}] ~~~ function we/high-end/sphere/20
execute @s[scores={we_radius=021}] ~~~ function we/high-end/sphere/21
execute @s[scores={we_radius=022}] ~~~ function we/high-end/sphere/22
execute @s[scores={we_radius=023}] ~~~ function we/high-end/sphere/23
execute @s[scores={we_radius=024}] ~~~ function we/high-end/sphere/24
execute @s[scores={we_radius=025}] ~~~ function we/high-end/sphere/25
execute @s[scores={we_radius=026}] ~~~ function we/high-end/sphere/26
execute @s[scores={we_radius=027}] ~~~ function we/high-end/sphere/27
execute @s[scores={we_radius=028}] ~~~ function we/high-end/sphere/28
execute @s[scores={we_radius=029}] ~~~ function we/high-end/sphere/29
execute @s[scores={we_radius=030}] ~~~ function we/high-end/sphere/30
execute @s[scores={we_radius=031}] ~~~ function we/high-end/sphere/31
execute @s[scores={we_radius=032}] ~~~ function we/high-end/sphere/32
execute @s[scores={we_radius=033}] ~~~ function we/high-end/sphere/33
execute @s[scores={we_radius=034}] ~~~ function we/high-end/sphere/34
execute @s[scores={we_radius=035}] ~~~ function we/high-end/sphere/35
execute @s[scores={we_radius=036}] ~~~ function we/high-end/sphere/36
execute @s[scores={we_radius=037}] ~~~ function we/high-end/sphere/37
execute @s[scores={we_radius=038}] ~~~ function we/high-end/sphere/38
execute @s[scores={we_radius=039}] ~~~ function we/high-end/sphere/39
execute @s[scores={we_radius=040}] ~~~ function we/high-end/sphere/40
execute @s[scores={we_radius=041}] ~~~ function we/high-end/sphere/41
execute @s[scores={we_radius=042}] ~~~ function we/high-end/sphere/42
execute @s[scores={we_radius=043}] ~~~ function we/high-end/sphere/43
execute @s[scores={we_radius=044}] ~~~ function we/high-end/sphere/44
execute @s[scores={we_radius=045}] ~~~ function we/high-end/sphere/45
execute @s[scores={we_radius=046}] ~~~ function we/high-end/sphere/46
execute @s[scores={we_radius=047}] ~~~ function we/high-end/sphere/47
execute @s[scores={we_radius=048}] ~~~ function we/high-end/sphere/48
execute @s[scores={we_radius=049}] ~~~ function we/high-end/sphere/49
execute @s[scores={we_radius=050}] ~~~ function we/high-end/sphere/50
execute @s[scores={we_radius=051}] ~~~ function we/high-end/sphere/51
execute @s[scores={we_radius=052}] ~~~ function we/high-end/sphere/52
execute @s[scores={we_radius=053}] ~~~ function we/high-end/sphere/53
execute @s[scores={we_radius=054}] ~~~ function we/high-end/sphere/54
execute @s[scores={we_radius=055}] ~~~ function we/high-end/sphere/55
execute @s[scores={we_radius=056}] ~~~ function we/high-end/sphere/56
execute @s[scores={we_radius=057}] ~~~ function we/high-end/sphere/57
execute @s[scores={we_radius=058}] ~~~ function we/high-end/sphere/58
execute @s[scores={we_radius=059}] ~~~ function we/high-end/sphere/59
execute @s[scores={we_radius=060}] ~~~ function we/high-end/sphere/60
execute @s[scores={we_radius=061}] ~~~ function we/high-end/sphere/61
execute @s[scores={we_radius=062}] ~~~ function we/high-end/sphere/62
execute @s[scores={we_radius=063}] ~~~ function we/high-end/sphere/63
execute @s[scores={we_radius=064}] ~~~ function we/high-end/sphere/64
execute @s[scores={we_radius=065}] ~~~ function we/high-end/sphere/65
execute @s[scores={we_radius=066}] ~~~ function we/high-end/sphere/66
execute @s[scores={we_radius=067}] ~~~ function we/high-end/sphere/67
execute @s[scores={we_radius=068}] ~~~ function we/high-end/sphere/68
execute @s[scores={we_radius=069}] ~~~ function we/high-end/sphere/69
execute @s[scores={we_radius=070}] ~~~ function we/high-end/sphere/70
execute @s[scores={we_radius=071}] ~~~ function we/high-end/sphere/71
execute @s[scores={we_radius=072}] ~~~ function we/high-end/sphere/72
execute @s[scores={we_radius=073}] ~~~ function we/high-end/sphere/73
execute @s[scores={we_radius=074}] ~~~ function we/high-end/sphere/74
execute @s[scores={we_radius=075}] ~~~ function we/high-end/sphere/75
execute @s[scores={we_radius=076}] ~~~ function we/high-end/sphere/76
execute @s[scores={we_radius=077}] ~~~ function we/high-end/sphere/77
execute @s[scores={we_radius=078}] ~~~ function we/high-end/sphere/78
execute @s[scores={we_radius=079}] ~~~ function we/high-end/sphere/79
execute @s[scores={we_radius=080}] ~~~ function we/high-end/sphere/80
execute @s[scores={we_radius=081}] ~~~ function we/high-end/sphere/81
execute @s[scores={we_radius=082}] ~~~ function we/high-end/sphere/82
execute @s[scores={we_radius=083}] ~~~ function we/high-end/sphere/83
execute @s[scores={we_radius=084}] ~~~ function we/high-end/sphere/84
execute @s[scores={we_radius=085}] ~~~ function we/high-end/sphere/85
execute @s[scores={we_radius=086}] ~~~ function we/high-end/sphere/86
execute @s[scores={we_radius=087}] ~~~ function we/high-end/sphere/87
execute @s[scores={we_radius=088}] ~~~ function we/high-end/sphere/88
execute @s[scores={we_radius=089}] ~~~ function we/high-end/sphere/89
execute @s[scores={we_radius=090}] ~~~ function we/high-end/sphere/90
execute @s[scores={we_radius=091}] ~~~ function we/high-end/sphere/91
execute @s[scores={we_radius=092}] ~~~ function we/high-end/sphere/92
execute @s[scores={we_radius=093}] ~~~ function we/high-end/sphere/93
execute @s[scores={we_radius=094}] ~~~ function we/high-end/sphere/94
execute @s[scores={we_radius=095}] ~~~ function we/high-end/sphere/95
execute @s[scores={we_radius=096}] ~~~ function we/high-end/sphere/96
execute @s[scores={we_radius=097}] ~~~ function we/high-end/sphere/97
execute @s[scores={we_radius=098}] ~~~ function we/high-end/sphere/98
execute @s[scores={we_radius=099}] ~~~ function we/high-end/sphere/99
execute @s[scores={we_radius=100}] ~~~ function we/high-end/sphere/100