Prevent armor from getting equipping when player is sneaking

Started by ClOud1076 on

Topic category: Help with Minecraft modding (Java Edition)

Active 7 months ago
Joined Mar 2021
Points:
737

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 113
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?

Active 2 years ago
Joined Mar 2021
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 190
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