<?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[I dont have ANY idea why this script is broken.]]></title><description><![CDATA[<p dir="auto">So, everytime i use MoveUtil &amp; reload, it doesnt do anything. Heres the script:</p>
<pre><code>var script = registerScript({
    name: 'NCPSpeed',
    version: '1.3.3.7',
    authors: ["Kellohylly"]
});

var MoveUtils = Java.type("net.ccbluex.liquidbounce.utils.MovementUtils");

script.registerModule({
    name: 'NCPSpeed',
    category: 'Fun',
    description: '',
    tag: ''
}, function (module) {
    module.on('disable', function() {
        mc.timer.timerSpeed = 1;
    });

    module.on('motion', function(e) {
        if (mc.thePlayer.onGround) {
            MoveUtils.strafe(0.485);
            mc.thePlayer.jump();
        }
    });
});
</code></pre>
<p dir="auto">It would be nice if someone would know how to fix this.</p>
]]></description><link>https://forum.liquidbounce.net/topic/7713/i-dont-have-any-idea-why-this-script-is-broken</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 05:21:37 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/7713.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Sep 2023 07:28:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I dont have ANY idea why this script is broken. on Sun, 03 Sep 2023 21:16:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/czechhek" aria-label="Profile: CzechHek">@<bdi>CzechHek</bdi></a></p>
<p dir="auto"><img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f5e3.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--speaking_head_in_silhouette" style="height:23px;width:auto;vertical-align:middle" title="🗣" alt="🗣" />️<img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f5e3.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--speaking_head_in_silhouette" style="height:23px;width:auto;vertical-align:middle" title="🗣" alt="🗣" />️<img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f5e3.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--speaking_head_in_silhouette" style="height:23px;width:auto;vertical-align:middle" title="🗣" alt="🗣" />️<img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f5e3.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--speaking_head_in_silhouette" style="height:23px;width:auto;vertical-align:middle" title="🗣" alt="🗣" />️<img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f525.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--fire" style="height:23px;width:auto;vertical-align:middle" title="🔥" alt="🔥" /> some1 needs to add own little utils to ScriptAPI</p>
]]></description><link>https://forum.liquidbounce.net/post/38265</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38265</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Sun, 03 Sep 2023 21:16:10 GMT</pubDate></item><item><title><![CDATA[Reply to I dont have ANY idea why this script is broken. on Sun, 03 Sep 2023 21:13:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rthrthwtrhg" aria-label="Profile: rthrthwtrhg">@<bdi>rthrthwtrhg</bdi></a></p>
<p dir="auto">Ported it for you and added</p>
<ul>
<li>NoMoveStop -&gt; makes you stop if you dont press any movement key</li>
<li>OnlyOnMove -&gt; requires you to press movement keys to speed up</li>
</ul>
<pre><code>///api_version=2
(script = registerScript({
    name: "NCPSpeed",
    version: "1.3.3.7",
    authors: ["Kellohylly"]
}));

script.registerModule({
    name: "NCPSpeed",
    category: "Fun",
    description: "NCP-Speed",
    settings: {
        nomovestop: Setting.boolean({
            name: "NoMoveStop",
            default: false
        }),
        onlyonmove: Setting.boolean({
            name: "OnlyOnMove",
            default: false
        }),
    },
}, function (module) {
    module.on("disable", function() {
        mc.timer.timerSpeed = 1;
    });
    module.on("motion", function() {
        if (mc.thePlayer.onGround) {
            if ((module.settings.onlyonmove.get() &amp;&amp; !isMoving()) || (module.settings.nomovestop.get() &amp;&amp; !isMoving())) return;
            
            mc.thePlayer.jump();
            //represents MovementUtils.strafe()
            var yaw = mc.thePlayer.rotationYaw * Math.PI / 180 //represents Math.rad(deg)
            mc.thePlayer.motionX = -Math.sin(yaw) * 0.485
            mc.thePlayer.motionZ = Math.cos(yaw) * 0.485
        }
    });
    module.on("move", function(e) {
        if (module.settings.nomovestop.get() &amp;&amp; !isMoving()) e.zeroXZ()
    });
});

//represents MovementUtils.isMoving() -&gt; true/false
function isMoving() {
    if (mc.thePlayer.movementInput.moveForward != 0 || mc.thePlayer.movementInput.moveStrafe != 0) return true;
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/38264</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38264</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Sun, 03 Sep 2023 21:13:03 GMT</pubDate></item><item><title><![CDATA[Reply to I dont have ANY idea why this script is broken. on Sat, 02 Sep 2023 19:06:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rthrthwtrhg" aria-label="Profile: rthrthwtrhg">@<bdi>rthrthwtrhg</bdi></a><br />
Ports to kotlin + removal of unnecessary @JvmStatic means that you have to access LB utils and fields with kotlin getters and static .INSTANCE.</p>
<p dir="auto">In this case MoveUtils.INSTANCE.strafe(), but its arguments have also changed, you have to put a few booleans as well, look at MovementUtils source.</p>
<p dir="auto">ScriptAPI should get its own built-in utils to simplify stuff.</p>
]]></description><link>https://forum.liquidbounce.net/post/38255</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/38255</guid><dc:creator><![CDATA[CzechHek]]></dc:creator><pubDate>Sat, 02 Sep 2023 19:06:36 GMT</pubDate></item></channel></rss>