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

execute @e[type=worldedit:pos1] ~~~ scoreboard players add @s we_yrot 1
execute @e[type=worldedit:pos1,scores={we_mask_mode=1}] ~~~ structure load we_selection ^^^83
execute @e[type=worldedit:pos1,scores={we_mask_mode=1}] ~~~ structure load we_selection ^^^-83
execute @e[type=worldedit:pos1,scores={we_mask_mode=2}] ~~~ detect ^^^83 air -1 structure load we_selection ^^^83
execute @e[type=worldedit:pos1,scores={we_mask_mode=2}] ~~~ detect ^^^-83 air -1 structure load we_selection ^^^-83
execute @e[type=worldedit:pos1,scores={we_mask_mode=3}] ~~~ detect ^^^83 air -1 tag @s add we_air
execute @e[type=worldedit:pos1,scores={we_mask_mode=3},tag=!we_air] ~~~ structure load we_selection ^^^83
tag @e remove we_air
execute @e[type=worldedit:pos1,scores={we_mask_mode=3}] ~~~ detect ^^^-83 air -1 tag @s add we_air
execute @e[type=worldedit:pos1,scores={we_mask_mode=3},tag=!we_air] ~~~ structure load we_selection ^^^-83
tag @e remove we_air

execute @e[type=worldedit:pos1] ~~~ tp ~~~ ~0.5 ~

execute @e[type=worldedit:pos1,scores={we_yrot=..360}] ~~~ function we/high-end/circle/83
execute @e[type=worldedit:pos1,scores={we_yrot=360}] ~~~ scoreboard players add @s we_yrot 1