execute as @a at @s run function survivalplus:tools/uuidbuffs
execute if entity @e[predicate=survivalplus:specialhat] run function survivalplus:tools/ability_hats/specialhat
execute if entity @a[scores={usetome=1..}] run function survivalplus:tools/tomes/usetome
execute if entity @a[predicate=survivalplus:tomes/tome] run function survivalplus:tools/tomes/tome
execute if entity @a[predicate=survivalplus:firecompass] as @a[predicate=survivalplus:firecompass] at @s run function survivalplus:tools/firecompass/compass
execute as @a[scores={jump=1..}] run function survivalplus:tools/jumped
execute as @a[scores={join=1..}] run function survivalplus:tools/joingame
execute if entity @a[predicate=survivalplus:tcursetick] as @a[predicate=survivalplus:tcursetick] at @s run function survivalplus:giant_deal/curses
execute as @a[tag=skysafe] at @s unless block ~ ~-.1 ~ #survivalplus:respawnable run function survivalplus:tools/tomes/skysafe
execute if entity @a[predicate=survivalplus:rerare] run function survivalplus:tools/rerare/tick
execute as @e[tag=ballista] at @s positioned ~ ~-1.55 ~ unless entity @e[tag=ballista_stand,distance=...1] run kill @s
execute if entity @a[predicate=survivalplus:holding_capture] at @a[predicate=survivalplus:holding_capture] as @e[distance=..10,predicate=!survivalplus:nocapture,type=!#survivalplus:notalive,type=!player] at @s unless entity @n[tag=capturename,distance=..1] run function survivalplus:tools/capturebag/save_name
execute if entity @e[tag=capturename] as @e[tag=capturename] at @s unless entity @n[tag=!capturename,type=!#survivalplus:notalive,type=!player,distance=..1] run kill @s

execute if entity @e[tag=specialarrow] run function survivalplus:tools/archer/arrow/specialarrow
execute if entity @a[scores={shotbow=1..}] as @a[scores={shotbow=1..}] at @s anchored eyes run function survivalplus:tools/archer/bow/shotbow
execute as @a[scores={dealdmg=1..}] at @s run function survivalplus:tools/dealdmg/dealtdmg
execute if entity @a[scores={death=1..}] as @a[scores={death=1..}] at @s run function survivalplus:tools/ondeath