<?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[Help With Fixing Code]]></title><description><![CDATA[<p dir="auto">Can Somebody Help Me To Get The Code Down Below To Work? I Am Slightly Confused On This Scripting API.</p>
<pre><code>const script = registerScript({
    name: "AntiVulcanLimit",
    version: "1.0.0",
    authors: ["IgniteTNT"]
});

var sneakCooldown = 200; // Cooldown in milliseconds 

script.registerModule({
    name: "VulcanLimit",
    category: "Misc", // Movement, Combat, Renderr, ...
    description: "Bypass Vulcan's Limit Check When Scaffolding"
}, (mod) =&gt; {
    mod.on("enable", () =&gt; {
        Client.displayChatMessage("§aEnabled AntiVulcanLimit :)");
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    });

    mod.on("disable", () =&gt; {
        Client.displayChatMessage("§aDisabled AntiVulcanLimit :(");
    });
    
    this.onGround = function(event) {
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    }
});


</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/7944/help-with-fixing-code</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 20:56:38 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/7944.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Feb 2024 06:07:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help With Fixing Code on Thu, 21 Mar 2024 21:13:37 GMT]]></title><description><![CDATA[<p dir="auto">It doesn't seem to like mc.gameSettings.keyBindSneak.pressed works, weird.</p>
]]></description><link>https://forum.liquidbounce.net/post/39174</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/39174</guid><dc:creator><![CDATA[IgniteTNT]]></dc:creator><pubDate>Thu, 21 Mar 2024 21:13:37 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Sat, 24 Feb 2024 07:23:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ignitetnt" aria-label="Profile: IgniteTNT">@<bdi>IgniteTNT</bdi></a> U can try this:</p>
<pre><code class="language-js">let ticks = 0;
//....

mod.on("update", () =&gt; {
    ticks++;

    if (ticks === 10) { // put it as your opinion
        mc.gameSettings.keyBindSneak.pressed = true;
    } else {
        mc.gameSettings.keyBindSneak.pressed = false;
        ticks = 0;
    }
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/38985</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38985</guid><dc:creator><![CDATA[Riceuser2]]></dc:creator><pubDate>Sat, 24 Feb 2024 07:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Sun, 18 Feb 2024 20:01:26 GMT]]></title><description><![CDATA[<p dir="auto">What is the syntax for tick events?</p>
]]></description><link>https://forum.liquidbounce.net/post/38942</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38942</guid><dc:creator><![CDATA[IgniteTNT]]></dc:creator><pubDate>Sun, 18 Feb 2024 20:01:26 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Sun, 18 Feb 2024 17:44:12 GMT]]></title><description><![CDATA[<p dir="auto">There is no event called on ground. You should use one of the tick events...</p>
]]></description><link>https://forum.liquidbounce.net/post/38941</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38941</guid><dc:creator><![CDATA[izuna]]></dc:creator><pubDate>Sun, 18 Feb 2024 17:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Sun, 18 Feb 2024 03:42:59 GMT]]></title><description><![CDATA[<p dir="auto">Still doesn't work, thank you for attempting it though!</p>
]]></description><link>https://forum.liquidbounce.net/post/38923</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38923</guid><dc:creator><![CDATA[IgniteTNT]]></dc:creator><pubDate>Sun, 18 Feb 2024 03:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Sun, 18 Feb 2024 03:30:57 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!</p>
]]></description><link>https://forum.liquidbounce.net/post/38922</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38922</guid><dc:creator><![CDATA[IgniteTNT]]></dc:creator><pubDate>Sun, 18 Feb 2024 03:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Mon, 12 Feb 2024 08:53:28 GMT]]></title><description><![CDATA[<p dir="auto">i fixed it</p>
]]></description><link>https://forum.liquidbounce.net/post/38877</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38877</guid><dc:creator><![CDATA[V3r.SaceX]]></dc:creator><pubDate>Mon, 12 Feb 2024 08:53:28 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Mon, 12 Feb 2024 08:46:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ignitetnt" aria-label="Profile: IgniteTNT">@<bdi>IgniteTNT</bdi></a> In this corrected version, I replaced this.onGround with mod.on("ground", ...), which correctly registers the event handler function.</p>
<pre><code>const script = registerScript({
    name: "AntiVulcanLimit",
    version: "1.0.0",
    authors: ["IgniteTNT"]
});

var sneakCooldown = 200; // Cooldown in milliseconds 

script.registerModule({
    name: "VulcanLimit",
    category: "Misc", // Movement, Combat, Renderr, ...
    description: "Bypass Vulcan's Limit Check When Scaffolding"
}, (mod) =&gt; {
    mod.on("enable", () =&gt; {
        Client.displayChatMessage("§aEnabled AntiVulcanLimit :)");
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    });

    mod.on("disable", () =&gt; {
        Client.displayChatMessage("§aDisabled AntiVulcanLimit :(");
    });
    
    mod.on("ground", function(event) {
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    });
});

</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/38875</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38875</guid><dc:creator><![CDATA[V3r.SaceX]]></dc:creator><pubDate>Mon, 12 Feb 2024 08:46:42 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Mon, 12 Feb 2024 08:44:20 GMT]]></title><description><![CDATA[<pre><code>const script = registerScript({
    name: "AntiVulcanLimit",
    version: "1.0.0",
    authors: ["IgniteTNT"]
});

var sneakCooldown = 200; // Cooldown in milliseconds 

script.registerModule({
    name: "VulcanLimit",
    category: "Misc", // Movement, Combat, Renderr, ...
    description: "Bypass Vulcan's Limit Check When Scaffolding"
}, (mod) =&gt; {
    mod.on("enable", () =&gt; {
        Client.displayChatMessage("§aEnabled AntiVulcanLimit :)");
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    });

    mod.on("disable", () =&gt; {
        Client.displayChatMessage("§aDisabled AntiVulcanLimit :(");
    });
    
    mod.on("ground", function(event) {
        mc.gameSettings.keyBindSneak.pressed = true;
        setTimeout(function() {
            mc.gameSettings.keyBindSneak.pressed = false;
        }, sneakCooldown);
    });
});

</code></pre>
<p dir="auto">In this corrected version, I replaced this.onGround with mod.on("ground", ...), which correctly registers the event handler function.</p>
]]></description><link>https://forum.liquidbounce.net/post/38876</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38876</guid><dc:creator><![CDATA[V3r.SaceX]]></dc:creator><pubDate>Mon, 12 Feb 2024 08:44:20 GMT</pubDate></item><item><title><![CDATA[Reply to Help With Fixing Code on Mon, 12 Feb 2024 07:50:48 GMT]]></title><description><![CDATA[<p dir="auto">LEGACY: <a href="https://liquidbounce.net/docs/ScriptAPI%20(legacy)" target="_blank" rel="noopener noreferrer nofollow ugc">https://liquidbounce.net/docs/ScriptAPI (legacy)</a></p>
<p dir="auto">NEXTGEN: <a href="https://liquidbounce.net/docs/ScriptAPI%20(nextgen)" target="_blank" rel="noopener noreferrer nofollow ugc">https://liquidbounce.net/docs/ScriptAPI (nextgen)</a></p>
]]></description><link>https://forum.liquidbounce.net/post/38872</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38872</guid><dc:creator><![CDATA[EclipsesDev]]></dc:creator><pubDate>Mon, 12 Feb 2024 07:50:48 GMT</pubDate></item></channel></rss>