Template:Packet
Jump to navigation
Jump to search
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]] }}
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 |