Started by
RangerRed2002
on
Topic category: Help with Minecraft modding (Java Edition)
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.
I think that its impossible to do it with procedures sorry
When you say item do you mean when you right click with a diamond chest it equips?
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
sorry, it's not "slot.armor.body", it's "slot.armor.chest"
thanks, you really helped