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. Resources
  3. Scripts
  4. who can write the script? noSlotChanger in the client LB for Nextgen

who can write the script? noSlotChanger in the client LB for Nextgen

Scheduled Pinned Locked Moved Unsolved Scripts
7 Posts 3 Posters 226 Views
  • 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.
  • Q Offline
    Q Offline
    Q13
    wrote on last edited by
    #1

    the script does not allow the server anti-cheat to change the hotbara slot

    1 Reply Last reply
    0
    • CookieChineseC Offline
      CookieChineseC Offline
      CookieChinese
      wrote on last edited by CookieChinese
      #2

      NoSlotChanger 0.1.zip for Nextgen 0.28

      1 Reply Last reply
      0
      • C Offline
        C Offline
        commandblock2
        wrote on last edited by
        #3

        encoded a jar into base64 and embed in a script, not crazy at all xD.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          Q13
          wrote on last edited by
          #4

          it doesn't work, the hotbar keeps scrolling when I run and eat with noslow

          1 Reply Last reply
          0
          • C Offline
            C Offline
            commandblock2
            wrote on last edited by
            #5

            This might be more than just 'preventing the server side anti-cheat to change the hot bar slot' since you mentioned that you are using noslow while eating. Can you please post what anti cheat (might be using UpdateSelectedSlotS2CPacket to sync your hotbar) and what noslow modes are you using? (grim noslow modes switches your hotbar server side)

            internal class NoSlowSharedGrim2364MC18(override val parent: ChoiceConfigurable<*>) : Choice("Grim2364-1.8") {
            
                @Suppress("unused")
                private val onNetworkTick = handler<PlayerNetworkMovementTickEvent> { event ->
                    if (player.isUsingItem && event.state == EventState.PRE) {
                        // Switch slots so grim exempts noslow...
                        // Introduced with https://github.com/GrimAnticheat/Grim/issues/874
                        untracked {
                            val slot = player.inventory.selectedSlot
                            network.sendPacket(UpdateSelectedSlotC2SPacket(slot % 8 + 1))
                            network.sendPacket(UpdateSelectedSlotC2SPacket(slot % 7 + 2))
                            network.sendPacket(UpdateSelectedSlotC2SPacket(slot))
                        }
                    }
                }
            
            }
            
            

            Even if you refuse to accept any UpdateSelectedSlotS2CPacket and looks as if your hotbar is not switching, there could be a desync and you won't be able to eat food. Would appreciate if you could provide more information of what you are tying to do.

            c0dingnoobi created this issue in GrimAnticheat/Grim

            closed Slot switch with charged bow #874

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Q13
              wrote on last edited by
              #6

              Matrix AntiCheat Version: 7.14.3
              default noslow modes

              1 Reply Last reply
              0
              • C Offline
                C Offline
                commandblock2
                wrote on last edited by commandblock2
                #7

                Trying with matrix on loyisa.cn with noslow mode set to None indeed will move your slot to other items. However just like I assumed previously simply ignoring the packet just won't do, you can never eat the food, even if you immediately send back a slot change. You might need something else to make a nolow mode for matrix. If you need to verify yourself, here is your script anyway.

                
                
                function __require(path) {
                    if (path.startsWith("@embedded")) {
                        return globalThis
                    }
                
                    if (path.startsWith("@minecraft-yarn-definitions/types/")) {
                        return {
                            [path.substring(path.lastIndexOf("/") + 1)]: Java.type(path
                                .replaceAll("@minecraft-yarn-definitions/types/", "")
                                .replaceAll("/", ".")
                            )
                        }
                    }
                    return require(path);
                }
                var exports = {}
                
                "use strict";
                Object.defineProperty(exports, "__esModule", { value: true });
                // imports
                /* eslint-disable unused-imports/no-unused-imports */
                const _embedded_1 = __require("@embedded");
                /* eslint-enable unused-imports/no-unused-imports */
                // DO NOT TOUCH ANYTHING ABOVE THIS LINE, also not sure why it didn't work
                const UpdateSelectedSlotC2SPacket_1 = __require("@minecraft-yarn-definitions/types/net/minecraft/network/packet/c2s/play/UpdateSelectedSlotC2SPacket");
                const UpdateSelectedSlotS2CPacket_1 = __require("@minecraft-yarn-definitions/types/net/minecraft/network/packet/s2c/play/UpdateSelectedSlotS2CPacket");
                const script = _embedded_1.registerScript.apply({
                    name: "anti slot changing",
                    version: "1.0.0",
                    authors: ["commandblock2"]
                });
                script.registerModule({
                    name: "anti-slot-changing",
                    description: "like no rotate reset but for slots",
                    category: "Exploit",
                    settings: {
                        resyncServerSide: _embedded_1.Setting.boolean({
                            name: "resync server side",
                            default: true
                        })
                    },
                }, (mod) => {
                    mod.on("packet", (event) => {
                        var _a, _b, _c;
                        if (event.packet instanceof UpdateSelectedSlotS2CPacket_1.UpdateSelectedSlotS2CPacket) {
                            event.cancelEvent();
                            if (!mod.settings.resyncServerSide.get())
                                return;
                            (_a = _embedded_1.mc.getNetworkHandler()) === null || _a === void 0 ? void 0 : _a.sendPacket(new UpdateSelectedSlotC2SPacket_1.UpdateSelectedSlotC2SPacket((_c = (_b = _embedded_1.mc.player) === null || _b === void 0 ? void 0 : _b.inventory.selectedSlot) !== null && _c !== void 0 ? _c : 0));
                        }
                    });
                });
                
                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                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