How to replace armor piece in armor slot with another armor piece

Started by themodman on

Topic category: Help with modding (Java Edition)

Last seen on 03:36, 28. Feb 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to replace armor piece in armor slot with another armor piece

So I wanted to have a helmet which when a key is pressed will change the helmet to another one. Like if I have an item in my armor slot then when the press the key bind it should replace the item with another item. It is supposed to be in the armor slot and not inventory slot. Any help is appreciated!

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,…
Sat, 12/21/2019 - 14:39

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

 

Step 1: Select "On key pressed"
 

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 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.chest" or "slot.armor.legs" and finally,
"slot.armor.feet" in those new duplicated procedure blocks

 

Step 5: Done

 

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 03:36, 28. Feb 2020
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks So Much QB. I've…
Mon, 12/23/2019 - 07:04

Thanks So Much QB. I've tried doing it for so long, Thanks again. Thank you!

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Always a pleasure! :D
Mon, 12/23/2019 - 08:26

Always a pleasure! :D

Last seen on 01:46, 17. Sep 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry if it's hard to…
Tue, 09/17/2024 - 01:10

I'm sorry if it's hard to read, I don't speak English. Look, I want to make a 3D armor, but for some reason, I have to put a texture on the armor, so far so good, but I've already put several textures but it doesn't appear to select. Please, can someone help me with this?