<?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[scripting help for noobs xd]]></title><description><![CDATA[<p dir="auto">so, ive tried to make a script to change the onground timer value to a different one than the inair value but ive got the problem that the value doesnt change with this code here:<br />
var Timer_Value = value.createInteger("Speed", 1, 1, 10);<br />
if(mc.thePlayer.onGround) {<br />
mc.timer.timerSpeed = Timer_Value;<br />
} else {<br />
if(!mc.thePlayer.onGround) {<br />
mc.timer.timerSpeed = 1;<br />
so im asking what is wrong or broken that it doesnt work</p>
]]></description><link>https://forum.liquidbounce.net/topic/7363/scripting-help-for-noobs-xd</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:20:59 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/7363.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Dec 2022 06:21:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to scripting help for noobs xd on Sun, 01 Jan 2023 01:23:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schneelein" aria-label="Profile: Schneelein">@<bdi>Schneelein</bdi></a></p>
<pre><code>///api_version=2
(script = registerScript({
    name: "TimerHandle",
    version: "1.0",
    authors: ["You"]
})).import("Core.lib"); //just assumed your using core since you used value.createInteger, if not just put Core.lib in scripts folder

list = [ //put values in here, looks clean if multiple
    onGroundValue = value.createFloat("OnGroundTimer", 1, 1, 10) //use float instead of integer, its more percise yet lets you adjust from 1.0 to 10.0 like you did it
]

module = {
    name: "TimerHandle",
    category: "Misc",
    description: "Helps you to learn",
    tag: script.scriptVersion,
    values: list, //import list here so the module knows what to use

    //now the actual module
    onUpdate: function() {
        if (mc.thePlayer.onGround) {
            mc.timer.timerSpeed = onGroundValue.get()
        } else if (!mc.thePlayer.onGround /*you could add a check for water etc if you want to be faster there as well*/) {
            mc.timer.timerSpeed = 1;
        }
    },
    onDisable: function() {
        mc.timer.timerSpeed = 1; //If you disable the module while being onGround you may stay faster than vanilla, so reset onDisable!
    }
}
</code></pre>
<p dir="auto">The issue with yours is probably the core module structure without importing core but from what you've posted i can't really tell.</p>
<p dir="auto">Ah yes i figured out what your problem was:<br />
you did</p>
<pre><code>mc.timer.timerSpeed = Timer_Value
</code></pre>
<p dir="auto">but it must be</p>
<pre><code>mc.timer.timerSpeed = module.settings.Timer_Value.get()
//or if you are using core
mc.timer.timerSpeed = Timer_Value.get()
</code></pre>
<p dir="auto"><a href="https://liquidbounce.net/docs/ScriptAPI" target="_blank" rel="noopener noreferrer nofollow ugc">i suggest you read this and try simple stuff</a></p>
]]></description><link>https://forum.liquidbounce.net/post/37225</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/37225</guid><dc:creator><![CDATA[FaaatPotato]]></dc:creator><pubDate>Sun, 01 Jan 2023 01:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to scripting help for noobs xd on Sat, 31 Dec 2022 15:46:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schneelein" aria-label="Profile: Schneelein">@<bdi>Schneelein</bdi></a> var Timer_Value = value.createInteger("Speed", 1, 1, 10);<br />
if(mc.thePlayer.onGround) {<br />
mc.timer.timerSpeed = Timer_Value;<br />
} else {<br />
if(!mc.thePlayer.onGround) {<br />
mc.timer.timerSpeed = 1;<br />
}<br />
});</p>
<pre><code>module.on("packet", function(eventData) {

});
</code></pre>
<p dir="auto">});</p>
]]></description><link>https://forum.liquidbounce.net/post/37224</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/37224</guid><dc:creator><![CDATA[sxviolence]]></dc:creator><pubDate>Sat, 31 Dec 2022 15:46:09 GMT</pubDate></item></channel></rss>