CCBlueX Forum

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

    Radius-Antibot-Script for Jartex/Matrix/Other

    Scripts
    6
    20
    1586
    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.
    • bestnub
      bestnub last edited by

      Removes Bots allways staying in range.
      Default values work for JartexSW.

      Todo: Add time check to decrease radius

      Download:
      RadiusAntiBot v1.0

      Code:

      /// api_version=2
      var script = registerScript({
          name: "RadiusAntiBot",
          version: "1.0",
          authors: ["BestNub"]
      });
      
      var EntityPlayer = Java.type("net.minecraft.entity.player.EntityPlayer");
      var EventState = Java.type("net.ccbluex.liquidbounce.event.EventState");
      var notAlwaysInRadius = [];
      
      script.registerModule({
          name: "RadiusAntiBot",
          description: "Removes bots always in radius.",
          category: "Misc",
          settings: {
              radius: Setting.float({
                  name: "Radius",
                  default: 20.0,
                  min: 10.0,
                  max: 100.0
              }),
              removeRadius: Setting.float({
                  name: "RemoveRadius",
                  default: 10.0,
                  min: 0.0,
                  max: 10.0
              }),
              chatLog: Setting.boolean({
                  name: "ChatLog",
                  default: false
              }),
          }
      }, function (module) {
          module.on("enable", function () {
              notAlwaysInRadius = [];
          });
      
          module.on("world", function (event) {
              notAlwaysInRadius = [];
          });
      
          module.on("update", function () {
              var entityList = mc.theWorld.getLoadedEntityList();
              var playerList = [];
      
              for (var i in entityList)
                  if (entityList[i] instanceof EntityPlayer)
                      playerList.push(entityList[i]);
      
              for (var i in playerList) {
                  var currentEntity = playerList[i];
      
                  if (notAlwaysInRadius.indexOf(currentEntity.getEntityId()) == -1 && mc.thePlayer.getDistanceToEntity(currentEntity) > module.settings.radius.get()) {
                      notAlwaysInRadius.push(currentEntity.getEntityId());
                      if (module.settings.chatLog.get())
                          Chat.print("[RadiusAntiBot] " + currentEntity.getName() + " is a Player");
                  }
      
                  if (currentEntity != mc.thePlayer && notAlwaysInRadius.indexOf(currentEntity.getEntityId()) == -1 && mc.thePlayer.getDistanceToEntity(currentEntity) < module.settings.removeRadius.get()) {
                      mc.theWorld.removeEntity(currentEntity);
                      if (module.settings.chatLog.get())
                          Chat.print("[RadiusAntiBot] Removed " + currentEntity.getName());
                  }
              }
          });
      });
      
      M 1 Reply Last reply Reply Quote 0
      • T
        Teals53 last edited by Teals53

        whatta smart idea ❤

        edit: lol my first useable script

        https://prnt.sc/tm1dep

        1 Reply Last reply Reply Quote 0
        • M
          mems Moderator @bestnub last edited by mems

          @bestnub I think your script needs a bit more work, or I've used it wrongly:

          Before enabling RadiusAntiBot:
          Base Profile Screenshot 2020.07.21 - 19.43.32.39.png
          After enabling RadiusAntiBot:
          Base Profile Screenshot 2020.07.21 - 19.43.37.71.png

          bestnub 1 Reply Last reply Reply Quote 0
          • bestnub
            bestnub @mems last edited by bestnub

            @mems In lobbys it removes other players. But once you joined a round it works

            M 1 Reply Last reply Reply Quote 0
            • M
              mems Moderator @bestnub last edited by mems

              @bestnub So what you tell me is that it first removes all the players to confirm they're not bots, then adds them back ?

              bestnub 1 Reply Last reply Reply Quote 0
              • bestnub
                bestnub @mems last edited by

                @mems no it removes players that spawn in your set radius. if they appear on the screen over 20 [default] blocks away the script knows it is a player, if not it removes them if they get closer than 10 [default]blocks.

                M 1 Reply Last reply Reply Quote 0
                • M
                  mems Moderator @bestnub last edited by mems

                  @bestnub I just tried playing bedwars and it removed the opponent next to me.. And it still wouldn't be confirmed as a player, leading to me losing against him in "invisibility" mode lol

                  EDIT: @bestnub Seems like whoever I run up to, the script removes them, no matter what settings I use.

                  bestnub 1 Reply Last reply Reply Quote 0
                  • bestnub
                    bestnub @mems last edited by

                    @mems try changeing the range value. But i don't recomend it lower than 15 blocks. I only tested it in SkyWars where the Players allways start far away.

                    1 Reply Last reply Reply Quote 0
                    • T
                      Teals53 last edited by

                      its working pretty good for me in skywars from jartex without problems ?

                      1 Reply Last reply Reply Quote 0
                      • M
                        mems Moderator last edited by

                        I had it on, and the bot was still visible, no other AntiBots enabled, only this..

                        1 Reply Last reply Reply Quote 0
                        • CzechHek
                          CzechHek last edited by CzechHek

                          This antibot isn't the ideal one because it will remove any player that isn't moving when ur not moving as well....

                          Edit: I though it checked for constant distance but it checks for radius so it will remove any player that is closer than radius value and wasn't blacklisted by being further

                          bestnub 1 Reply Last reply Reply Quote 0
                          • bestnub
                            bestnub @CzechHek last edited by

                            @CzechHek Why would this happen?

                            1 Reply Last reply Reply Quote 0
                            • R
                              randomsize last edited by

                              What radius for Matrix?

                              1 Reply Last reply Reply Quote 0
                              • CzechHek
                                CzechHek last edited by CzechHek

                                Made an errorless AntiBot for Jartex.

                                JartexAntiBot.js

                                module = {
                                    name: "JartexAntiBot",
                                    author: "CzechHek",
                                    category: "Combat",
                                    version: 1.1,
                                    onPacket: function (e) {
                                        e.getPacket() instanceof S38PacketPlayerListItem && mc.thePlayer.capabilities.allowEdit && e.getPacket().getAction() == "ADD_PLAYER" && (info = e.getPacket().getEntries().get(0)).getGameMode() == "SURVIVAL" && info.getDisplayName() && (e.cancelEvent(), chat.print("§2Removed bot§a: " + info.getDisplayName().getUnformattedText()));
                                    }
                                }
                                
                                script.import("Core.lib");
                                
                                M bestnub 2 Replies Last reply Reply Quote 0
                                • M
                                  mems Moderator @CzechHek last edited by mems

                                  @CzechHek That. was. all? 😮

                                  1 Reply Last reply Reply Quote 0
                                  • bestnub
                                    bestnub @CzechHek last edited by

                                    @CzechHek but how do you get the entity from the info. It correctly identifies the bot, but doesn't remove it.

                                    U CzechHek 2 Replies Last reply Reply Quote 0
                                    • U
                                      ultraskid @bestnub last edited by

                                      @bestnub Why would you remove it? This works perfectly and removing it is just a cosmetic feature

                                      1 Reply Last reply Reply Quote 0
                                      • CzechHek
                                        CzechHek @bestnub last edited by

                                        @bestnub It cancels the packet adding the entity, if you look closely.

                                        bestnub 1 Reply Last reply Reply Quote 0
                                        • M
                                          mems Moderator last edited by

                                          When I get kicked with CzechHek's AntiBot enabled on JartexNetwork and rejoin, bots are gone, and if I rejoin Bedwars, everyone will be gone, most likely invisible to me. Anyone else having the issue?

                                          1 Reply Last reply Reply Quote 0
                                          • bestnub
                                            bestnub @CzechHek last edited by

                                            @CzechHek oh i didn't notice it. One-Line-Coding-Style is not my favorite

                                            1 Reply Last reply Reply Quote 3
                                            • 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