Skip to content

Commit f3fd85a

Browse files
DesourSmallJoker
authored andcommittedAug 30, 2019
Document luaentity pitch and roll in world format (#8864)
1 parent 99ca72e commit f3fd85a

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed
 

‎doc/world_format.txt

+14-11
Original file line numberDiff line numberDiff line change
@@ -510,17 +510,20 @@ Object types:
510510
u8[len] itemstring
511511

512512
7: LuaEntity:
513-
u8 version
514-
version 1:
515-
u16 len
516-
u8[len] entity name
517-
u32 len
518-
u8[len] static data
519-
s16 hp
520-
s32 velocity.x * 10000
521-
s32 velocity.y * 10000
522-
s32 velocity.z * 10000
523-
s32 yaw * 1000
513+
u8 compatibility_byte (always 1)
514+
u16 len
515+
u8[len] entity name
516+
u32 len
517+
u8[len] static data
518+
s16 hp
519+
s32 velocity.x * 10000
520+
s32 velocity.y * 10000
521+
s32 velocity.z * 10000
522+
s32 yaw * 1000
523+
if PROTOCOL_VERSION >= 37:
524+
u8 version2 (=1)
525+
s32 pitch * 1000
526+
s32 roll * 1000
524527

525528
Itemstring format
526529
------------------

0 commit comments

Comments
 (0)
Please sign in to comment.