
portalthree
Members-
Content Count
3 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout portalthree
-
Rank
Tree Puncher
-
Check all items in a chest for a specific item [1.8.9]
portalthree replied to portalthree's topic in Modder Support
I'm making a mod to make hypixel skyblock players life a bit easier ig and this would save a bunch of time to everyone -
Check all items in a chest for a specific item [1.8.9]
portalthree replied to portalthree's topic in Modder Support
Where am i supposed to get 1.8.9 support then? -
if (ToggleCommand.) { if (Minecraft.getMinecraft().instanceof GuiChest) { GuiChest = (GuiChest) Minecraft.getMinecraft().; ContainerChest = (ContainerChest) .; String = .getLowerChestInventory().getDisplayName().getUnformattedText(); if (.trim().startsWith("Select all the SILVER items!")) { System.out.println(); if(cc.getLowerChestInventory().getStackInSlot().getDisplayName().startsWith("Silver")){ System.out.println("Silver block detected"); } else { return; } } else { return; } } } I need to check all the items in cc to see if there is an item wich name start with "Silver", if i use getStackInSlot() i have to specify wich slot i want to check and that's not effecient since i'll have to copy that lign like 40 times.