Fly command

This commit is contained in:
2026-10-02 18:45:08 -03:00
parent 043c526c9c
commit a4fec0681f
7 changed files with 69 additions and 6 deletions
+2
View File
@@ -241,6 +241,8 @@ export type ServerMessage =
| { type: "vitals"; health: number; max_health: number; food: number; saturation: number; air: number }
// the player's own attack speed attribute, when it changes, for the attack indicator under the crosshair
| { type: "attack_speed"; value: number }
// whether the player flies, see /fly, when it changes
| { type: "flying"; flying: 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 }[] }