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

Started by themodman on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Mar 2016
Points:
752

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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!

Active 4 years ago
Joined May 2019
Points:
889

User statistics:

  • Modifications: 1
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 122
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

Active 5 years ago
Joined Mar 2016
Points:
752

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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!

Active 4 years ago
Joined May 2019
Points:
889

User statistics:

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

Always a pleasure! :D

Active 11 months ago
Joined May 2020
Points:
626

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?