Help with changing armor

Started by nedonator on

Topic category: Help with modding (Java Edition)

Last seen on 20:56, 17. Dec 2020
Joined May 2020
Points:

User statistics:

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

Hi, I'm trying to change a certain armor from the player's armor slot according to what item you right-click. Ex: If I right click with a gem on my hand, I want my armor to change. For some reason, when I try to save the procedure, MCreator says: you have selected an external trigger that does not provide the following dependencies: itemstack.

Here's the printscreen of my code 

https://docs.google.com/drawings/d/1W4AHg4fgwvI6M0VyEGrIdCSFIZ-wvBDEonofjmk8C7g/edit?usp=sharing

 

 

Last seen on 14:24, 21. Feb 2022
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know what the…
Sun, 05/24/2020 - 07:02

I don't know what the problem is but i can fix it:

Instead of using Provided Item use Item in Main Hand of Provided Entity.

 

Last seen on 18:59, 28. Mar 2024
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes that should work, I use…
Sun, 05/24/2020 - 09:00

Yes that should work, I use that for item related procedures. Yet again, I'm not some procedure pro so idk.

Last seen on 14:24, 21. Feb 2022
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know now why it doesn't…
Sun, 05/24/2020 - 14:04

I know now why it doesn't work. It's because you don't need to check the item if it's a procedure triggerd form using a specific item.

Last seen on 20:56, 17. Dec 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok thx
Tue, 10/06/2020 - 21:45

ok thx

Last seen on 20:56, 17. Dec 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it worked!
Tue, 10/06/2020 - 21:45

it worked!