Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions data/pc/1.8/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,13 @@
z: i32
pitch: i8
yaw: i8
objectData:
intField: i32
velocityX: intField ?
if 0: void
default: i16
velocityY: intField ?
if 0: void
default: i16
velocityZ: intField ?
if 0: void
default: i16
intField: i32
objectData: intField ?
if 0: void
default:
velocityX: i16
velocityY: i16
velocityZ: i16
packet_spawn_entity_living:
entityId: varint
type: u8
Expand Down
62 changes: 22 additions & 40 deletions data/pc/1.8/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -831,55 +831,37 @@
"name": "yaw",
"type": "i8"
},
{
"name": "intField",
"type": "i32"
},
{
"name": "objectData",
"type": [
"container",
[
{
"name": "intField",
"type": "i32"
"switch",
{
"compareTo": "intField",
"fields": {
"0": "void"
},
{
"name": "velocityX",
"type": [
"switch",
"default": [
"container",
[
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
}
]
},
{
"name": "velocityY",
"type": [
"switch",
"name": "velocityX",
"type": "i16"
},
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
}
]
},
{
"name": "velocityZ",
"type": [
"switch",
"name": "velocityY",
"type": "i16"
},
{
"compareTo": "intField",
"fields": {
"0": "void"
},
"default": "i16"
"name": "velocityZ",
"type": "i16"
}
]
}
]
]
}
]
}
]
Expand Down