Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. Get armor of a player

Get armor of a player

Scheduled Pinned Locked Moved Unsolved ScriptAPI
13 Posts 4 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CzechHekC CzechHek

    @britishbiscuit no

    Plumer ManP Offline
    Plumer ManP Offline
    Plumer Man
    wrote on last edited by
    #4

    @czechhek How almight czechhek teach us the way!

    CzechHekC 1 Reply Last reply
    0
    • CzechHekC CzechHek

      @britishbiscuit no

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #5

      @czechhek say it then

      1 Reply Last reply
      1
      • Plumer ManP Plumer Man

        @czechhek How almight czechhek teach us the way!

        CzechHekC Offline
        CzechHekC Offline
        CzechHek
        wrote on last edited by
        #6

        @plumer-man https://github.com/CzechHek/Core/blob/82457082bb5bd82b3abbad668d9667fae123407b/Scripts/InventoryManager.js#L384

        ? Plumer ManP 2 Replies Last reply
        0
        • CzechHekC CzechHek

          @plumer-man https://github.com/CzechHek/Core/blob/82457082bb5bd82b3abbad668d9667fae123407b/Scripts/InventoryManager.js#L384

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #7

          @czechhek bruh

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #8

            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);
            
            1 Reply Last reply
            0
            • CzechHekC CzechHek

              @plumer-man https://github.com/CzechHek/Core/blob/82457082bb5bd82b3abbad668d9667fae123407b/Scripts/InventoryManager.js#L384

              Plumer ManP Offline
              Plumer ManP Offline
              Plumer Man
              wrote on last edited by
              #9

              @czechhek not my self other players

              CzechHekC A 2 Replies Last reply
              0
              • Plumer ManP Plumer Man

                @czechhek not my self other players

                CzechHekC Offline
                CzechHekC Offline
                CzechHek
                wrote on last edited by
                #10

                @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 ManP 1 Reply Last reply
                0
                • CzechHekC CzechHek

                  @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 ManP Offline
                  Plumer ManP Offline
                  Plumer Man
                  wrote on last edited by
                  #11

                  @czechhek

                  [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
                  
                  1 Reply Last reply
                  0
                  • Plumer ManP Plumer Man

                    @czechhek not my self other players

                    A Offline
                    A Offline
                    Aftery
                    wrote on last edited by
                    #12
                    This post is deleted!
                    Plumer ManP 1 Reply Last reply
                    1
                    • A Aftery

                      This post is deleted!

                      Plumer ManP Offline
                      Plumer ManP Offline
                      Plumer Man
                      wrote on last edited by
                      #13

                      @aftery Thanks

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      About
                      • Terms of Service
                      • Privacy Policy
                      • Status
                      • Contact Us
                      Downloads
                      • Releases
                      • Source code
                      • License
                      Docs
                      • Tutorials
                      • CustomHUD
                      • AutoSettings
                      • ScriptAPI
                      Community
                      • Forum
                      • Guilded
                      • YouTube
                      • Twitter
                      • D.Tube
                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups