This commit is contained in:
2026-11-16 13:39:34 -03:00
parent be0770f3cf
commit 5301e0307c
8 changed files with 74 additions and 9 deletions
+3 -1
View File
@@ -12,7 +12,7 @@ export const AIR_ID = "cubi:air";
// bump when a client and server of different versions can't play together.
// the server rejects a different version before the client downloads anything
export const PROTOCOL_VERSION = 28;
export const PROTOCOL_VERSION = 29;
export interface PlayerInfo {
id: string;
@@ -301,6 +301,8 @@ export type ServerMessage =
| { type: "using_item"; using: boolean }
// whether the player flies, see /fly, when it changes
| { type: "flying"; flying: boolean }
// whether the player is in creative, see /creative, when it changes
| { type: "creative"; creative: boolean }
// the player's own effects that show an icon, when they change. duration is in ticks, -1 for forever, and the
// client counts it down itself, so it isn't sent every tick
| { type: "effects"; effects: { id: string; amplifier: number; duration: number }[] }