Disable Hot Slot

Started by Aizark on

Topic category: Help with modding (Java Edition)

Last seen on 03:21, 29. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable Hot Slot

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