How to make a command

How to make a command that constantly replaces the first hotbar slot with a loaded crossbar

Continue to help post