Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How to create a custom AntiBot

How to create a custom AntiBot

Scheduled Pinned Locked Moved ScriptAPI
19 Posts 8 Posters 706 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ohno
    replied to yorik100 on last edited by ohno
    #6

    @yorik100 ++ in java is -
    I think, he meant, this:

    float mario = 0F;
    
    if (mario == 0.0F) {
        ++mario; 
        // ++ is -, then ++mario is -mario
    }
    
    yorik100Y 1 Reply Last reply
    0
    • yorik100Y Offline
      yorik100Y Offline
      yorik100
      replied to ohno on last edited by
      #7

      @ohno said in How to create a custom AntiBot:

      @yorik100 ++ in java is -
      I think, he meant, this:

      float mario = 0F;
      
      if (mario == 0.0F) {
          ++mario; 
          // ++ is -, then ++mario is -mario
      }
      

      i++ is like i = i + 1 actually bruh

      exit scammedE A 2 Replies Last reply
      0
      • exit scammedE Offline
        exit scammedE Offline
        exit scammed
        replied to yorik100 on last edited by exit scammed
        #8

        @yorik100 ye (or it just i += 1)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Aftery
          replied to yorik100 on last edited by
          #9

          @yorik100 rookie mistake

          yorik100Y 1 Reply Last reply
          0
          • yorik100Y Offline
            yorik100Y Offline
            yorik100
            replied to Aftery on last edited by yorik100
            #10

            @aftery said in How to create a custom AntiBot:

            @yorik100 rookie mistake

            It reads the value and then adds + 1 duh, makes sense to me

            1 Reply Last reply
            0
            • N Offline
              N Offline
              NoobDev638
              replied to idk my name on last edited by NoobDev638
              #11

              @idk-my-name said in How to create a custom AntiBot:

              @NoobDev638
              i dont fucking care if for-cycle is wrong or entityplayer getter is wrong smh

              boolean isBot;
              
              for(Entity o : mc.theWorld.getLoadedEntityList[o]) {
                  final EntityPlayer retard = (EntityPlayer) o;
                  if (retard.getInventory().getHeldItem().getItem() instanceof ItemSword) { 
                      isBot = true; 
                  }
              }
              

              Thank you for your answer!
              But how do I make it so that the killaura is not attacking the player anymore?
              I mean just because isBot is true for a player doesent mean he is flagged as a bot by the killaura and aimbot etc.
              Also I'm european so sorry for the late answers but I was asleep.

              CzechHekC I 2 Replies Last reply
              0
              • CzechHekC Offline
                CzechHekC Offline
                CzechHek
                replied to NoobDev638 on last edited by CzechHek
                #12

                @noobdev638 The best way to prevent KillAura from attacking it is just by removing the entity from world. There are other ways, such as adding the target as a friend or somehow spamming KillAura.target to null or smth like that, those ways aren't ideal, at all.

                N 1 Reply Last reply
                0
                • I Offline
                  I Offline
                  idk my name
                  replied to NoobDev638 on last edited by
                  #13

                  @noobdev638 Smth like

                  if (isBot) {
                      mc.theWorld.removeEntityFromWorld(retard);
                  }
                  
                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    NoobDev638
                    replied to CzechHek on last edited by NoobDev638
                    #14

                    @czechhek @idk-my-name
                    Thank you for your suggestions!
                    Removing the entity from the world seems like a pretty good way to do it.

                    1 Reply Last reply
                    0
                    • ForeheadchanF Offline
                      ForeheadchanF Offline
                      Foreheadchan
                      wrote on last edited by
                      #15

                      why does everyone have such retarded ways to get entities bruhhhh, as most bots are player entities just do this (please don't use Object to get entities if not needed, because that's just not logical even tough it works)

                      for(EntityPlayer entity : mc.theWorld.playerEntities) {
                          if(!(entity instanceof EntityPlayerSP)) {
                              [C O D E]
                          }
                      }
                      
                      CzechHekC 1 Reply Last reply
                      0
                      • CzechHekC Offline
                        CzechHekC Offline
                        CzechHek
                        replied to Foreheadchan on last edited by
                        #16

                        @foreheadchan wdym if(!(entity instanceof EntityPlayerSP))

                        for each (entity in mc.theWorld.playerEntities) print(entity);
                        
                        or
                        
                        for (i in mc.theWorld.playerEntities) print(mc.theWorld.playerEntities[i]);
                        
                        or
                        
                        mc.theWorld.playerEntities.forEach(function (entity) print(entity));
                        
                        
                        ForeheadchanF 1 Reply Last reply
                        0
                        • ForeheadchanF Offline
                          ForeheadchanF Offline
                          Foreheadchan
                          replied to CzechHek on last edited by
                          #17

                          @czechhek to not check for mc.thePlayer

                          CzechHekC 1 Reply Last reply
                          0
                          • CzechHekC Offline
                            CzechHekC Offline
                            CzechHek
                            replied to Foreheadchan on last edited by
                            #18

                            @foreheadchan oh yeah makes sense
                            entity != mc.thePlayer is straight-forwarder (tf is that word)

                            ForeheadchanF 1 Reply Last reply
                            0
                            • ForeheadchanF Offline
                              ForeheadchanF Offline
                              Foreheadchan
                              replied to CzechHek on last edited by
                              #19

                              @czechhek yeah that works too, either check not instanceof or not equal to

                              1 Reply Last reply
                              0

                              About
                              • Terms of Service
                              • Privacy Policy
                              • Status
                              • Contact Us
                              Downloads
                              • Releases
                              • Source code
                              • License
                              Docs
                              • Tutorials
                              • CustomHUD
                              • AutoSettings
                              • ScriptAPI
                              Community
                              • Forum
                              • Guilded
                              • YouTube
                              • Twitter
                              • D.Tube
                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups