Modding:Chunk Data Storage: Difference between revisions

From Vintage Story Wiki
(Add modding navbox)
(Add a more prominent link to the chunk storage tutorial)
Line 1: Line 1:
A chunk is a 32x32x32 cube of blocks. Each chunk contains the following information:
A chunk is a 32x32x32 cube of blocks. There is a [[Modding:Chunk_Moddata|tutorial]] on adding custom moddata to a chunk.
 
Each chunk contains the following information:
* [https://apidocs.vintagestory.at/api/Vintagestory.API.Common.IWorldChunk.html#Vintagestory_API_Common_IWorldChunk_GetLocalBlockAtBlockPos_Vintagestory_API_Common_IWorldAccessor_System_Int32_System_Int32_System_Int32_System_Int32_ Every block] in the solid layer
* [https://apidocs.vintagestory.at/api/Vintagestory.API.Common.IWorldChunk.html#Vintagestory_API_Common_IWorldChunk_GetLocalBlockAtBlockPos_Vintagestory_API_Common_IWorldAccessor_System_Int32_System_Int32_System_Int32_System_Int32_ Every block] in the solid layer
* [https://apidocs.vintagestory.at/api/Vintagestory.API.Common.IWorldChunk.html#Vintagestory_API_Common_IWorldChunk_GetLocalBlockAtBlockPos_Vintagestory_API_Common_IWorldAccessor_System_Int32_System_Int32_System_Int32_System_Int32_ Every block] in the fluid layer
* [https://apidocs.vintagestory.at/api/Vintagestory.API.Common.IWorldChunk.html#Vintagestory_API_Common_IWorldChunk_GetLocalBlockAtBlockPos_Vintagestory_API_Common_IWorldAccessor_System_Int32_System_Int32_System_Int32_System_Int32_ Every block] in the fluid layer