scoreboard players set @s vb.entity.fish_trap_in_water 1

execute unless block ~ ~1 ~ water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~1 ~1 ~ water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~-1 ~1 ~ water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~ ~1 ~1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~ ~1 ~-1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~1 ~1 ~1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~1 ~1 ~-1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~-1 ~1 ~1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0
execute unless block ~-1 ~1 ~-1 water run return run scoreboard players set @s vb.entity.fish_trap_in_water 0