<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[who can write the script? noSlotChanger in the client LB for Nextgen]]></title><description><![CDATA[<p dir="auto">the script does not allow the server anti-cheat to change the hotbara slot</p>
]]></description><link>https://forum.liquidbounce.net/topic/8425/who-can-write-the-script-noslotchanger-in-the-client-lb-for-nextgen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 23:17:57 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/8425.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Mar 2025 19:42:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Sun, 16 Mar 2025 13:16:54 GMT]]></title><description><![CDATA[<p dir="auto">Trying with matrix on <a href="http://loyisa.cn" target="_blank" rel="noopener noreferrer nofollow ugc">loyisa.cn</a> 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.</p>
<pre><code>

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) =&gt; {
    mod.on("packet", (event) =&gt; {
        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 &amp;&amp; _c !== void 0 ? _c : 0));
        }
    });
});
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/40042</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40042</guid><dc:creator><![CDATA[commandblock2]]></dc:creator><pubDate>Sun, 16 Mar 2025 13:16:54 GMT</pubDate></item><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Thu, 13 Mar 2025 21:54:42 GMT]]></title><description><![CDATA[<p dir="auto">Matrix AntiCheat Version: 7.14.3<br />
default noslow modes</p>
]]></description><link>https://forum.liquidbounce.net/post/40036</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40036</guid><dc:creator><![CDATA[Q13]]></dc:creator><pubDate>Thu, 13 Mar 2025 21:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Wed, 12 Mar 2025 17:06:29 GMT]]></title><description><![CDATA[<p dir="auto">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 <code>UpdateSelectedSlotS2CPacket</code> to sync your hotbar) and what noslow modes are you using? (grim noslow modes switches your hotbar server side)</p>
<pre><code class="language-kotlin">internal class NoSlowSharedGrim2364MC18(override val parent: ChoiceConfigurable&lt;*&gt;) : Choice("Grim2364-1.8") {

    @Suppress("unused")
    private val onNetworkTick = handler&lt;PlayerNetworkMovementTickEvent&gt; { event -&gt;
        if (player.isUsingItem &amp;&amp; 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))
            }
        }
    }

}

</code></pre>
<p dir="auto">Even if you refuse to accept any <code>UpdateSelectedSlotS2CPacket</code> 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.</p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">

<div class="meta">
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/97745777?v=4" title="c0dingnoobi" />
<a href="https://github.com/c0dingnoobi"><span class="username">c0dingnoobi</span></a> created this issue <span class="timeago" title="2022-12-23T02:22:59Z"></span> in <a href="//github.com/GrimAnticheat/Grim">GrimAnticheat/Grim</a>
</div>
<h3>
<span class="badge closed float-end">closed</span>
<a href="https://github.com/GrimAnticheat/Grim/issues/874">Slot switch with charged bow</a>
<span class="number">#874</span>
</h3>



</div>
</div>
</div>

</div>]]></description><link>https://forum.liquidbounce.net/post/40030</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40030</guid><dc:creator><![CDATA[commandblock2]]></dc:creator><pubDate>Wed, 12 Mar 2025 17:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Wed, 12 Mar 2025 01:01:19 GMT]]></title><description><![CDATA[<p dir="auto">it doesn't work, the hotbar keeps scrolling when I run and eat with noslow</p>
]]></description><link>https://forum.liquidbounce.net/post/40028</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40028</guid><dc:creator><![CDATA[Q13]]></dc:creator><pubDate>Wed, 12 Mar 2025 01:01:19 GMT</pubDate></item><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Mon, 10 Mar 2025 13:58:02 GMT]]></title><description><![CDATA[<p dir="auto">encoded a jar into base64 and embed in a script, not crazy at all xD.</p>
]]></description><link>https://forum.liquidbounce.net/post/40022</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40022</guid><dc:creator><![CDATA[commandblock2]]></dc:creator><pubDate>Mon, 10 Mar 2025 13:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to who can write the script? noSlotChanger in the client LB for Nextgen on Sun, 09 Mar 2025 18:27:32 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1741544832290-noslotchanger-0.1.zip">NoSlotChanger 0.1.zip</a> for Nextgen 0.28</p>
]]></description><link>https://forum.liquidbounce.net/post/40007</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/40007</guid><dc:creator><![CDATA[CookieChinese]]></dc:creator><pubDate>Sun, 09 Mar 2025 18:27:32 GMT</pubDate></item></channel></rss>