Advertisement
HackedClint

Untitled

Jul 20th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. AuraUtils.getEntityList(this).forEach(entityLivingBase -> {
  2. if (this.currentTarget == null) {
  3. if (AuraUtils.isValid(this, entityLivingBase))
  4. this.currentTarget = entityLivingBase;
  5. else {
  6. currentTarget = null;
  7. return;
  8. }
  9. }
  10. });
  11. if (!AuraUtils.isValid(this, this.currentTarget)) {
  12. currentTarget = null;
  13. }
  14. if (this.getBool("Autoblock") && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel") && AuraUtils.canBlock() && currentTarget != null) {
  15. mc.thePlayer.setItemInUse(mc.thePlayer.getHeldItem(), 155);
  16. }
  17. else {
  18. if (this.getBool("Autoblock") && !mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel") && AuraUtils.canBlock() && currentTarget != null) {
  19. mc.thePlayer.setItemInUse(mc.thePlayer.getHeldItem(), 155);
  20. mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(
  21. C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
  22. }
  23. }
  24. if (currentTarget != null) {
  25. Float[] rotations = EntityHelper.getEntityRotations2(this.mc.thePlayer, this.currentTarget);
  26. event.yaw = rotations[0].floatValue();
  27. event.pitch = rotations[1].floatValue();
  28. if (this.attackTimer.hasReached(CPS.longValue())) {
  29. mc.thePlayer.swingItem();
  30. mc.thePlayer.sendQueue.addToSendQueue(
  31. new C02PacketUseEntity(this.currentTarget, C02PacketUseEntity.Action.ATTACK));
  32. this.attackTimer.reset();
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement