CCBlueX Forum

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

    AutoBlockPicker for scaffold pls

    ScriptAPI
    5
    11
    248
    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.
    • E
      EazyHacker last edited by

      Can you give me autoblockpicker for scaffold

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

        liquidbounce's scaffold already have it
        but if you want to make it not silent, you can skid scaffold's codes xdxd

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

          make feature request in github
          or skid code ur self

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by A Former User

            My code:

            Scaffold(I am lazy so I use kt to show these, may have errors)

            private val pickerValue = BoolValue("Picker", true)
            private val pickerSlotValue = IntValue("PickerSlot", 3, 1, 9)
            //...
            //on find slot
            var slot = InventoryUtils.findAutoBlockBlock(pickerValue.get())
            if (slot == -1) 
                return
            else if ((slot - 9 or 35 - slot) >= 0) {
                mc.playerController.windowClick(0, slot, pickerSlotValue.get() - 1, 2, mc.thePlayer)
                slot = pickerSlotValue.get() - 1
            }
            //...send Packet
            

            InvUtils

            @JvmStatic
            fun canAutoBlock(itemStack: ItemStack) = itemStack?.item is ItemBlock && itemStack?.item.block !in BLOCK_BLACKLIST
            
            @JvmStatic
            fun findAutoBlockBlock(pick: Boolean): Int = 
                (36..44).map{ it to mc.player.inventoryContainer.getSlot(it).stack }
                        .filter{ canAutoBlock(it.second) }.firstOrNull()?.first ?: 
                    if (pick) 
                        (9..35).map{ it to mc.player.inventoryContainer.getSlot(it).stack }
                            .filter{ canAutoBlock(it.second) }.maxBy{ it.second.stackSize }?.first ?: -1
                    else -1
            

            enjoy 😛

            1 Reply Last reply Reply Quote 0
            • Senk Ju
              Senk Ju Admin last edited by

              Just use InventoryCleaner. It can automatically put blocks in your hotbar.

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

                No
                he mean
                when he turn on scaffold
                a script will automatic select the hotbar have block(becuz he too lazy to select it with hand)

                1 Reply Last reply Reply Quote 0
                • Senk Ju
                  Senk Ju Admin last edited by

                  Scaffold has this feature as well. It's called AutoBlock.

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

                    No
                    some anticheat have patch spoof item in hotbar to switch item sliently(matrix patched it)

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @LolMC last edited by

                      @LolMC mc.thePlayer.currentItem = slot - 36
                      just like AutoWeapon

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

                        i have do that lol

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

                          https://forums.ccbluex.net/topic/170/autofindblock

                          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