Get armor of a player
-

-
@plumer-man
do a loop in mc.thePlayer.inventory and 0 - 4 should be the armor slots (not sure though), i think mc.thePlayer.inventory is broken on scriptapi, so good luck -
@plumer-man
do a loop in mc.thePlayer.inventory and 0 - 4 should be the armor slots (not sure though), i think mc.thePlayer.inventory is broken on scriptapi, so good luck -
@czechhek How almight czechhek teach us the way!
-
@czechhek say it then
-
@czechhek How almight czechhek teach us the way!
-
@czechhek bruh
-
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); -
@czechhek not my self other players
-
@czechhek not my self other players
@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
-
@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 -
@czechhek not my self other players
-
@aftery Thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login