scoreboard objectives add checktree dummy checktree
scoreboard players set @s checktree 0
execute @s[scores={checktree=0}] ~ ~ ~ detect ~-1 ~ ~-1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~-1 ~ ~-1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~-1 ~ ~ air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~-1 ~ ~ vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~1 ~ ~ air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~1 ~ ~ vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~ ~ ~-1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~ ~ ~-1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~ ~ ~1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~ ~ ~1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~-1 ~ ~1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~-1 ~ ~1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~1 ~ ~-1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~1 ~ ~-1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

execute @s[scores={checktree=0}] ~ ~ ~ detect ~1 ~ ~1 air 0 scoreboard players set @s checktree 2
execute @s[scores={checktree=2}] ~ ~ ~ setblock ~1 ~ ~1 vatonage:present
execute @s[scores={checktree=2}] ~ ~ ~ scoreboard players set @s checktree 1

kill @s