Repository navigation
Minecraft Bedrock 1.21 Behavior Pack, detects the player's selected slot on the hotbar and converts it to a scoreboard objective.
It also detects if the player is holding anything in mainhand or has any items in inventory and assigns it to scoreboard objectives.