Started by
aidanete
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to detect if the player has a full armor of specific material from my mod, if true, it will null damage from certain blocks and some more. However, it doesn't pull anything, doesn't matter I have the full armor, partial, other or none armor.
Here is the image of the code. It detects if the armor is not full, and if it's not full, do all the bad things:
Can anyone help me?
Slot 0 is for boots and 3 for helmet. You have turned them around.
Ah, sorry! I thought that but I felt it like no sense. Thank you very much :)
I have a question: Why do you wanna give yourself a Potion Effect with Level 0?
level 0 is level 1 in index
Oh right, I just wasn't sure if level 0 is level 1 in index, cuz I never tried lvl 0 and didn't even think about it.
I can't find the "get armor from item slot" block. Has it been removed from MCreator?
No, the name was changed.
Keep searching.
What is the code block named now? I'm very new, and I've searched through all of the entity data and management, all the item procedures, all the player data and management, and everything else I could think of relating to this issue, and I did not find it.
MCreator 2023.2 It's under the "entity data" tab
https://imgur.com/5YSIERj
You can also use search bar on the top to search for the procedure blocks
Do you know how to get the enchantments applied to the armor ?
Get item from the armor slot and then use item procedures to check data from the stack returned
Thank you