Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. 10:20:29    MacroSK Client thread   info    KEY_L
  2. 10:20:29    MacroSK Client thread   info    COUNT++
  3.  
  4. -------------------------------LOG--------------------------------
  5.     private int count;
  6.     @SideOnly(Side.CLIENT)
  7.     @SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)
  8.     public void onTickEvent(TickEvent.ClientTickEvent event) {
  9.         if(event.phase == TickEvent.Phase.END) {
  10.             if (mc.inGameHasFocus) {
  11.                 if (keys[3].isKeyDown()) {
  12.                     LogHelper.info("KEY_L");
  13.                     if(this.count < 5)
  14.                     {
  15.                         this.count++;
  16.                         LogHelper.info("COUNT++");
  17.                     }
  18.                     else
  19.                     {
  20.                         LogHelper.info("Execute...");
  21.                         this.count = 0;
  22.                         Minecraft.getMinecraft().thePlayer.sendChatMessage(Ini.getIni("Loja"));
  23.                     }
  24.                 }
  25.             }
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement