@@ -34,7 +34,7 @@ message WorldPacket {
3434 PlayerLocalSwitchChangedPacket player_local_switch_changed_packet = 21 ;
3535 PlayerLocalSwitchResetPacket player_local_switch_reset_packet = 22 ;
3636 PlayerDirectMessagePacket player_direct_message_packet = 23 ;
37- PlayerTouchPlayerPacket player_touch_player_packet = 24 ;
37+ PlayerExchangeEffectsPacket player_exchange_effects_packet = 24 ;
3838 PlayerTeleportedPacket player_teleported_packet = 25 ;
3939
4040 /* World packets - Mostly send out by the server */
@@ -57,6 +57,9 @@ message WorldPacket {
5757 PlayerSpectatePacket player_spectate_packet = 37 ;
5858
5959 PlayerCounterTransactionPacket player_counter_transaction_packet = 38 ;
60+ PlayerSetCollectiblesPacket player_set_collectibles_packet = 39 ;
61+
62+ PlayerWoot player_woot = 40 ;
6063 }
6164}
6265
@@ -70,12 +73,12 @@ message Ping {
7073message GlobalSwitchChangedPacket {
7174 int32 player_id = 1 ;
7275 int32 switch_id = 2 ;
73- bool enabled = 3 ;
76+ bool switch_enabled = 3 ;
7477}
7578
7679message GlobalSwitchResetPacket {
7780 int32 player_id = 1 ;
78- bool enabled = 2 ;
81+ bool switch_enabled = 2 ;
7982}
8083
8184message SystemMessagePacket {
@@ -122,15 +125,13 @@ message WorldClearedPacket {
122125message WorldBlockPlacedPacket {
123126 optional int32 player_id = 1 ;
124127
125- bool is_fill_operation = 3 ;
126-
127128 // Repeated for use in fill operations
128- repeated PointInteger positions = 4 ;
129- int32 layer = 5 ;
130- int32 block_id = 6 ;
129+ repeated PointInteger positions = 2 ;
130+ int32 layer = 3 ;
131+ int32 block_id = 4 ;
131132
132133 // Legacy? Holds a byte[] that can hold extra information
133- bytes extra_fields = 7 ;
134+ bytes extra_fields = 5 ;
134135}
135136
136137message WorldBlockFilledPacket {
@@ -161,8 +162,11 @@ message PlayerInitPacket {
161162 int32 world_height = 4 ;
162163
163164 /* Very specific world state */
164- bytes global_switch_state = 6 ;
165- bytes world_data = 7 ;
165+ bytes global_switch_state = 5 ;
166+ bytes world_data = 6 ;
167+
168+ // Did player woot?
169+ PlayerWoot player_woot = 7 ;
166170}
167171
168172message PlayerInitReceivedPacket {
@@ -233,7 +237,7 @@ message PlayerModModePacket {
233237}
234238
235239message PlayerEnterSecretEditKeyPacket {
236- string secret_edit_key = 2 ;
240+ string secret_edit_key = 1 ;
237241}
238242
239243message PlayerRespawnPacket {
@@ -249,40 +253,30 @@ message PlayerResetPacket {
249253message PlayerTouchBlockPacket {
250254 optional int32 player_id = 1 ;
251255 optional PointInteger position = 2 ;
252- int32 block_id = 3 ;
253- }
254-
255- message PlayerTouchPlayerPacket {
256- optional int32 player_id = 1 ;
257- int32 touched_player = 2 ;
258- TouchType touch_type = 3 ;
259-
260- enum TouchType {
261- START = 0 ;
262- END = 1 ;
263- }
256+ int32 layer = 3 ;
257+ int32 block_id = 4 ;
264258}
265259
266260message PlayerAddEffectPacket {
267- optional int32 player_id = 1 ;
268- bool from_server = 2 ;
269-
270- /* Effect data */
271- int32 effect_id = 3 ; // Todo: Make this an enum.
272-
273- optional int32 duration = 4 ;
274- optional int32 strength = 5 ;
261+ int32 player_id = 1 ;
262+ int32 effect_id = 2 ;
263+ optional int32 duration = 3 ;
264+ optional int32 strength = 4 ;
265+ optional int32 from_player_id = 5 ;
275266}
276267
277268message PlayerRemoveEffectPacket {
278- optional int32 player_id = 1 ;
279-
280- int32 effect_id = 4 ; // Todo: Make this an enum.
269+ int32 player_id = 1 ;
270+ int32 effect_id = 2 ;
271+ optional int32 to_player_id = 3 ;
281272}
282273
283274message PlayerResetEffectsPacket {
284- optional int32 player_id = 1 ;
285- bool from_server = 2 ;
275+ int32 player_id = 1 ;
276+ }
277+
278+ message PlayerExchangeEffectsPacket {
279+ int32 target_player_id = 1 ;
286280}
287281
288282message PlayerTeamUpdatePacket {
@@ -307,9 +301,8 @@ message PlayerLocalSwitchChangedPacket {
307301}
308302
309303message PlayerLocalSwitchResetPacket {
310- optional int32 player_id = 1 ;
311- int32 switch_id = 2 ;
312- bool switch_enabled = 3 ;
304+ int32 player_id = 1 ;
305+ bool switch_enabled = 2 ;
313306}
314307
315308message PlayerDirectMessagePacket {
@@ -319,6 +312,16 @@ message PlayerDirectMessagePacket {
319312 string message = 3 ;
320313}
321314
315+ message PlayerSetCollectiblesPacket {
316+ optional int32 player_id = 1 ;
317+ repeated PointInteger collected = 2 ;
318+ }
319+
320+ message PlayerWoot {
321+ optional int32 player_id = 1 ;
322+ bool active = 2 ;
323+ }
324+
322325/*
323326 ============================================
324327 PARTS, not messages themselves.
@@ -371,6 +374,7 @@ message WorldMeta {
371374 string owner_role = 9 ;
372375 bool minimap_enabled = 10 ;
373376 bool has_secret_edit_key = 11 ;
377+ int32 woots = 12 ;
374378
375379 enum WorldType {
376380 Saved = 0 ;
@@ -401,3 +405,12 @@ message PointDouble {
401405 double x = 1 ;
402406 double y = 2 ;
403407}
408+
409+ /*
410+ * Represents an effect.
411+ */
412+ message PlayerEffect {
413+ int32 type = 1 ;
414+ optional int32 duration = 2 ;
415+ optional int32 strength = 3 ;
416+ }
0 commit comments