execute at @s[tag=settle] run function survivalplus:tools/chum/settle
execute at @s unless block ~ ~-.1 ~ water run kill @s
execute at @s run particle minecraft:rain ~ ~.8 ~ .3 0 .3 0 2
scoreboard players add @s timer 1
execute if score @s[tag=!goodchum] timer matches 100 if predicate survivalplus:20chance at @s run function survivalplus:tools/chum/catch
execute if score @s[tag=!goodchum] timer matches 100 if predicate survivalplus:10chance run kill @s
execute if score @s[tag=!goodchum] timer matches 100 run scoreboard players reset @s timer

execute if score @s[tag=goodchum] timer matches 70 if predicate survivalplus:50chance at @s run function survivalplus:tools/chum/catch
execute if score @s[tag=superchum] timer matches 70 if predicate survivalplus:50chance at @s run function survivalplus:tools/chum/catch
execute if score @s[tag=goodchum] timer matches 70 if predicate survivalplus:10chance run kill @s
execute if score @s[tag=goodchum] timer matches 70 run scoreboard players reset @s timer

execute store result score chum itemcount if entity @e[tag=chum]
execute if score chum itemcount matches 31.. run kill @e[tag=chum,limit=1,sort=arbitrary]