hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
70 lines (33 loc) • 830 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Chunk](./server.chunk.md) > [spawn](./server.chunk.spawn.md)
## Chunk.spawn() method
Spawn the chunk in the world.
**Signature:**
```typescript
spawn(world: World, originCoordinate: Vector3Like): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
world
</td><td>
[World](./server.world.md)
</td><td>
The world to spawn the chunk in.
</td></tr>
<tr><td>
originCoordinate
</td><td>
[Vector3Like](./server.vector3like.md)
</td><td>
The origin coordinate of the chunk.
</td></tr>
</tbody></table>
**Returns:**
void