CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to add teams and antibot to this

    Requests
    3
    2
    136
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Plumer Man
      Plumer Man last edited by

      function getClosestEntity() {
          var filteredEntites = []
          for (var i in mc.theWorld.loadedEntityList) {
              var entityC = mc.theWorld.loadedEntityList[i]	
      		if (EntityUtils.targetMobs && (entityC instanceof EntityMob || entityC instanceof EntitySlime)){
                  filteredEntites.push(entityC)
      		}
      			
      		if (EntityUtils.targetAnimals && (entityC instanceof EntityAnimal || entityC instanceof EntitySquid)){
                  filteredEntites.push(entityC)
      		}
      			
      		if (EntityUtils.targetPlayer && (entityC instanceof EntityPlayer && entityC != mc.thePlayer)){
      			filteredEntites.push(entityC)
      		}
      
      1 Reply Last reply Reply Quote 0
      • C
        commandblock2 last edited by

        ModuleAntiBot = LiquidBounce.moduleManager.getModule("AntiBot")
        
        filteredList = Java.from(mc.theWorld.loadedEntityList)
        
        .filter(function(entity) {
            // The function was private, you can use Reflector from Core.lib or you can manually setAccessible
            return !Reflector(ModuleAntiBot).isBot(entity)
        })
        
        .filter(function(entity) {
            // your code here
            // EntityUtils ....
            return true
        })
        
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        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