Get armor of a player
Unsolved
ScriptAPI
-
@britishbiscuit no
-
as of mr czechhek didn't wanna explain im explaining it on the worst way posible:
// kinda not recommend doing this on update but ok // counter is counter and "slots" is the armor slots var counter = 0, slots = Java.from(mc.thePlayer.inventory.armorInventory); // cicle though armor (cool !!!!!!!) for(var i in slots){ var slot = slots[i]; // if armor isn't null means that there is armor on the slot (wow !!!!!!!!!!!) if(slot != null){ // check if it is diamon !!!!!!! var item = slot.getItem(); if(item.getArmorMaterial().getName().equals("diamond")){ counter++; } } } Chat.print(counter);
-
@plumer-man then look into fields and methods of https://scriptapi.liquidbounce.net/net/minecraft/client/entity/EntityOtherPlayerMP.html
if you stumble upon java arrays then do Java.from to convert it and that way you should be able to figure it out by yourself
-
[email protected]:Milenabe!2005 | BenedettaCozzi [email protected]:Jimnfreddy8! | Eatea [email protected]:Peterpiper100! | Florponzo [email protected]:Banditthedog12! | geezattv [email protected]:Tyg26esk | emil_er_sej [email protected]:Teolou63@ | Sarliche [email protected]:SolusHelped12! | taelarity_ [email protected]:Cloud99! | lifesabre [email protected]:Gravhammer1! | Cornholio7926 [email protected]:Danny21250! | Potato_Angle [email protected]:Danamiki123 | i3lSugus [email protected]:leon2000 | Im_Skajo [email protected]:A1B2and& | JadeBoi13 [email protected]:Tommyitis0902 | _Fridka_ [email protected]:hannah71 | JBARK03 [email protected]:Random90!! | Seawattgaming [email protected]:Landrover=3 | c2sfox [email protected]:Biffyrock31!!! | ohmagerd [email protected]:ZoRaN1990! | MrDeadPixel [email protected]:Oibaf1998 | sf2xd [email protected]:EMmavargas13. | diamondbs [email protected]:Casperowns2! | Ub411 [email protected]:Pidders1 | RockstarLeah [email protected]:hunar2005 | Power_YouTube [email protected]:Valdosita4ever | Vladolado13 [email protected]:Copiccolors198 | MothClot [email protected]:Devintanner1 | dchampion0123 [email protected]:Silenced921 | Silenced921 [email protected]:3Dmeyers! | BoreRagnarock [email protected]:Tomas3021 | Wuatafak [email protected]:Sprite11. | E1f_King [email protected]:Arc0baleno | Garysa [email protected]:London9397 | Stefstaa [email protected]:Doud2805 | Minatos [email protected]:BasilHunter22 | jaimestansfield [email protected]:Pimpkilla7! | DarrenKnudsen [email protected]:Wolfe1234 | aliens491
-
This post is deleted!