Creative
This commit is contained in:
+3
-1
@@ -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 }[] }
|
||||
|
||||
Reference in New Issue
Block a user