/effect @p[hasitem={item=diamond_helmet,location=slot.armor.head}] water_breathing 10000 100 true
location=slot.weapon.mainhand
location=slot.weapon.offhand
location=slot.armor.head
location=slot.armor.chest
location=slot.armor.legs
location=slot.armor.feet
testfor @e[scores={スコアボード名=30..40}]