Seasons api
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
|
||||
export type Id = string;
|
||||
|
||||
// a biome's season, from its json. see docs/modding/worldgen/biomes.md
|
||||
export type Season = "spring" | "summer" | "autumn" | "winter";
|
||||
|
||||
export interface ItemStack {
|
||||
readonly id: Id;
|
||||
count: number;
|
||||
@@ -76,6 +79,9 @@ export interface SharedWorld {
|
||||
// whether the block's side is a full square things can attach to, like minecraft's isFaceSturdy: its collision
|
||||
// shape covers the whole face. false for air, plants, water and the sides of a slab
|
||||
is_face_sturdy(x: number, y: number, z: number, face: Face): boolean;
|
||||
// the column's biome, like "bworld:plains", and that biome's season. undefined when the chunk isn't loaded
|
||||
biome_at(x: number, z: number): Id | undefined;
|
||||
season_at(x: number, z: number): Season | undefined;
|
||||
}
|
||||
|
||||
// a block in the world, for rules
|
||||
|
||||
Reference in New Issue
Block a user