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 summary of each block 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 receives ticks and what they do.


<!--T:3-->
<!--T:3-->
This is not to be confused with the general server tick rate of 33.33ms (serverconfig value TickTime).
This is not to be confused with the general server tick rate of 33.33ms (serverconfig value TickTime).


== Blocks that tick == <!--T:4-->
== Examples of Blocks that tick == <!--T:4-->


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

edits