Prevent armor from getting equipping when player is sneaking

Started by ClOud1076 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Prevent armor from getting equipping when player is sneaking

So i got an idea for a backpack mod, so when equipping an armor you need to right click even when your crouching right, i want to make my armor instead of being equipped when the player is crouching it will open a gui instead, it will only be equipped when the player is not crouching. Is it possible?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check for if you have armor…
Sat, 12/18/2021 - 02:55

check for if you have armor in a hand and then wait a tick on the server side and then move the item back to the slot they were taken from