Making an item that equips armor on right click?

Started by RangerRed2002 on

Topic category: Help with modding (Java Edition)

Last seen on 00:49, 25. Jun 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making an item that equips armor on right click?

Hello. I’m wanting to make an item that equips armor when you right click. How would I do this? I wanted to make a procedure where it adds an item to a specific inventory slot (armor slot), but I can’t seem to find a procedure like that. Can anyone help? Any help would be appreciated.

Last seen on 09:44, 16. Nov 2019
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that its impossible…
Fri, 10/11/2019 - 18:18

I think that its impossible to do it with procedures sorry

 

Last seen on 21:47, 24. Sep 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you say item do you…
Tue, 10/29/2019 - 22:55

When you say item do you mean when you right click with a diamond chest it equips?

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a way to do that,…
Wed, 10/30/2019 - 05:15

There is a way to do that, you need both MCreator procedures and vanilla minecraft knowledge.

 

Step 1: Make a procedure "when item is right-clicked"

 

Step 2: Select the entity procedure tab, choose this procedure block "execute command in the name of provided entity"

 

Step 3: Wite down this command in the blank space: "replaceitem entity @p slot.armor.head minecraft:diamond_helmet" Please note that you can change "minecraft:diamond_helmet" into your custom modded armor, replace "minecraft" with your mod's name and you can replace "diamond_helmet" into your armor id, for example, rubymod:ruby_helmet

 

Step 4: Duplicate the previous command for 3 times but replace the "slot.armor.head" into "slot.armor.body" or "slot.armor.legs" and finally, "slot.armor.feet" in those new duplicated procedure blocks

 

Step 5: There you go, an item that equips armor when right-clicked.

 

I hope my instructions are clear for you but if the instruction is unclear or you need more information, please watch this video: https://www.youtube.com/watch?v=nwJweix-mOU&t=177s

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry, it's not "slot.armor…
Thu, 03/12/2020 - 07:02

sorry, it's not "slot.armor.body", it's "slot.armor.chest"

Last seen on 18:26, 12. Feb 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, you really helped
Sat, 11/26/2022 - 23:16

thanks, you really helped