<?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[check motion]]></title><description><![CDATA[<p dir="auto">can you check the motion of the player in a if statement</p>
<p dir="auto">what i have so far</p>
<pre><code> module.on("always", function() {
        if(player.hurtTime &amp;&amp; check motion here){
        }
    });
</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/3030/check-motion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 16:32:42 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/3030.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Sep 2021 02:23:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to check motion on Mon, 06 Sep 2021 03:03:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zastix" aria-label="Profile: zastix">@<bdi>zastix</bdi></a> (you can only check one axis at a time)<br />
if you it to be the same (probably wont happen)</p>
<pre><code>if(mc.thePlayer.motionX == 1)
</code></pre>
<p dir="auto">or if you want it to be bigger or smaller just replace "==" with "&lt;" or "&gt;"<br />
or you can get the speed of player with "MovementUtils.getSpeed()"</p>
<p dir="auto">btw you can't really check with "player.hurtTime", if you want to detect when a player takes damage try</p>
<pre><code>mc.thePlayer.hurtTime &gt;= 8
</code></pre>
<p dir="auto">Also, this won't work:</p>
<pre><code>module.on("always"
</code></pre>
<p dir="auto">try</p>
<pre><code> module.on("update"
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/24277</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/24277</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 06 Sep 2021 03:03:16 GMT</pubDate></item><item><title><![CDATA[Reply to check motion on Mon, 06 Sep 2021 03:05:53 GMT]]></title><description><![CDATA[<p dir="auto">@britishbiscuit Thanks for the tips and answering the question.</p>
]]></description><link>https://forum.liquidbounce.net/post/24278</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/24278</guid><dc:creator><![CDATA[Zastix]]></dc:creator><pubDate>Mon, 06 Sep 2021 03:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to check motion on Mon, 06 Sep 2021 03:03:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zastix" aria-label="Profile: zastix">@<bdi>zastix</bdi></a> (you can only check one axis at a time)<br />
if you it to be the same (probably wont happen)</p>
<pre><code>if(mc.thePlayer.motionX == 1)
</code></pre>
<p dir="auto">or if you want it to be bigger or smaller just replace "==" with "&lt;" or "&gt;"<br />
or you can get the speed of player with "MovementUtils.getSpeed()"</p>
<p dir="auto">btw you can't really check with "player.hurtTime", if you want to detect when a player takes damage try</p>
<pre><code>mc.thePlayer.hurtTime &gt;= 8
</code></pre>
<p dir="auto">Also, this won't work:</p>
<pre><code>module.on("always"
</code></pre>
<p dir="auto">try</p>
<pre><code> module.on("update"
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/24277</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/24277</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 06 Sep 2021 03:03:16 GMT</pubDate></item></channel></rss>