Making an item that equips armor on right click?

Started by RangerRed2002 on Wed, 10/09/2019 - 13:16

Topic category: Help with MCreator modding

Last seen on 22:33, 8. Nov 2019
Joined Oct 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Making an item that equips armor on right click?
Wed, 10/09/2019 - 13:16

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 18:34, 3. Nov 2019
Joined May 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 19:28, 13. Nov 2019
Joined May 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 09:07, 14. Nov 2019
Joined May 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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