Portl

Untitled

Oct 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @Mod(displayName = "Fast Use")
  2. public class FastUse extends Module
  3. {
  4. @EventTarget
  5. private void onUpdate(final UpdateEvent event) {
  6. if (event.getState() == Event.State.PRE && ClientUtils.player().getItemInUseDuration() == 16 && !(ClientUtils.player().getItemInUse().getItem() instanceof ItemBow) && !(ClientUtils.player().getItemInUse().getItem() instanceof ItemSword)) {
  7. for (int i = 0; i < 17; ++i) {
  8. ClientUtils.packet(new C03PacketPlayer(true));
  9. }
  10. ClientUtils.packet(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment