Soup counter

Posts 1–4 of 4 · Page 1 of 1
Soup counter
Code:
int soop = 0;
            for(ItemStack e : mc.thePlayer.inventory.mainInventory) {
                if(e == null) {
                    continue;
                } else {
                    if(e.getItem() instanceof ItemSoup) {
                        soop += e.stackSize;
                    }
                }
            }

            this.mc.fontRenderer.drawString("Soop:" + soop, 10, 10, 0xffffff, true);
Quote Originally Posted by godshawk View Post
Code:
int soop = 0;
            for(ItemStack e : mc.thePlayer.inventory.mainInventory) {
                if(e == null) {
                    continue;
                } else {
                    if(e.getItem() instanceof ItemSoup) {
                        soop += e.stackSize;
                    }
                }
            }

            this.mc.fontRenderer.drawString("Soop:" + soop, 10, 10, 0xffffff, true);
Totally belongs in GuiIngame lulz
Quote Originally Posted by zrbteam View Post
Totally belongs in GuiIngame lulz
Well, that's where I threw it together to test it... :3
Quote Originally Posted by godshawk View Post
Well, that's where I threw it together to test it... :3
You do realize It keeps add more than enough soup for you :/
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us