I'm making a map and I need a way to test if the player uses a water bucket. I tried
/scoreboard objectives add <Name> stat.useItem362 and
/testfor @a[score_<Name>_min=1]. Did I do anything wrong?
1.8+ uses name IDs for scoreboard statistics, and in 1.9+ you cannot use numerical IDs.
/scoreboard objectives add UseWaterBucket stat.useItem.minecraft.water_bucket /scoreboard objectives setdisplay sidebar UseWaterBucket
Check the sidebar to confirm usage. In 1.8, the statistic will not increment when you are in creative mode. You will need to be in survival or adventure mode for that stat to increment. In 1.9+, the stat will increment while in creative mode.
/testfor command is correct: