Pre-release protocol: Difference between revisions
imported>Scryptonite mNo edit summary |
imported>Scryptonite (Overlooked the Protocol History notes. Cleaning up.) |
||
| Line 45: | Line 45: | ||
=== Spawn Named Entity (0x14) === | === Spawn Named Entity (0x14) === | ||
See the change in metadata [[#metadata|below]]. | |||
=== Spawn Dropped Item (0x15) === | === Spawn Dropped Item (0x15) === | ||
| Line 51: | Line 51: | ||
'''''TODO''''' | '''''TODO''''' | ||
It includes a new byte array after the "Damage" field, and before the "X" field if certain conditions are met. If the array does not exist, then the length of the array is "-1". | |||
=== Spawn Mob (0x18) === | === Spawn Mob (0x18) === | ||
See the change in metadata [[#metadata|below]]. | |||
=== Entity Metadata (0x28) === | === Entity Metadata (0x28) === | ||
See the change in metadata [[#metadata|below]]. | |||
== Changed data types == | == Changed data types == | ||
| Line 65: | Line 65: | ||
=== Metadata === | === Metadata === | ||
-None- | |||
== Removed packets == | == Removed packets == | ||
| Line 81: | Line 81: | ||
* Protocol version is now 41 | * Protocol version is now 41 | ||
{{anchor|metadata}} | |||
* In [[Entities#Entity_Metadata_Format|Entity metadata]] the slot type (5) can now be empty. Instead of (short, byte, short), only -1 as a short is sent. This affects 0x14 Spawn Named Entity, 0x18 Spawn Mob and 0x28 Entity Metadata | * In [[Entities#Entity_Metadata_Format|Entity metadata]] the slot type (5) can now be empty. Instead of (short, byte, short), only -1 as a short is sent. This affects 0x14 Spawn Named Entity, 0x18 Spawn Mob and 0x28 Entity Metadata | ||
Revision as of 05:31, 15 September 2012
This page documents the changes from the last stable Minecraft release (currently 1.3.2) to the current pre-release (or weekly release).
New packets
-None-
Changed packets
Time Update (0x04)
Server to Client
Time is based on ticks, where 20 ticks happen every second. There are 24000 ticks in a day, making Minecraft days exactly 20 minutes long.
The time of day is based on the timestamp modulo 24000. 0 is sunrise, 6000 is noon, 12000 is sunset, and 18000 is midnight.
The default SMP server increments both by 20 every second.
The 'Time' is the Age of the world. It is not changing on server commands and will increased by 20 every second.
| Packet ID | Field Name | Field Type | Example | Notes |
|---|---|---|---|---|
| 0x04 | Time | long | 45464654 | The 'Age of the world', in ticks |
| Day Time | long | 21321 | The world (or region) time, in ticks | |
| Total Size: | 17 Bytes | |||
Spawn Named Entity (0x14)
See the change in metadata below.
Spawn Dropped Item (0x15)
TODO
It includes a new byte array after the "Damage" field, and before the "X" field if certain conditions are met. If the array does not exist, then the length of the array is "-1".
Spawn Mob (0x18)
See the change in metadata below.
Entity Metadata (0x28)
See the change in metadata below.
Changed data types
Metadata
-None-
Removed packets
-None-
Protocol History
2012-09-06
- 12w36a
- Protocol version is now 42
2012-08-24
- 12w34b
- Protocol version is now 41
- In Entity metadata the slot type (5) can now be empty. Instead of (short, byte, short), only -1 as a short is sent. This affects 0x14 Spawn Named Entity, 0x18 Spawn Mob and 0x28 Entity Metadata
2012-08-09
- 12w32a
- Protocol version is now 40
- Changed Time Update packet