execute as @e[type=minecraft:ender_pearl] on origin run tag @s add has_pearl
execute if entity @s[tag=has_pearl] run return run tag @s remove has_pearl
execute if items entity @s hotbar.* minecraft:ender_pearl run return 0
tag @s add no_drop
tag @s add hide_default_death_message
scoreboard players add @s death_count 1
particle minecraft:poof ~ ~1 ~ 0 0 0 0.05 50
execute on attacker run tag @s add attacker
execute if entity @e[tag=attacker] run function pctf:logic/player/death_messages/knocked_into_void
execute unless entity @e[tag=attacker] run function pctf:logic/player/death_messages/fell_into_void
tag @e[tag=attacker] remove attacker