<?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[onPlaceBlock , onSendPacket event]]></title><description><![CDATA[<p dir="auto">the title says it all</p>
]]></description><link>https://forum.liquidbounce.net/topic/100/onplaceblock-onsendpacket-event</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 23:13:25 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/100.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Jun 2020 08:09:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Wed, 01 Jul 2020 22:51:04 GMT]]></title><description><![CDATA[<p dir="auto">As for "onPlaceBlock", I think you can check C08PacketPlayerBlockPlacement in onPacket.<br />
(I don't code with mcp918 so If it's wrong way plz remind me, thanks)</p>
]]></description><link>https://forum.liquidbounce.net/post/556</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/556</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 01 Jul 2020 22:51:04 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Wed, 01 Jul 2020 22:46:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/senk-ju" aria-label="Profile: Senk-Ju">@<bdi>Senk-Ju</bdi></a><br />
My Opinion:<br />
CxxPacket only sends by Client and won't receive from Server<br />
SxxPacket only receives from Server</p>
]]></description><link>https://forum.liquidbounce.net/post/555</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/555</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 01 Jul 2020 22:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 14:01:47 GMT]]></title><description><![CDATA[<p dir="auto">In the <a href="https://liquidbounce.net/docs/ScriptAPI/Creating%20Modules/Supported%20Events" target="_blank" rel="noopener noreferrer nofollow ugc">documentation</a> it says the following:</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Event Name</th>
<th>Has event data?</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>packet</td>
<td>Yes</td>
<td>Called every time a packet is processed.</td>
</tr>
</tbody>
</table>
<h4>Packet event</h4>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Method</th>
<th>Description</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>eventData.getPacket()</td>
<td>Returns the packet which triggered this event.</td>
<td>Packet</td>
</tr>
<tr>
<td>event.cancelEvent()</td>
<td>Cancels the event.</td>
<td>void</td>
</tr>
<tr>
<td>Example:</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<pre><code class="language-js">var C00Handshake = Java.type("net.minecraft.network.handshake.client.C00Handshake");

...

module.on("packet", function(eventData) {
    var packet = eventData.getPacket();

    if (packet instanceof C00Handshake) {
        Chat.print("Cancelling handshake.");
        eventData.cancelEvent();
    }
});
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/423</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/423</guid><dc:creator><![CDATA[Senk Ju]]></dc:creator><pubDate>Sun, 28 Jun 2020 14:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 13:57:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/senk-ju" aria-label="Profile: Senk-Ju">@<bdi>Senk-Ju</bdi></a> said in <a href="/post/416">onPlaceBlock , onSendPacket event</a>:</p>
<blockquote>
<p dir="auto">Why not do it like this?</p>
<pre><code class="language-js">module.on("packet", function(event) {
    var packet = event.getPacket();

    if (packet instanceof Java.type("net.minecraft.network.play.client.C03PacketPlayer")) {
        Chat.print("you send a c03 packet!");   
    }
});
</code></pre>
</blockquote>
<p dir="auto">i thought the code will be execute when i RECEIVE (not send) a packet?</p>
]]></description><link>https://forum.liquidbounce.net/post/422</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/422</guid><dc:creator><![CDATA[ChocoPie_isme]]></dc:creator><pubDate>Sun, 28 Jun 2020 13:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 13:54:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chocopie_isme" aria-label="Profile: ChocoPie_isme">@<bdi>ChocoPie_isme</bdi></a> rip brian cels v2<br />
now i don even hvae brian cels enough to tyoep pwoperly <img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://forum.liquidbounce.net/post/421</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/421</guid><dc:creator><![CDATA[infAura]]></dc:creator><pubDate>Sun, 28 Jun 2020 13:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 13:34:57 GMT]]></title><description><![CDATA[<p dir="auto">Why not do it like this?</p>
<pre><code class="language-js">module.on("packet", function(event) {
    var packet = event.getPacket();

    if (packet instanceof Java.type("net.minecraft.network.play.client.C03PacketPlayer")) {
        Chat.print("you send a c03 packet!");   
    }
});
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/416</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/416</guid><dc:creator><![CDATA[Senk Ju]]></dc:creator><pubDate>Sun, 28 Jun 2020 13:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 13:22:29 GMT]]></title><description><![CDATA[<p dir="auto">learn english, kid. You used send....</p>
]]></description><link>https://forum.liquidbounce.net/post/414</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/414</guid><dc:creator><![CDATA[Azure]]></dc:creator><pubDate>Sun, 28 Jun 2020 13:22:29 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 13:03:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/senk-ju" aria-label="Profile: Senk-Ju">@<bdi>Senk-Ju</bdi></a> said in <a href="/post/406">onPlaceBlock , onSendPacket event</a>:</p>
<blockquote>
<p dir="auto">Why would you need a <code>onPacketSend</code> event? Packet names either start with a C or an S. Packets whose name begins with a C are client packets, those that begin with an S are server packets.</p>
</blockquote>
<p dir="auto">i mean i want to execute sth when sending a packet, example:</p>
<pre><code>this.onSendPacket = function(event) {
      if(event.sendPacket() instanceof C03PacketPlayer) {
     Chat.print("you send a c03 packet!")
      }
}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/post/412</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/412</guid><dc:creator><![CDATA[ChocoPie_isme]]></dc:creator><pubDate>Sun, 28 Jun 2020 13:03:23 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 12:04:26 GMT]]></title><description><![CDATA[<p dir="auto">Why would you need a <code>onPacketSend</code> event? Packet names either start with a C or an S. Packets whose name begins with a C are client packets, those that begin with an S are server packets.</p>
]]></description><link>https://forum.liquidbounce.net/post/406</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/406</guid><dc:creator><![CDATA[Senk Ju]]></dc:creator><pubDate>Sun, 28 Jun 2020 12:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to onPlaceBlock , onSendPacket event on Sun, 28 Jun 2020 08:42:31 GMT]]></title><description><![CDATA[<p dir="auto">watchu want?</p>
]]></description><link>https://forum.liquidbounce.net/post/396</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/396</guid><dc:creator><![CDATA[Azure]]></dc:creator><pubDate>Sun, 28 Jun 2020 08:42:31 GMT</pubDate></item></channel></rss>