UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

70 lines (33 loc) 865 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Chunk](./server.chunk.md) &gt; [setBlock](./server.chunk.setblock.md) ## Chunk.setBlock() method Set the block at a specific local coordinate by block type id. **Signature:** ```typescript setBlock(localCoordinate: Vector3Like, blockTypeId: number): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> localCoordinate </td><td> [Vector3Like](./server.vector3like.md) </td><td> The local coordinate of the block to set. </td></tr> <tr><td> blockTypeId </td><td> number </td><td> The block type id to set. </td></tr> </tbody></table> **Returns:** void