Topic category: Help with modding (Java Edition)
I want to block fast slots for player.
My problem is that I don't know how to disable the selection of a disabled slot. I want that when choosing a "forbidden" slot, the player would immediately select slot 1 where the sword lies.
Not swapping items, namely switching from slot 4 to slot 1, forced
As a result, so that the player can never choose a slot. I did not find a single block diagram where there would be control of the selected slot or forced slot change. Can you please suggest the code