Repository navigation
Minecraft Bedrock 1.21 behavior pack, detects when a player right or left clicks and assigns to a scoreboard value so you can use the scores target selector argument in your own commands.
For right click, the player either needs to be holding an item, placing a block, interacting with an entity, or tareting a block.
For left click, the player can either have an item in hand or be empty handed, breaking a block, or interacting with an entity.
Note
This behavior pack modifies player.json. It will conflict with other installed add-ons that modify player.json.