I'm writing a command for a customised enchantment that teleports a player holding a certain item to the direction that it's facing. However, according to my knowledge, there's no statistic in /scoreboard that could simply detect a player's left-click.

The scores that I've though about include damage_dealt that detects whether a player causes damage. However, I don't actually need the player to cause damage to activate the teleporting, so this may not work because the player can click without causing damage also thought about the ITEM_USE score, but this does not include left-click either, only right click.

Anyone could tell me how to detect the player's left-click please? Thank you!



Browse other questions tagged .