Help with my armor code

Started by mariopoi24 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with my armor code

I'm trying to make it so whenever the player icodes wearing a specific armor and gets hurt it plays a sound, but its not working!

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The image is missing. But…
Sat, 08/09/2025 - 04:22

The image is missing. But you could make a global trigger "entity is attacked", then check if the entity is a player and if it has the right armor on it, then play the sound.