Undergarden mod !
This commit is contained in:
+6
-3
@@ -7,7 +7,7 @@ export const AIR_ID = "bworld: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 = 12;
|
||||
export const PROTOCOL_VERSION = 13;
|
||||
|
||||
export interface PlayerInfo {
|
||||
id: string;
|
||||
@@ -46,6 +46,9 @@ export type EntityInfo =
|
||||
// glowing, on_fire, silent, left_handed, equipment (slot to item). only what's set is there
|
||||
export type EntityData = Record<string, unknown>;
|
||||
|
||||
// what happens to an entity that clients show, see entity_event
|
||||
export type EntityEvent = "hurt" | "death" | "swing";
|
||||
|
||||
// x, y, z, block id, and its state bits when they aren't 0
|
||||
export type BlockChange = [number, number, number, string, number?];
|
||||
|
||||
@@ -162,8 +165,8 @@ export type ServerMessage =
|
||||
}
|
||||
// all of an entity's synced data, when any of it changed
|
||||
| { type: "entity_data"; id: string; data: EntityData }
|
||||
// hurt flashes it red, death starts it falling over (it's removed a second later)
|
||||
| { type: "entity_event"; id: string; event: "hurt" | "death" }
|
||||
// hurt flashes it red, death starts it falling over (it's removed a second later), swing is it attacking
|
||||
| { type: "entity_event"; id: string; event: EntityEvent }
|
||||
// what's riding it now, by id
|
||||
| { type: "set_passengers"; id: string; passengers: string[] }
|
||||
// a dropped item's stack changed, like when two stacks merge
|
||||
|
||||
Reference in New Issue
Block a user