Entity and block sounds !
This commit is contained in:
@@ -6,6 +6,7 @@ import { LocalPlayer } from "@/client/entity/local_player.ts";
|
||||
import { InputManager } from "@/client/input_manager.ts";
|
||||
import { Options } from "@/client/options.ts";
|
||||
import type { Client } from "@/client/client.ts";
|
||||
import { AIR } from "@/common/constants.ts";
|
||||
|
||||
type Blocks = (x: number, y: number, z: number) => boolean;
|
||||
|
||||
@@ -20,6 +21,8 @@ function setup(ceiling = Infinity, world?: { solid: Blocks; water: Blocks }) {
|
||||
// its water is all still sources
|
||||
fluid_at: (x: number, y: number, z: number) =>
|
||||
world?.water(x, y, z) ? { id: "a:water", height: 1 } : undefined,
|
||||
// blocks without sounds to step on
|
||||
get_block: () => AIR,
|
||||
},
|
||||
screen: undefined,
|
||||
options: new Options(),
|
||||
|
||||
Reference in New Issue
Block a user