Breathing !

This commit is contained in:
2026-10-02 11:28:30 -03:00
parent 9ca717d2d0
commit 88d6de13d5
10 changed files with 50 additions and 12 deletions
+2 -2
View File
@@ -237,8 +237,8 @@ export type ServerMessage =
| { type: "time"; time: number }
// answers suggest: start is where in the text the suggestions replace from, up to the caret
| { type: "suggestions"; id: number; start: number; suggestions: { text: string; tooltip?: string }[] }
// the player's own health, max health, hunger and saturation, when they change
| { type: "vitals"; health: number; max_health: number; food: number; saturation: number }
// the player's own health, max health, hunger, saturation and air (out of 20, 2 a bubble), when they change
| { 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 }
// a mod's server script talking to its client script, see ctx.net