Swimming
This commit is contained in:
@@ -136,6 +136,7 @@ Client scripts can read what the client knows, to show it:
|
||||
```ts
|
||||
ctx.player.name;
|
||||
ctx.player.position; // { x, y, z }
|
||||
ctx.player.is_swimming(); // see ../entities/players.md#swimming
|
||||
ctx.world.get_block(x, y, z); // a block id, what this client sees
|
||||
ctx.world.time; // see Time
|
||||
ctx.items.ids(); // every item, in load order
|
||||
|
||||
Reference in New Issue
Block a user