execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[5.0f]}}}}] run return fail

playsound minecraft:entity.fish.swim block @a[distance=..16] ~ ~ ~ 1 0.5

execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[0.0f]}}}}] run return run data modify entity @s item.components."minecraft:custom_model_data".floats[0] set value 1
execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[1.0f]}}}}] run return run data modify entity @s item.components."minecraft:custom_model_data".floats[0] set value 2
execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[2.0f]}}}}] run return run data modify entity @s item.components."minecraft:custom_model_data".floats[0] set value 3
execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[3.0f]}}}}] run return run data modify entity @s item.components."minecraft:custom_model_data".floats[0] set value 4
execute if entity @s[nbt={item:{components:{"minecraft:custom_model_data":{floats:[4.0f]}}}}] run return run data modify entity @s item.components."minecraft:custom_model_data".floats[0] set value 5
