Jump to content

Recommended Posts

Posted (edited)
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.

Edited by portalthree
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.