So I'm not exactly an avid modder or coder. I get the basics (at least I think so ), but I've been having a problem with this one project that I've been working on...
Typically, for simplicity, I use MCreator so I don't have to spend hours and hours working on my projects. I could potentially learn how to code JavaScript for Minecraft, but I don't think I could figure it out. Anyways, my project is a mod for the show on Netflix, Trollhunters. I've created a lot of the items already, and soon, I plan to create the mobs (Trolls, Merlin, Gum Gums, etc). I found another Trollhunters mod, but it sucked because the person who made it just threw the amulet, sword, and armor into MCreator and called it quits. I'm NOT going to do that. I've been going into MCreator and tweaking the precompiled code to make each of the parts work exactly how I want them to. However, I'm stuck on this one thing with the Amulet of Daylight.
So for those of you who don't know the show, when the character, Jim Lake, says the magic words, "For the glory of Merlin, Daylight is mine to command!", the magic armor appears on his body, along with the Daylight sword in his hand.
My problem is with that. I want to set it up so that when the player presses 'M', the armor appears in their armor slots, along with the Daylight sword in the handheld slots, and the Amulet should disappear from their inventory too. So, I already have the 'M'-key-pressed-action-thing set up, I just need some help with the code to make the armor appear in the inventory.
I've been looking through the internet and I can't seem to find anything that works. Everybody is talking in huge code terms and I have no clue what any of those words mean until I actually look at the code and make some sort of sense of it. I just need some sort of method to add the armor to the correct armor slots. I don't know too much about coding JavaScript, so please try to keep it simple and describe what each part does so I can learn something from this.
Thank you for your help (If you do in fact help)!
(P.S: I will be sure to credit you in some way if you do help, be it easter eggs or straight up crediting. Also, you never know if this mod will get big, so just consider that before you leave this page... )