#if i want to allow auto fish crates
loot spawn ~ ~ ~ loot minecraft:gameplay/fishing
#if dont allow auto fish crates
#loot spawn ~ ~ ~ loot minecraft:gameplay/fishing
playsound minecraft:entity.generic.splash neutral @a ~ ~ ~ .5
execute if entity @e[type=item,nbt={Item:{id:"minecraft:cod"}},distance=..1] run function survivalplus:tools/chum/cod
execute if entity @e[type=item,nbt={Item:{id:"minecraft:salmon"}},distance=..1] run function survivalplus:tools/chum/salmon
execute if entity @e[type=item,nbt={Item:{id:"minecraft:pufferfish"}},distance=..1] run function survivalplus:tools/chum/pufferfish
execute if entity @e[type=item,nbt={Item:{id:"minecraft:tropical_fish"}},distance=..1] run function survivalplus:tools/chum/tropical_fish