/execute if entity @a[limit=1,nbt={SelectedItem:{id:"minecraft:water_bucket",Count:1b},Dimension:-1}] run replaceitem