Template:Packet

From wiki.vg
Revision as of 21:34, 21 January 2015 by Fenhl (talk | contribs) (updated for current packet tables)
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]]
}}
<thead></thead><tbody>
Packet IDStateBound toField nameField typeNotes
0x07PlayClientDimensionInt-1: The Nether, 0: The Overworld, 1: The End
DifficultyUnsigned Byte0: Peaceful, 1: Easy, 2: Normal, 3: Hard
GamemodeUnsigned Byte0: survival, 1: creative, 2: adventure. The hardcore flag is not included
Level TypeStringSame as Join Game