World shape for dimension
This commit is contained in:
+4
-1
@@ -6,12 +6,13 @@ import type { Faces } from "./constants.ts";
|
||||
import type { ItemData } from "./inventory.ts";
|
||||
import type { FluidVariant } from "./mod_api/shared.ts";
|
||||
import type { ModListing } from "./mod_loader.ts";
|
||||
import type { WorldShapeJson } from "./world_shape.ts";
|
||||
|
||||
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 = 26;
|
||||
export const PROTOCOL_VERSION = 27;
|
||||
|
||||
export interface PlayerInfo {
|
||||
id: string;
|
||||
@@ -189,6 +190,8 @@ export type ServerMessage =
|
||||
entities: EntityInfo[];
|
||||
// the server's block id for each of its numeric ids, which level_chunk uses. clients number blocks their own way
|
||||
blocks: string[];
|
||||
// the dimension's height and sky light, every level_chunk holds all of its height
|
||||
shape: WorldShapeJson;
|
||||
spawn: { x: number; y: number; z: number; yaw: number; pitch: number };
|
||||
selected_slot: number;
|
||||
// the slots mods added to menu 0, from PLAYER_MENU_EXTRA on, see ctx.menus.extend_player_menu
|
||||
|
||||
Reference in New Issue
Block a user