Disable Hot Slot

Started by Aizark on Sun, 05/14/2023 - 22:34

Topic category: Help with modding (Java Edition)

Last seen on 08:10, 18. May 2023
Joined Nov 2015

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable Hot Slot
Sun, 05/14/2023 - 22:34

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