Are you looking for this: (I did not write this and it probably requires tweaks depending on which variant of the code you are at)
"
Empty Glass Pitchers can only be filled by targeting a Water Trough (Crafted or Deeded version), or another water container or beverage with water.
I have...