-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvintage_story.proto
1432 lines (1230 loc) · 35.5 KB
/
vintage_story.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright Tyron Madlener
package Packet;
// Packetids for Client to Server
enum ClientId
{
LoginTokenQuery = 33;
PlayerIdentification = 1;
PingReply = 2;
BlockPlaceOrBreak = 3;
ChatLine = 4;
ActivateInventorySlot = 7;
MoveItemstack = 8;
FlipItemstacks = 9;
CreateItemstack = 10;
RequestJoin = 11;
SpecialKey = 12;
SelectedHotbarSlot = 13;
Leave = 14;
ServerQuery = 15;
EntityInteraction = 17;
PlayerPosition = 19;
RequestModeChange = 20;
MoveKeyChange = 21;
BlockEntityPacket = 22;
EntityPacket = 31;
CustomPacket = 23;
HandInteraction = 25;
ClientLoaded = 26;
SetToolMode = 27;
BlockDamage = 28;
ClientPlaying = 29;
InvOpenClose = 30;
RuntimeSetting = 32;
}
// The client->server packet
message Client
{
optional LoginTokenQuery LoginTokenQuery = 33;
optional ClientId id = 1 [default = PlayerIdentification];
optional ClientIdentification identification = 2;
optional ClientBlockPlaceOrBreak blockPlaceOrBreak = 3;
optional ChatLine chatline = 4;
optional ClientRequestJoin requestJoin = 5;
optional ClientPingReply pingReply = 6;
optional ClientSpecialKey specialKey_ = 7;
optional SelectedHotbarSlot selectedHotbarSlot = 8;
optional ClientLeave leave = 9;
optional ClientServerQuery query = 10;
optional MoveItemstack moveItemstack = 14;
optional FlipItemstacks flipitemstacks = 15;
optional EntityInteraction entityInteraction = 16;
optional PlayerPosition playerPosition = 18;
optional ActivateInventorySlot activateInventorySlot = 19;
optional CreateItemstack createItemstack = 20;
optional PlayerMode requestModeChange = 21;
optional MoveKeyChange moveKeyChange = 22;
optional BlockEntityPacket blockEntityPacket = 23;
optional EntityPacket entityPacket = 31;
optional CustomPacket customPacket = 24;
optional ClientHandInteraction handInteraction = 25;
optional ToolMode toolMode = 26;
optional BlockDamage blockDamage = 27;
optional ClientPlaying clientPlaying = 28;
optional InvOpenClose invOpenedClosed = 30;
optional RuntimeSetting runtimeSetting = 32;
}
message ClientLoaded {
}
message ClientPlaying {
}
message RuntimeSetting {
optional int32 immersiveFpMode = 1;
optional int32 itemCollectMode = 2;
}
message ToolMode {
optional int32 mode = 1;
optional int32 x = 2;
optional int32 y = 3;
optional int32 z = 4;
}
message CustomPacket {
optional int32 channelId = 1;
optional int32 messageId = 2;
optional bytes data = 3;
}
message BlockEntityPacket {
optional int32 x = 1;
optional int32 y = 2;
optional int32 z = 3;
optional int32 packetid = 4;
optional bytes data = 5;
}
message EntityPacket {
optional int64 entityId = 1;
optional int32 packetid = 2;
optional bytes data = 3;
}
message MoveKeyChange {
optional MoveKey key = 1 [default = Forward];
optional int32 down = 2;
}
message EntityInteraction {
optional int32 mouseButton = 1;
optional int64 entityId = 2;
optional int32 onBlockFace = 3;
optional int64 hitX = 4;
optional int64 hitY = 5;
optional int64 hitZ = 6;
optional int32 selectionBoxIndex = 7;
}
message ClientIdentification
{
optional string mdProtocolVersion = 1;
optional string playername = 2;
optional string mpToken = 3;
optional string serverPassword = 4;
optional string playerUID = 6;
optional int32 viewDistance = 7;
optional int32 renderMetaBlocks = 8;
optional string networkVersion = 9;
optional string shortGameVersion = 10;
}
message ClientRequestJoin
{
optional string language = 1;
}
message ClientBlockPlaceOrBreak
{
optional int32 x = 1;
optional int32 y = 2;
optional int32 z = 3;
optional BlockSetMode mode = 4 [default = Break];
optional int32 blockType = 5;
optional int32 onBlockFace = 7;
optional int64 hitX = 8;
optional int64 hitY = 9;
optional int64 hitZ = 10;
optional int32 selectionBoxIndex = 11;
optional int32 didOffset = 12;
}
message ClientHandInteraction
{
optional int32 useType = 15;
optional int32 mouseButton = 1;
optional string inventoryId = 2;
optional int32 slotId = 3;
optional int32 x = 4;
optional int32 y = 5;
optional int32 z = 6;
optional int32 onBlockFace = 7;
optional int64 hitX = 8;
optional int64 hitY = 9;
optional int64 hitZ = 10;
optional int64 onEntityId = 14;
optional int32 enumHandInteract = 11;
optional int32 usingCount = 12;
optional int32 selectionBoxIndex = 13;
optional int32 cancelReason = 16;
optional int32 firstEvent = 17;
}
message InvOpenClose {
optional string inventoryId = 1;
optional int32 opened = 2;
}
message ActivateInventorySlot {
optional int32 mouseButton = 1;
optional int32 modifiers = 4;
optional string TargetInventoryId = 2;
optional int32 TargetSlot = 3;
optional int64 TargetLastChanged = 5;
optional int32 TabIndex = 6;
optional int32 priority = 7;
optional int32 dir = 8;
}
message MoveItemstack {
optional string SourceInventoryId = 1;
optional string TargetInventoryId = 2;
optional int32 SourceSlot = 3;
optional int32 TargetSlot = 4;
optional int32 Quantity = 5;
optional int64 SourceLastChanged = 6;
optional int64 TargetLastChanged = 7;
optional int32 mouseButton = 8;
optional int32 modifiers = 9;
optional int32 priority = 10;
optional int32 TabIndex = 11;
}
message FlipItemstacks {
optional string SourceInventoryId = 1;
optional string TargetInventoryId = 2;
optional int32 SourceSlot = 3;
optional int32 TargetSlot = 4;
optional int64 SourceLastChanged = 5;
optional int64 TargetLastChanged = 6;
optional int32 SourceTabIndex = 7;
optional int32 TargetTabIndex = 8;
}
message CreateItemstack {
optional string TargetInventoryId = 1;
optional int32 TargetSlot = 2;
optional int64 TargetLastChanged = 3;
optional ItemStack itemstack = 4;
}
enum BlockSetMode
{
Break = 0;
Place = 1;
BreakDecor = 2;
}
message ClientLeave
{
optional LeaveReason Reason = 1 [default=Leave];
}
enum MoveKey {
Forward = 0;
Backward = 1;
Left = 2;
Right = 3;
Jump = 4;
Sneak = 5;
Down = 6;
Sprint = 7;
Sitting = 8;
FloorSitting = 9;
LeftMouseDown = 10;
RightMouseDown = 11;
}
enum LeaveReason
{
Leave = 0;
Crash = 1;
}
message ClientPingReply
{
}
message ClientSpecialKey
{
optional SpecialKey key_ = 1 [default = Respawn];
}
enum SpecialKey
{
Respawn = 0;
SetSpawn = 1;
TabPlayerList = 2;
SelectTeam = 3;
}
message SelectedHotbarSlot
{
optional int32 slotNumber = 1;
optional int32 clientId = 2;
optional ItemStack Itemstack = 3;
optional ItemStack OffhandStack = 4;
}
message ClientServerQuery
{
}
message LoginTokenQuery
{
}
message LoginTokenAnswer
{
optional string token = 1;
}
message Behavior
{
optional string code = 1;
optional string attributes = 2;
optional int32 clientSideOptional = 3;
}
message BlockSoundSet
{
optional string walk = 1;
optional string break = 2;
optional string place = 3;
optional string hit = 4;
optional string inside = 5;
optional string ambient = 6;
optional int32 ambientBlockCount = 9;
repeated int32 byToolTool = 7;
repeated BlockSoundSet byToolSound = 8;
}
message HeldSoundSet
{
optional string idle = 1;
optional string equip = 2;
optional string unequip = 3;
optional string attack = 4;
}
message PlayerMode
{
optional string playerUID = 1;
optional int32 gameMode = 2;
optional int32 moveSpeed = 3;
optional int32 freeMove = 4;
optional int32 noClip = 5;
optional int32 viewDistance = 6;
optional int32 pickingRange = 7;
optional int32 freeMovePlaneLock = 8;
optional int32 immersiveFpMode = 9;
optional int32 renderMetaBlocks = 10;
}
message Ambient {
optional bytes data = 1;
}
message BlockType
{
repeated string textureCodes = 1;
repeated CompositeTexture compositeTextures = 2;
repeated string inventoryTextureCodes = 3;
repeated CompositeTexture inventoryCompositeTextures = 4;
optional int32 blockId = 5;
optional string code = 6;
optional string entityClass = 58;
repeated Behavior behaviors = 7;
optional string entityBehaviors = 84;
optional int32 renderPass= 8;
optional int32 drawType = 9;
optional MatterState matterState = 10 [ default = Gas ];
optional int32 walkSpeedFloat = 11;
optional bool isSlipperyWalk = 12;
optional BlockSoundSet sounds = 13;
optional HeldSoundSet heldSounds = 83;
repeated int32 lightHsv = 14;
optional int32 vertexFlags = 51;
optional int32 climbable = 15;
repeated string creativeInventoryTabs = 16;
optional bytes creativeInventoryStacks = 17;
repeated int32 sideOpaqueFlags = 24;
optional int32 faceCullMode = 23;
repeated int32 sideSolidFlags = 46;
optional string seasonColorMap = 25;
optional string climateColorMap = 88;
optional int32 cullFaces = 26;
optional int32 replacable = 27;
optional int32 lightAbsorption = 29;
optional int32 hardnessLevel = 30;
optional int32 resistance = 31;
optional int32 blockMaterial = 32;
optional bytes moddata = 33;
optional CompositeShape shape = 34;
optional CompositeShape shapeInventory = 35;
optional int32 ambientocclusion = 38;
repeated Cube collisionBoxes = 39;
repeated Cube selectionBoxes = 40;
repeated Cube particleCollisionBoxes = 91;
optional string blockclass = 41;
optional ModelTransform guiTransform = 42;
optional ModelTransform fpHandTransform = 43;
optional ModelTransform tpHandTransform = 44;
optional ModelTransform tpOffHandTransform = 99;
optional ModelTransform groundTransform = 45;
optional int32 fertility = 47;
optional bytes ParticleProperties = 48;
optional int32 ParticlePropertiesQuantity = 49;
optional int32 RandomDrawOffset = 50;
optional int32 RandomizeAxes = 69;
optional int32 RandomizeRotations = 87;
repeated BlockDrop drops = 52;
optional int32 liquidLevel = 53;
optional string attributes = 54;
optional CombustibleProperties combustibleProps = 55;
repeated int32 sideAo = 57;
optional int32 neighbourSideAo = 79;
optional GrindingProperties grindingProps = 77;
optional NutritionProperties nutritionProps = 59;
repeated TransitionableProperties transitionableProps = 85;
optional int32 maxStackSize = 60;
optional bytes cropProps = 61;
repeated string cropPropBehaviors = 90;
optional int32 materialDensity = 62;
optional int32 attackPower = 63;
optional int32 attackRange = 70;
optional int32 liquidSelectable= 64;
optional int32 miningTier = 65;
optional int32 requiredMiningTier = 66;
repeated int32 miningmaterial = 67;
repeated int32 miningmaterialspeed = 76;
optional int32 dragMultiplierFloat = 68;
optional int32 storageFlags = 71;
optional int32 renderAlphaTest = 72;
optional string heldTpHitAnimation = 73;
optional string heldRightTpIdleAnimation = 74;
optional string heldLeftTpIdleAnimation = 80;
optional string heldTpUseAnimation = 75;
optional int32 rainPermeable = 78;
optional string liquidCode = 81;
repeated VariantPart variant = 82;
optional CompositeShape lod0shape = 86;
optional int32 frostable = 89;
optional CrushingProperties crushingProps = 92;
optional int32 RandomSizeAdjust = 93;
optional CompositeShape lod2shape = 94;
optional int32 DoNotRenderAtLod2 = 95;
optional int32 width = 96;
optional int32 height = 97;
optional int32 length = 98;
optional int32 isMissing = 100;
optional int32 durability = 101;
optional string heldLeftReadyAnimation = 102;
optional string heldRightReadyAnimation = 103;
}
message VariantPart {
optional string code = 1;
optional string value = 2;
}
message CombustibleProperties {
optional int32 burnTemperature = 1;
optional int32 burnDuration = 2;
optional int32 heatResistance = 3;
optional int32 meltingPoint = 4;
optional int32 meltingDuration = 5;
optional bytes smeltedStack = 6;
optional int32 smeltedRatio = 7;
optional int32 requiresContainer= 8;
optional int32 meltingType = 9;
optional int32 maxTemperature = 10;
}
message NutritionProperties {
optional int32 foodCategory = 1;
optional int32 saturation = 2;
optional int32 health = 3;
optional bytes eatenStack = 4;
}
message TransitionableProperties {
optional NatFloat freshHours = 1;
optional NatFloat transitionHours = 2;
optional bytes transitionedStack = 3;
optional int32 transitionRatio = 4;
optional int32 type = 5;
}
message GrindingProperties {
optional bytes groundStack = 1;
}
message CrushingProperties {
optional bytes crushedStack = 1;
optional int32 hardnessTier = 2;
optional NatFloat quantity = 3;
}
message BlockDrop
{
optional int32 quantityAvg = 1;
optional int32 quantityVar = 2;
optional int32 quantityDist = 3;
optional bytes droppedStack = 4;
optional int32 tool = 5;
}
message NatFloat {
optional int32 avg = 1;
optional int32 var = 2;
optional int32 dist = 3;
}
message CompositeShape
{
optional string base = 1;
optional int32 rotatex = 2;
optional int32 rotatey = 3;
optional int32 rotatez = 4;
repeated CompositeShape alternates = 5;
repeated CompositeShape overlays = 11;
optional int32 voxelizeShape = 6;
repeated string selectiveElements = 7;
optional int32 quantityElements = 8;
optional int32 quantityElementsSet = 9;
optional int32 format = 10;
optional int32 offsetx = 12;
optional int32 offsety = 13;
optional int32 offsetz = 14;
optional bool InsertBakedTextures = 15;
optional int32 scaleAdjust = 16;
}
message CompositeTexture {
optional string base = 1;
repeated BlendedOverlayTexture overlays = 2;
repeated CompositeTexture alternates = 3;
optional int32 rotation = 4;
optional int32 alpha = 5;
repeated CompositeTexture tiles = 6;
optional int32 tilesWidth = 7;
}
message BlendedOverlayTexture {
optional string base = 1;
optional int32 mode = 2;
}
message ItemType
{
optional int32 itemId = 1;
optional int32 maxStackSize = 2;
optional string code = 3;
repeated Behavior behaviors = 39;
repeated CompositeTexture compositeTextures = 4;
optional int32 durability = 5;
repeated int32 miningmaterial = 6;
repeated int32 miningmaterialspeed = 31;
repeated int32 damagedby = 7;
optional bytes creativeInventoryStacks = 8;
repeated string creativeInventoryTabs = 9;
optional ModelTransform guiTransform = 10;
optional ModelTransform fpHandTransform = 11;
optional ModelTransform tpHandTransform = 12;
optional ModelTransform tpOffHandTransform = 43;
optional ModelTransform groundTransform = 22;
optional string attributes = 13;
optional CombustibleProperties combustibleProps = 14;
optional NutritionProperties nutritionProps = 15;
optional GrindingProperties grindingProps = 32;
optional CrushingProperties crushingProps = 38;
repeated TransitionableProperties transitionableProps = 36;
optional CompositeShape shape = 16;
repeated string textureCodes = 17;
optional string itemClass=18;
optional int32 tool = 19;
optional int32 materialDensity = 20;
optional int32 attackPower = 21;
optional int32 attackRange = 25;
optional int32 liquidSelectable= 23;
optional int32 miningTier = 24;
optional int32 storageFlags = 26;
optional int32 renderAlphaTest = 27;
optional string heldTpHitAnimation = 28;
optional string heldRightTpIdleAnimation = 29;
optional string heldLeftTpIdleAnimation = 34;
optional string heldTpUseAnimation = 30;
optional MatterState matterState = 33 [ default = Gas ];
repeated VariantPart variant = 35;
optional HeldSoundSet heldSounds = 37;
optional int32 width = 40;
optional int32 height = 41;
optional int32 length = 42;
repeated int32 lightHsv = 44;
optional int32 isMissing = 45;
optional string heldLeftReadyAnimation = 46;
optional string heldRightReadyAnimation = 47;
}
message ModelTransform {
optional int32 translateX = 1;
optional int32 translateY = 2;
optional int32 translateZ = 3;
optional int32 rotateX = 4;
optional int32 rotateY = 5;
optional int32 rotateZ = 6;
optional int32 rotate = 8;
optional int32 originX = 9;
optional int32 originY = 10;
optional int32 originZ = 11;
optional int32 scaleX = 12;
optional int32 scaleY = 13;
optional int32 scaleZ = 14;
}
enum MatterState
{
Gas = 0;
Liquid = 1;
Solid = 2;
Plasma = 3;
}
// Packetids for Server to Client
enum ServerId
{
TokenAnswer = 77;
ServerIdentification = 1;
Ping = 2;
PlayerPing = 3;
LevelInitialize = 4;
LevelDataChunk = 5;
LevelFinalize = 6;
SetBlock = 7;
ChatLine = 8;
DisconnectPlayer = 9;
Chunks = 10;
UnloadServerChunk = 11;
Inventory = 12;
Calendar = 13;
MapChunk = 17;
Sound = 18;
ServerAssets = 19;
WorldMetaData = 21;
BlockType = 24;
QueryAnswer = 28;
ServerRedirect = 29;
InventoryContents = 30;
InventoryUpdate = 31;
InventoryDoubleUpdate = 32;
Entity = 33;
EntitySpawn = 34;
EntityMoved = 35;
EntityDespawn = 36;
EntityAttributes = 37;
EntityAttributeUpdate = 38;
EntityPacket = 67;
Entities = 40;
PlayerData = 41;
MapRegion = 42;
BlockEntityMessage = 44;
PlayerDeath = 45;
ModeChange = 46;
SetBlocks = 47;
BlockEntities = 48;
PlayerGroups = 49;
PlayerGroup = 50;
SpawnPosition = 51;
HighlightBlocks = 52;
SelectedHotbarSlot = 53;
CustomPacket = 55;
NetworkChannels = 56;
GotoGroup = 57;
ExchangeBlock = 58;
StopMovement = 59;
EntityBulkAttributes = 60;
SpawnParticles = 61;
EntityBulkDebugAttributes = 62;
SetBlocksNoRelight = 63;
BlockDamage = 64;
Ambient = 65;
NotifySlot = 66;
IngameError = 68;
IngameDiscovery = 69;
SetBlocksMinimal = 70;
SetDecors = 71;
RemoveBlockLight = 72;
ServerReady = 73;
UnloadMapRegion = 74;
LandClaims = 75;
Roles = 76;
}
// The Server to client packet
message Server /*IPacket*/
{
optional ServerId id = 90 [default = ServerIdentification];
optional LoginTokenAnswer token = 77;
optional ServerIdentification identification = 1;
optional ServerLevelInitialize levelInitialize = 2;
optional ServerLevelProgress levelDataChunk = 3;
optional ServerLevelFinalize levelFinalize = 4;
optional ServerSetBlock setBlock = 5;
optional ChatLine chatline = 7;
optional ServerDisconnectPlayer disconnectPlayer = 8;
optional ServerChunks chunks = 9;
optional UnloadServerChunk unloadChunk = 10;
optional ServerCalendar calendar = 11;
optional ServerMapChunk mapChunk = 15;
optional ServerPing ping = 16;
optional ServerPlayerPing playerPing = 17;
optional ServerSound sound = 18;
optional ServerAssets assets = 19;
optional WorldMetaData worldMetaData = 21;
optional ServerQueryAnswer queryAnswer = 28;
optional ServerRedirect redirect = 29;
optional InventoryContents inventoryContents = 30;
optional InventoryUpdate inventoryUpdate = 31;
optional InventoryDoubleUpdate inventoryDoubleUpdate = 32;
optional Entity entity = 34;
optional EntitySpawn entitySpawn = 35;
optional EntityDespawn entityDespawn = 36;
optional EntityMoved entityMoved = 37;
optional EntityAttributes entityAttributes = 38;
optional EntityAttributeUpdate entityAttributeUpdate = 39;
optional EntityPacket entityPacket = 67;
optional Entities entities = 40;
optional PlayerData playerData = 41;
optional MapRegion mapRegion = 42;
optional BlockEntityMessage blockEntityMessage = 44;
optional PlayerDeath playerDeath = 45;
optional PlayerMode modeChange = 46;
optional ServerSetBlocks setBlocks = 47;
optional BlockEntities blockEntities = 48;
optional PlayerGroups playerGroups = 49;
optional PlayerGroup playerGroup = 50;
optional EntityPosition spawnPosition = 51;
optional HighlightBlocks highlightBlocks = 52;
optional SelectedHotbarSlot selectedHotbarSlot = 53;
optional CustomPacket customPacket = 55;
optional NetworkChannels networkChannels = 56;
optional GotoGroup gotoGroup = 57;
optional ServerExchangeBlock exchangeBlock = 58;
optional BulkEntityAttributes bulkEntityAttributes = 59;
optional SpawnParticles spawnParticles = 60;
optional BulkEntityDebugAttributes bulkEntityDebugAttributes = 61;
optional ServerSetBlocks setBlocksNoRelight = 62;
optional BlockDamage blockDamage = 64;
optional Ambient ambient = 65;
optional NotifySlot notifySlot = 66;
optional IngameError ingameError = 68;
optional IngameDiscovery ingameDiscovery = 69;
optional ServerSetBlocks setBlocksMinimal = 70;
optional ServerSetDecors setDecors = 71;
optional RemoveBlockLight removeBlockLight = 72;
optional ServerReady serverReady = 73;
optional UnloadMapRegion unloadMapRegion = 74;
optional LandClaims landClaims = 75;
optional Roles roles = 76;
}
message RemoveBlockLight {
optional int32 posX = 1;
optional int32 posY = 2;
optional int32 posZ = 3;
optional int32 lightH = 4;
optional int32 lightS = 5;
optional int32 lightV = 6;
}
message IngameError {
optional string code = 1;
optional string message = 2;
repeated string langParams = 3;
}
message IngameDiscovery {
optional string code = 1;
optional string message = 2;
repeated string langParams = 3;
}
message BlockDamage {
optional int32 posX = 1;
optional int32 posY = 2;
optional int32 posZ = 3;
optional int32 facing = 4;
optional int32 damage = 5;
}
message StopMovement {
}
message GotoGroup {
optional int32 groupId = 1;
}
message ServerIdentification
{
optional string networkVersion = 1;
optional string gameVersion = 17;
optional string serverName = 3;
optional int32 mapSizeX = 7;
optional int32 mapSizeY = 8;
optional int32 mapSizeZ = 9;
optional int32 regionMapSizeX = 21;
optional int32 regionMapSizeY = 22;
optional int32 regionMapSizeZ = 23;
optional int32 disableShadows = 11;
optional int32 playerAreaSize = 12;
optional int32 seed = 13;
optional string playStyle = 16;
optional int32 requireRemapping = 18;
repeated ModId mods = 19;
optional bytes worldConfiguration = 20;
optional string savegameIdentifier = 24;
optional string playListCode = 25;
repeated string serverModIdBlackList = 26;
}
message ModId {
optional string modid = 1;
optional string name = 2;
optional string version = 3;
optional string networkversion = 4;
optional bool requiredOnClient = 5;
}
message ServerReady {
}
message StringList
{
repeated string items = 1;
}
message IntString
{
optional int32 key_ = 1;
optional string value_ = 2;
}
message ServerLevelInitialize
{
optional int32 serverChunkSize = 1;
optional int32 serverMapChunkSize = 2;
optional int32 serverMapRegionSize = 3;
optional int32 maxViewDistance = 4;
}
message ServerAssets
{
repeated BlockType Blocks = 1;
repeated ItemType Items = 2;
repeated EntityType entities = 3;
repeated Recipes recipes = 4;
}
message Recipes {
optional string code = 1;
optional int32 quantity = 2;
optional bytes data = 3;
}
message WorldMetaData
{
optional int32 sunBrightness = 1;
repeated int32 blockLightlevels = 2;
repeated int32 sunLightlevels = 3;
optional bytes worldConfiguration = 4;
optional int32 seaLevel = 5;
}
message LandClaims
{
repeated LandClaim allclaims = 1;
repeated LandClaim addclaims = 2;
}
message LandClaim {
optional bytes data = 1;
}
message Roles {
repeated Role Roles = 1;
}
message Role
{
optional string Code = 1;
optional int32 PrivilegeLevel = 2;
}
message ServerLevelProgress
{
optional int32 percentComplete = 2;
optional string status = 3;
optional int32 percentCompleteSubitem = 4;
}
message ServerLevelFinalize
{
}
message ServerSetBlock
{
optional int32 x = 1;
optional int32 y = 2;
optional int32 z = 3;
optional int32 blockType = 4;
}
message ServerExchangeBlock
{
optional int32 x = 1;
optional int32 y = 2;
optional int32 z = 3;
optional int32 blockType = 4;
}
message PlayerGroups {
repeated PlayerGroup groups = 1;
}
message PlayerGroup {
optional int32 uid = 1;
optional string owneruid = 2;
optional string name = 3;
repeated ChatLine chathistory = 4;
optional int32 createdbyprivatemessage = 5;
optional int32 membership = 6;
}
message ChatLine
{
optional string message = 1;
optional int32 groupid = 2;
optional int32 chatType = 3;
optional string data = 4;
}
message ServerDisconnectPlayer
{
optional string disconnectReason = 1;
}
message ServerSound
{
optional string name = 1;
optional int32 x = 2;
optional int32 y = 3;
optional int32 z = 4;
optional int32 pitch = 5;
optional int32 range = 6;
optional int32 volume = 7;
optional int32 soundType = 8;
}
message ServerQueryAnswer
{
optional string Name = 1;
optional string MOTD = 2;
optional int32 PlayerCount = 3;
optional int32 MaxPlayers = 4;