Seasons api
This commit is contained in:
@@ -141,7 +141,9 @@ Client scripts can read what the client knows, to show it:
|
||||
ctx.player.name;
|
||||
ctx.player.position; // { x, y, z }
|
||||
ctx.player.is_swimming(); // see ../entities/players.md#swimming
|
||||
ctx.player.biome; // and ctx.player.season, see ../worldgen/biomes.md#seasons
|
||||
ctx.world.get_block(x, y, z); // a block id, what this client sees
|
||||
ctx.world.biome_at(x, z); // and ctx.world.season_at(x, z), undefined where nothing's loaded
|
||||
ctx.world.time; // see Time
|
||||
ctx.items.ids(); // every item, in load order
|
||||
ctx.items.exists(id);
|
||||
|
||||
Reference in New Issue
Block a user