Started by
themodman
on
Topic category: Help with Minecraft modding (Java Edition)
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!
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
Thanks So Much QB. I've tried doing it for so long, Thanks again. Thank you!
Always a pleasure! :D
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?