1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-10-14 07:25:08 +00:00
Files
bedrock-protocol-docs/docs/PlayerActionPacket.html

420 lines
9.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PlayerActionPacket (36)</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
padding: 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h1 {
color: #2c3e50;
border-bottom: 3px solid #3498db;
padding-bottom: 10px;
margin-top: 0;
}
h2 {
color: #34495e;
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
margin-top: 30px;
}
h3 {
color: #555;
margin-top: 20px;
margin-bottom: 10px;
}
h4 {
color: #666;
margin-top: 15px;
margin-bottom: 8px;
}
table {
background-color: white;
font-size: 14px;
margin-bottom: 10px;
}
th {
font-weight: bold;
text-align: left;
padding: 8px !important;
}
td {
padding: 8px !important;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
tr:hover {
background-color: #e8f4f8;
}
.description {
color: #555;
font-style: italic;
margin: 10px 0 20px 0;
padding: 10px;
background-color: #f8f9fa;
border-left: 4px solid #3498db;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.packet-list {
columns: 3;
column-gap: 20px;
}
.packet-list li {
margin-bottom: 8px;
break-inside: avoid;
}
@media (max-width: 900px) {
.packet-list {
columns: 2;
}
}
@media (max-width: 600px) {
.packet-list {
columns: 1;
}
}
</style>
</head>
<body>
<div class="container">
<p><a href="index.html">← Back to Index</a></p>
<h1>PlayerActionPacket (36)</h1>
<div class="description">Sent from the client whenever the player performs an action (dashing, un-dashing, use an item, mine/hit, use a block, etc).</div>
<div class="description">The expected actions change depending on the ServerAuthMovementMode specified in the StartGamePacket.
See the PlayerActionType enum for details on which have differing behavior.
See also PlayerAuthInputPacket and InventoryTransactionPacket for similar types of player actions.</div>
<div style="margin-left: 0px; margin-top: 10px;">
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2"><strong>Player Runtime ID</strong></td>
<td>ActorRuntimeID</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 10px;">
<h3>ActorRuntimeID</h3>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Actor Runtime ID</strong></td>
<td>varuint64</td>
<td>0</td>
<td></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td rowspan="2"><strong>Action</strong></td>
<td>varint32</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 5px; margin-bottom: 5px;">
<strong>Enum Values:</strong>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 760px; font-size: 12px;">
<thead>
<tr style="background-color: #e8e8e8;">
<th style="width: 40px;">Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;">0</td>
<td><code>Unknown</code></td>
</tr>
<tr>
<td style="text-align: center;">1</td>
<td><code>StartDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">2</td>
<td><code>AbortDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">3</td>
<td><code>StopDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">4</td>
<td><code>GetUpdatedBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">5</td>
<td><code>DropItem</code></td>
</tr>
<tr>
<td style="text-align: center;">6</td>
<td><code>StartSleeping</code></td>
</tr>
<tr>
<td style="text-align: center;">7</td>
<td><code>StopSleeping</code></td>
</tr>
<tr>
<td style="text-align: center;">8</td>
<td><code>Respawn</code></td>
</tr>
<tr>
<td style="text-align: center;">9</td>
<td><code>StartJump</code></td>
</tr>
<tr>
<td style="text-align: center;">10</td>
<td><code>StartSprinting</code></td>
</tr>
<tr>
<td style="text-align: center;">11</td>
<td><code>StopSprinting</code></td>
</tr>
<tr>
<td style="text-align: center;">12</td>
<td><code>StartSneaking</code></td>
</tr>
<tr>
<td style="text-align: center;">13</td>
<td><code>StopSneaking</code></td>
</tr>
<tr>
<td style="text-align: center;">14</td>
<td><code>CreativeDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">15</td>
<td><code>ChangeDimensionAck</code></td>
</tr>
<tr>
<td style="text-align: center;">16</td>
<td><code>StartGliding</code></td>
</tr>
<tr>
<td style="text-align: center;">17</td>
<td><code>StopGliding</code></td>
</tr>
<tr>
<td style="text-align: center;">18</td>
<td><code>DenyDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">19</td>
<td><code>CrackBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">20</td>
<td><code>ChangeSkin</code></td>
</tr>
<tr>
<td style="text-align: center;">21</td>
<td><code>UpdatedEnchantingSeed</code></td>
</tr>
<tr>
<td style="text-align: center;">22</td>
<td><code>StartSwimming</code></td>
</tr>
<tr>
<td style="text-align: center;">23</td>
<td><code>StopSwimming</code></td>
</tr>
<tr>
<td style="text-align: center;">24</td>
<td><code>StartSpinAttack</code></td>
</tr>
<tr>
<td style="text-align: center;">25</td>
<td><code>StopSpinAttack</code></td>
</tr>
<tr>
<td style="text-align: center;">26</td>
<td><code>InteractWithBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">27</td>
<td><code>PredictDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">28</td>
<td><code>ContinueDestroyBlock</code></td>
</tr>
<tr>
<td style="text-align: center;">29</td>
<td><code>StartItemUseOn</code></td>
</tr>
<tr>
<td style="text-align: center;">30</td>
<td><code>StopItemUseOn</code></td>
</tr>
<tr>
<td style="text-align: center;">31</td>
<td><code>HandledTeleport</code></td>
</tr>
<tr>
<td style="text-align: center;">32</td>
<td><code>MissedSwing</code></td>
</tr>
<tr>
<td style="text-align: center;">33</td>
<td><code>StartCrawling</code></td>
</tr>
<tr>
<td style="text-align: center;">34</td>
<td><code>StopCrawling</code></td>
</tr>
<tr>
<td style="text-align: center;">35</td>
<td><code>StartFlying</code></td>
</tr>
<tr>
<td style="text-align: center;">36</td>
<td><code>StopFlying</code></td>
</tr>
<tr>
<td style="text-align: center;">37</td>
<td><code>ClientAckServerData</code></td>
</tr>
<tr>
<td style="text-align: center;">38</td>
<td><code>StartUsingItem</code></td>
</tr>
<tr>
<td style="text-align: center;">39</td>
<td><code>Count</code></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td rowspan="2"><strong>Block Position</strong></td>
<td>NetworkBlockPosition</td>
<td>2</td>
<td></td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 10px;">
<h3>NetworkBlockPosition</h3>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>X</strong></td>
<td>varint32</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td><strong>Y</strong></td>
<td>varuint32</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td><strong>Z</strong></td>
<td>varint32</td>
<td>2</td>
<td></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td rowspan="2"><strong>Result Pos</strong></td>
<td>NetworkBlockPosition</td>
<td>3</td>
<td></td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 10px;">
<h3>NetworkBlockPosition</h3>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>X</strong></td>
<td>varint32</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td><strong>Y</strong></td>
<td>varuint32</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td><strong>Z</strong></td>
<td>varint32</td>
<td>2</td>
<td></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td><strong>Face</strong></td>
<td>varint32</td>
<td>4</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>