└── SilentSwitch.java /SilentSwitch.java: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | public final class SilentSwitch { 4 | 5 | private int PreviousSlot = -1; 6 | final int Slot = -1; 7 | 8 | Slot = GetItemSlot(); // Replace by your item finding function 9 | if (Slot == -1) return; 10 | 11 | PreviousSlot = mc.player.inventory.currentItem; 12 | if (PreviousSlot == Slot) return; 13 | 14 | mc.player.connection.sendPacket(new CPacketHeldItemChange(Slot)); 15 | // Action (Crystal Placement) 16 | mc.player.connection.sendPacket(new CPacketHeldItemChange(PreviousSlot)); 17 | mc.playerController.updateController(); 18 | } 19 | --------------------------------------------------------------------------------