scoreboard players add @e[type=arrow,tag=EndArrowTP] EndArrowTimer 1
#scoreboard players add @a[tag=EndArrowKyu] add EndArrowTimer 1

execute as @e[type=arrow,tag=EndArrowTP] run execute at @s run tp @p[tag=EndArrowKyu,limit=1,distance=..8] ^ ^ ^
execute as @e[type=arrow,tag=EndArrowTP] run execute at @s run effect give @p[tag=EndArrowKyu,limit=1,distance=..8] slow_falling 2 2
#execute as @a[tag=EndArrowKyu] run execute at @s run tp @s @e[limit=1,distance=..2,type=arrow,tag=EndArrowTP] ~ ~
execute as @a[tag=EndArrowKyu] run execute at @s run execute unless entity @e[distance=..8,type=arrow,tag=EndArrowTP] run tag @s remove EndArrowKyu
execute as @e[type=arrow,tag=EndArrowTP] run kill @s[scores={EndArrowTimer=1200..}]
execute as @e[type=arrow,tag=EndArrowTP] run execute at @s[nbt={inGround:1b}] run execute unless entity @e[type=#suhc:hostiles,distance=..3] run effect give @p[tag=EndArrowKyu,limit=1,distance=..1] resistance 1 5
execute as @e[type=arrow,tag=EndArrowTP] run kill @s[nbt={inGround:1b}]
execute unless entity @a[tag=EndArrowKyu] run execute unless entity @e[type=arrow,tag=EndArrowTP] run execute in minecraft:overworld run data merge block 999998 121 999980 {auto:0b}
