<?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[How to use LiquidBounce&#x27;s rotations utils in a script?]]></title><description><![CDATA[<p dir="auto">Please tell me, thank you!</p>
]]></description><link>https://forum.liquidbounce.net/topic/800/how-to-use-liquidbounce-s-rotations-utils-in-a-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 03:24:10 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/800.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Nov 2020 14:48:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use LiquidBounce&#x27;s rotations utils in a script? on Sun, 01 Nov 2020 14:58:28 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> said in <a href="/post/6312">How to use LiquidBounce's rotations utils in a script?</a>:</p>
<blockquote>
<p dir="auto">I don't know what isn't clear to you.</p>
<p dir="auto">Here is an example:</p>
<pre><code>        if (e.getEventState() == "PRE") {
            entity = getNearestTarget(EntityZombie);
            diffX = entity.posX - mc.thePlayer.posX;
            diffY = entity.posY - mc.thePlayer.posY;
            diffZ = entity.posZ - mc.thePlayer.posZ;

            rotation = new Rotation((Math.atan2(diffZ, diffX) * 180 / Math.PI) - 90, -(Math.atan2(diffY, Math.sqrt(diffX * diffX + diffZ * diffZ)) * 180 / Math.PI));

            limitedRotation = RotationUtils.limitAngleChange(RotationUtils.serverRotation, rotation, 20);

            RotationUtils.setTargetRotation(limitedRotation);
            //limitedRotation.toPlayer(mc.thePlayer);
        }
</code></pre>
</blockquote>
<p dir="auto">If I understood properly, it should rotate at the closest zombie with a rotation speed of 20 max</p>
]]></description><link>https://forum.liquidbounce.net/post/6313</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/6313</guid><dc:creator><![CDATA[yorik100]]></dc:creator><pubDate>Sun, 01 Nov 2020 14:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to use LiquidBounce&#x27;s rotations utils in a script? on Sun, 01 Nov 2020 14:54:06 GMT]]></title><description><![CDATA[<p dir="auto">I don't know what isn't clear to you.</p>
<p dir="auto">Here is an example:</p>
<pre><code>        if (e.getEventState() == "PRE") {
            entity = getNearestTarget(EntityZombie);
            diffX = entity.posX - mc.thePlayer.posX;
            diffY = entity.posY - mc.thePlayer.posY;
            diffZ = entity.posZ - mc.thePlayer.posZ;

            rotation = new Rotation((Math.atan2(diffZ, diffX) * 180 / Math.PI) - 90, -(Math.atan2(diffY, Math.sqrt(diffX * diffX + diffZ * diffZ)) * 180 / Math.PI));

            limitedRotation = RotationUtils.limitAngleChange(RotationUtils.serverRotation, rotation, 20);

            RotationUtils.setTargetRotation(limitedRotation);
            //limitedRotation.toPlayer(mc.thePlayer);
        }
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/6312</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/6312</guid><dc:creator><![CDATA[CzechHek]]></dc:creator><pubDate>Sun, 01 Nov 2020 14:54:06 GMT</pubDate></item></channel></rss>