tag @s[scores={KyuDummy=3..}] remove Going
scoreboard players set @s[scores={KyuDummy=3..}] KyuDummy 0
scoreboard players add @s[tag=Going] KyuDummy 1

tag @s[scores={KyuDummy2=3..}] remove Going2
scoreboard players set @s[scores={KyuDummy2=3..}] KyuDummy2 0
scoreboard players add @s[tag=Going2] KyuDummy2 1


execute at @s run fill ~-1 ~-1 ~-1 ~1 ~2 ~1 air replace grass_block
execute at @s run fill ~-1 ~-1 ~-1 ~1 ~2 ~1 air replace gravel
execute at @s run tp @s[tag=OpDiagRoot1] ~.5 ~ ~-.5
execute at @s run tp @s[tag=OpDiagRoot2] ~-.5 ~ ~.5
execute as @s run function zzzzdonotuse:structures/tree/opposediagrootfill




tag @s remove GoLeft
tag @s remove GoRight
tag @s remove GoY
tag @s remove GoMY
execute if predicate suhc:50percent run tag @s[tag=!PermaRight,scores={KyuDummy=0,PosX=..40}] add GoLeft
execute if predicate suhc:50percent run tag @s[tag=!PermaLeft,scores={KyuDummy=0,PosX=..40}] add GoRight
#execute if predicate suhc:50percent run tag @s remove GoLeft
execute if predicate suhc:50percent run tag @s[predicate=!suhc:zerotofivey,scores={KyuDummy2=0,PosX=..40}] add GoMY
execute if predicate suhc:50percent run tag @s[tag=!GoMY,scores={KyuDummy2=0,PosX=5..40}] add GoY
execute unless entity @s[tag=!GoLeft,tag=!GoRight] run tag @s add Going
execute unless entity @s[tag=!GoY,tag=!GoMY] run tag @s add Going2

#execute as @s[tag=PermaLeft] run say a
#execute as @s[tag=PermaRight] run say a2

#execute as @s[tag=GoLeft] run say b
#execute as @s[tag=GoRight] run say b2


execute at @s run tp @s[tag=GoLeft,scores={KyuDummy=0}] ^1 ^ ^
execute at @s run tp @s[tag=GoRight,scores={KyuDummy=0}] ^-1 ^ ^
execute unless entity @s[tag=!GoLeft,tag=!GoRight] run function zzzzdonotuse:structures/tree/opposediagrootfill

execute at @s run tp @s[tag=GoY,scores={KyuDummy2=0}] ~ ~1 ~
execute at @s run tp @s[tag=GoMY,scores={KyuDummy2=0}] ~ ~-1 ~
execute unless entity @s[tag=!GoY,tag=!GoMY] run function zzzzdonotuse:structures/tree/opposediagrootfill

scoreboard players add @s PosX 1
execute if predicate suhc:25percent run scoreboard players remove @s[scores={PosX=..39}] PosX 1
#execute as @s[scores={PosX=35..50}] run execute if predicate suhc:25percent run execute if predicate suhc:50percent run execute at @s positioned ~ ~1 ~ run scoreboard players set @s PosX 51
execute as @s[scores={PosX=50..}] run execute at @s positioned ~ ~1 ~ run scoreboard players set @s PosX 51
execute as @s[scores={PosX=..50}] run function zzzzdonotuse:structures/tree/opposediagroot
#execute as @s[scores={PosX=35..50}] run execute if predicate suhc:25percent run execute if predicate suhc:50percent run execute at @s positioned ~ ~1 ~ run function zzzzdonotuse:structures/tree/killtree
#execute as @s[scores={PosX=50..}] run execute at @s positioned ~ ~1 ~ run function zzzzdonotuse:structures/tree/killtree