Cancel swapping hands

Started by AcousticJamm on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cancel swapping hands

So I want to stop the player from swapping the items in their hands with the key for "Swap Item With Offhand" under certain conditions (in this case, holding a certain item in offhand). Is this possible?

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe like forcing theā€¦
Sat, 02/26/2022 - 23:09

Maybe like forcing the player to hold the item in the offhand and the when the Player swaps it into there inventory you can delete it then place it back into the offhand then what of theres a item in the offhand

For that im gonna make you do that if not ask again and i may respond