ServerBlockTicking: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 5: Line 5:


== General == <!--T:2-->
== General == <!--T:2-->
By default the server randomly ticks blocks throughout the world every 300ms (serverconfig value BlockTickInterval). It ticks a chunk radius (serverconfig value BlockTickChunkRange) around the player. For each chunk, 16 blocks (serverconfig value RandomBlockTicksPerChunk) are sampled at random. Each block is asked whether it would like to receive a game tick. If it says "yes", then a block location will be queued for ticking. Each block decides what happens when it receives a tick and this is different for every block. Below is a selection of blocks that receives ticks and what they do.
By default the server randomly ticks blocks throughout the world every 300ms (serverconfig value BlockTickInterval). It ticks a chunk radius (serverconfig value BlockTickChunkRange) around the player. For each chunk, 16 blocks (serverconfig value RandomBlockTicksPerChunk) are sampled at random. Each block is asked whether it would like to receive a game tick. If it says "yes", then a block location will be queued for ticking. Each block decides what happens when it receives a tick and this is different for every block. Below is a selection of blocks that receive ticks and what they do.


<!--T:3-->
<!--T:3-->
Confirmedusers, Bureaucrats, editor, Administrators
1,793

edits