playsound custom.soul.absorb ambient @s ~ ~ ~
scoreboard players add @s souls 1
function items:soul/trigger
execute if predicate items_py:in_inventory/soul_splitter run scoreboard players add @s souls 1
execute if predicate items_py:in_inventory/soul_splitter run function items:soul/trigger

execute if score @s souls >= @s souls_capacity run function items:soul/trigger_max

# Reset
advancement revoke @s only items:soul_update
