# ==================================================
# void vb.button.itemGear()
# ==================================================

scoreboard players set vb.button.itemGear.__hasFunctionReturned__ tbms.var 0
scoreboard players add @s vb.button.area 0
camera @s fade time 0 0 0.85
scoreboard players operation vb.button.itemGear._0._0 tbms.var = @s vb.button.area
execute if score vb.button.itemGear._0._0 tbms.var matches 0 run tp @s 1001 50 68 0 0
execute if score vb.button.itemGear._0._0 tbms.var matches 1 run tp @s 986 50 0 -90 0
playsound mob.shulker.teleport @s 1001 50 68 10
playsound mob.shulker.teleport @s 986 50 0 10
scoreboard players add @s vb.button.area 1
execute if score @s vb.button.area matches 2.. run scoreboard players set @s vb.button.area 0
