Template:Packet: Difference between revisions
Jump to navigation
Jump to search
imported>Fenhl (removed thead and tbody tags, MediaWiki doesn't like those) |
imported>Fenhl (removed thead and tbody tags, MediaWiki doesn't like those) |
(No difference)
| |
Revision as of 21:35, 21 January 2015
Creates a packet table. For use on Protocol etc. Currently supports up to 12 fields.
Example
{{Packet|id=07|state=Play|bound=Client
|Dimension|Int|-1: The Nether, 0: The Overworld, 1: The End
|Difficulty|Unsigned Byte|0: Peaceful, 1: Easy, 2: Normal, 3: Hard
|Gamemode|Unsigned Byte|0: survival, 1: creative, 2: adventure. The hardcore flag is not included
|Level Type|String|Same as [[Protocol#Join Game|Join Game]]
}}
{{#if:Unsigned Byte|}}{{#if:Unsigned Byte|}}{{#if:String|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}| Packet ID | State | Bound to | Field name | Field type | Notes |
|---|---|---|---|---|---|
0x07 | Play | Client | Dimension | Int | -1: The Nether, 0: The Overworld, 1: The End |
| Difficulty | Unsigned Byte | 0: Peaceful, 1: Easy, 2: Normal, 3: Hard | |||
| Gamemode | Unsigned Byte | 0: survival, 1: creative, 2: adventure. The hardcore flag is not included | |||
| Level Type | String | Same as Join Game | |||
| {{{13}}} | {{{14}}} | ||||
| {{{16}}} | {{{17}}} | ||||
| {{{19}}} | {{{20}}} | ||||
| {{{22}}} | {{{23}}} | ||||
| {{{25}}} | {{{26}}} | ||||
| {{{28}}} | {{{29}}} | ||||
| {{{31}}} | {{{32}}} | ||||
| {{{34}}} | {{{35}}} |