I am trying to create a hydration system for my Minecraft adventure map that displays hydration levels on the scoreboard. To restore the players hydration a player should need to drink a water bottle, and so I figured this command would do the trick: /testfor @p {stat.useItem:373}
However I receive an error: (player) did not match the required data structure
Does anyone know why I recieve this error and if there is any way to make the command work? (preferably without using scoreboard values instead as I want to use the scoreboard values to display the hydration levels themselves)