Started by
twistcharlie312
on
Topic category: Help with Minecraft modding (Java Edition)
how do I check for if the player is wearing certain armour?
Edited by twistcharlie312 on Mon, 12/23/2019 - 17:08
Topic category: Help with Minecraft modding (Java Edition)
how do I check for if the player is wearing certain armour?
Hey @twistcharlie312, if you go to the player procedures tab, you can see there is a block called "check player armor slot "0" ".
using the logical operation of item = item(thats the yellow block with diamonds). Place the check block in the first space. Then go to the Minecraft Components tab and take the item block( the one with the diamond). Double click it and select your armor and place the block in the second space. Take the equation block and place it as the condition for an if block. Done!
there's only a yellow one with cube an diamond and it don't work
oh i know how i think i used the wrong armor one lol
so wat number for the chestplate???
Look at this:
https://minecraft-de.gamepedia.com/Datei:Spieler-Inventar-Slot-IDs.png