Health and hunger system
This commit is contained in:
@@ -10,6 +10,10 @@ const SEND_POSITION_TICKS = 2;
|
||||
export class LocalPlayer extends Player {
|
||||
client: Client;
|
||||
inventories = new ClientInventories();
|
||||
// what the server says, see server/game/vitals.ts. out of 20
|
||||
health = 20;
|
||||
food = 20;
|
||||
saturation = 5;
|
||||
|
||||
move_speed = 4;
|
||||
// blocks per second, peaks about 1.25 blocks up with the entity's gravity and drag
|
||||
|
||||
Reference in New Issue
Block a user