CCBlueX Forum

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

    Autofindblock

    Scripts
    8
    21
    1014
    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.
    • LolMC
      LolMC last edited by

      Autofindblock
      Version:1.0
      Description:Help you choose the hotbar have block when use scaffold/tower
      Changlog:
      -1.0:first release

      var scriptName = "Autofindblock"
      var scriptAuthor = "Lolmc"
      var scriptVersion = 1.0
      
      var towerModule = moduleManager.getModule("Tower");
      var scaffoldModule = moduleManager.getModule("Scaffold");
      var InventoryUtils = Java.type("net.ccbluex.liquidbounce.utils.InventoryUtils");
      var blockSlot = -1
      var slot = null
      
      function Autoblock() {
      	this.getName = function() {
              return "AutoFindBlock";
          };
          this.getTag = function() {
              return "idk";
          };
          this.getDescription = function() {
              return "help u find block and pick them";
          };
          this.getCategory = function() {
              return "World";
          };
          
          this.onUpdate = function() {
              blockSlot = InventoryUtils.findAutoBlockBlock();
      
              if(slot == null) { // by commandblock2
              slot = mc.thePlayer.inventory.currentItem
              }
      
              if(blockSlot != -1) {
                  if(scaffoldModule.getState() || towerModule.getState()) {
                    mc.thePlayer.inventory.currentItem = blockSlot - 36
                    } else {
                    if(slot != null) {
                       mc.thePlayer.inventory.currentItem = slot
                       slot = null
                    }
      
                  }
             // chat.print(blockSlot);
              }
          }
      }
      
      
      var Autoblock = new Autoblock()
      var AutoblockClient
      
      function onLoad() {}
      
      function onEnable() {
          AutoblockClient = moduleManager.registerModule(Autoblock)
      }
      
      function onDisable() {
          moduleManager.unregisterModule(AutoblockClient)
      }
      
      1 Reply Last reply Reply Quote 1
      • Pechika Lolo
        Pechika Lolo last edited by

        hmm noice 🙂

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

          no one care my script :axosad:

          ChocoPie_isme 1 Reply Last reply Reply Quote 0
          • ChocoPie_isme
            ChocoPie_isme Banned @LolMC last edited by

            @LolMC said in Autofindblock:

            no one care my script :axosad:

            yes im recoding my target hud script so i don't fucking care about this

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

              module = {
                  name: "AutoFindBlock",
                  category: "Misc",
                  description: "Helps you to automatically select a block",
                  author: "Lolmc, CzechHek",
                  version: "2.1",
                  onUpdate: function () {
                      if ((ScaffoldModule.state || TowerModule.state) && ~(blockSlot = InventoryUtils.findAutoBlockBlock())) {
                          !~slot && (slot = mc.thePlayer.inventory.currentItem);
                          mc.thePlayer.inventory.currentItem = blockSlot - 36;
                          mc.playerController.updateController();
                      } else if (~slot) {
                          mc.thePlayer.inventory.currentItem = slot;
                          mc.playerController.updateController(); slot = -1;
                      }
                  }
              }
              
              var slot = -1;
              script.import("Core.lib");
              
              M 1 Reply Last reply Reply Quote 0
              • Azure
                Azure last edited by

                one liner abilities

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

                  @CzechHek said in Autofindblock:

                  module = {
                  name: "AutoFindBlock",
                  category: "Misc",
                  description: "Helps you to automatically select a block",
                  author: "Lolmc, CzechHek",
                  onUpdate: function () {
                  if ((ScaffoldModule.state || TowerModule.state)) && ~(blockSlot = InventoryUtils.findAutoBlockBlock())) {
                  slot = slot || mc.thePlayer.inventory.currentItem;
                  mc.thePlayer.inventory.currentItem = blockSlot - 36;
                  mc.playerController.updateController();
                  } else if (slot) {
                  mc.thePlayer.inventory.currentItem = slot;
                  mc.playerController.updateController();
                  slot = null;
                  }
                  }
                  }

                  var slot;
                  script.import("Core.lib");

                  One liner one liner, but cannot see the 1 line script on Misc.

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

                    There was an additional ) in (ScaffoldModule.state || TowerModule.state)

                    now it is fixed
                    @mems

                    M 2 Replies Last reply Reply Quote 0
                    • CzechHek
                      CzechHek @Azure last edited by

                      @Azure what's your problem

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

                        @CzechHek Yet won't even appear on Misc.

                        EDIT: nvm, it did.

                        EDIT 2: Now it won't even detect the block to use for placing purposes.

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

                          @CzechHek I noticed a small bug. If your slot is on number 1 and want to switch to slots 2-9 and then turn off the Scaffold module, the script won't allow it to go back to slot 1 (where it originally was, before switching to any other slot)

                          Video to demonstrate:

                          https://streamable.com/kqf5c3

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

                            @mems Fixed that and added it to github, now it supports auto updates.

                            1 Reply Last reply Reply Quote 0
                            • G
                              Gabriel last edited by

                              make a verus fly script pls (test on omegacraft.cl)

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

                                Nothing is easy @Gabriel

                                1 Reply Last reply Reply Quote 0
                                • G
                                  Gabriel last edited by

                                  nothing is too hard either. i have aac scaffold dm me for config

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

                                    Everybody has an AAC Scaffold, and it's pretty easy to do so. In fact, someone else has already posted an AAC Scaffold config.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      Gabriel last edited by

                                      infinite one only needing one script

                                      A M 2 Replies Last reply Reply Quote 0
                                      • A
                                        Aftery @Gabriel last edited by

                                        @Gabriel ok mr

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

                                          @Gabriel lol, you know the requirements, then do it, why ask.

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            Gabriel @Aftery last edited by Gabriel

                                            @Aftery Ram Ranch – [01:10..06:50] 06:50
                                            — Grant MacDonald - Topic

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