execute store result score #VB vb.dummy1 run random value 1..20

execute if entity @n[type=item_display,tag=vb.custom_block.fish_trap,distance=0.1..15] store result score #VB vb.dummy1 run random value 1..70

## Cat boost
execute if entity @n[type=cat,distance=..20,scores={vb.entity.cat_favor=90..}] store result score #VB vb.dummy1 run random value 1..15
execute if entity @n[type=cat,distance=..20,scores={vb.entity.cat_favor=90..}] if entity @n[type=item_display,tag=vb.custom_block.fish_trap,distance=0.1..15] store result score #VB vb.dummy1 run random value 1..55

execute if score @s vb.entity.fish_trap_in_water matches 1 if score #VB vb.dummy1 matches 1 run function vb:tick_entity/custom_block/fish_trap/collect_fish