How to trigger events on armor equip \ unequip?

Started by ivan122 on

Topic category: Help with modding (Java Edition)

Last seen on 10:57, 25. Jul 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to trigger events on armor equip \ unequip?

I need to change a variable when armor is equipped or unequipped

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need more information. Are…
Wed, 07/08/2020 - 04:58

I need more information. Are you talking about any type of armor or specific armor?

Last seen on 10:57, 25. Jul 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The one I'm trying to create 
Thu, 07/09/2020 - 08:09

The one I'm trying to create 

Last seen on 10:57, 25. Jul 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like, when part of a set is…
Thu, 07/09/2020 - 08:09

Like, when part of a set is equipped, x variable gets +200; unequipped means -200

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry i took so long to…
Fri, 07/10/2020 - 18:52

Sorry i took so long to respond i had allot going on but this took me like 5 secs to make very simple what it will do is compare 

all armor slots in vanilla to item you have set to. I would put it on (Global trigger) On player tick update.

Image

 

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
your procedure will do the …
Sat, 07/11/2020 - 05:03

your procedure will do the "do" section on every player tick, probably not what op wants. i think he wants it to do something once when put on or taken off.

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This code/procedure will…
Sat, 07/11/2020 - 09:12

This code/procedure will work for you it enables 1 time when it's put on and disables 1 time after taken off.

Remember to put this in a procedure with (Global Trigger) On Player Tick Update.

The send message to entity is just so you get the idea, it's NOT needed for this.

Image 

Last seen on 10:57, 25. Jul 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Tue, 07/14/2020 - 13:42

Thank you!

Last seen on 17:37, 28. Mar 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you post the image…
Mon, 03/22/2021 - 16:53

could you post the image again, it is no longer availibile, thank you!

Last seen on 20:08, 6. Sep 2022
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the imagine is gone xD
Thu, 06/30/2022 - 16:29

the imagine is gone xD

Last seen on 10:27, 25. Jan 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bruh that image  
Sun, 01/15/2023 - 02:32

bruh that image

 

Last seen on 16:12, 23. Mar 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I need according to the…
Sat, 07/22/2023 - 23:41

What I need according to the idea .. but the screenshot is lost .. And I don’t understand how to do it