Menu-Extension___Multiplayer?

I can’t figure out how to edit the code for the menu extension, so I can’t try to do this by myself, but is there a way to add a block that changes the value of the selection?

The block I’m thinking about is the one in @UnsignedArduino inventory extension where they made the “change ‘toolbar’ selected index by ‘#’ block”

Any help would be great!