execute @e[tag=tempinteract] ~ ~ ~ tp @s @e[tag=table,scores={tableorder=0}]
execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~0.015 ~


#add score tableorder
scoreboard players add @e[scores={tableorder=0..}] tableorder 1
scoreboard players set @e[tag=tempinteract] tableorder 0

#x offset
execute @e[tag=dummy,scores={x_offset=1}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.45 ~ ~
execute @e[tag=dummy,scores={x_offset=2}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.50 ~ ~
execute @e[tag=dummy,scores={x_offset=3}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.55 ~ ~
execute @e[tag=dummy,scores={x_offset=4}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.60 ~ ~
execute @e[tag=dummy,scores={x_offset=5}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.65 ~ ~
execute @e[tag=dummy,scores={x_offset=6}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.70 ~ ~
execute @e[tag=dummy,scores={x_offset=7}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s 37.75 ~ ~

#z offset
execute @e[tag=dummy,scores={z_offset=1}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.35
execute @e[tag=dummy,scores={z_offset=2}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.40
execute @e[tag=dummy,scores={z_offset=3}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.45
execute @e[tag=dummy,scores={z_offset=4}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.50
execute @e[tag=dummy,scores={z_offset=5}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.55
execute @e[tag=dummy,scores={z_offset=6}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.60
execute @e[tag=dummy,scores={z_offset=7}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ -38.65

#rot offset offset
execute @e[tag=dummy,scores={rot_offset=1}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.20 ~ ~0.45 -30 ~
execute @e[tag=dummy,scores={rot_offset=2}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.10 ~ ~0.30 -20 ~
execute @e[tag=dummy,scores={rot_offset=3}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.05 ~ ~0.25 -10 ~
execute @e[tag=dummy,scores={rot_offset=4}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~ ~ ~ 0 ~
execute @e[tag=dummy,scores={rot_offset=5}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.05 ~ ~-0.25 10 ~
execute @e[tag=dummy,scores={rot_offset=6}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.10 ~ ~-0.30 20 ~
execute @e[tag=dummy,scores={rot_offset=7}] ~ ~ ~  execute @e[tag=tempinteract] ~ ~ ~ tp @s ~0.20 ~ ~-0.45 30 ~