Modding:Chunk Data Storage

From Vintage Story Wiki
Revision as of 21:40, 28 October 2023 by Bluelightning32 (talk | contribs) (Add a more prominent link to the chunk storage tutorial)

A chunk is a 32x32x32 cube of blocks. There is a tutorial on adding custom moddata to a chunk.

Each chunk contains the following information:

  • Every block in the solid layer
  • Every block in the fluid layer
  • Sparse map of block positions to block entities
  • List of entities
  • Sparse map of decor blocks. The map is indexed by both the block position and decor index. The decor index includes which face of the parent block the decor is attached to, and optionally a location on a 16x16 grid on that block face (used by caveart).
  • Map of modid to a byte array of custom moddata
  • Format version metadata
Icon Sign.png

Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.

Modding
Modding Introduction Getting Started Theme Pack
Content Modding Content Mods Developing a Content Mod Basic Tutorials Intermediate Tutorials Advanced Tutorials Content Mod Concepts
Code Modding Code Mods Setting up your Development Environment
Property Overview ItemEntityEntity BehaviorsBlockBlock BehaviorsBlock ClassesBlock EntitiesBlock Entity BehaviorsCollectible BehaviorsWorld properties
Workflows & Infrastructure Modding Efficiency TipsMod-engine compatibilityMod ExtensibilityVS Engine
Additional Resources Community Resources Modding API Updates Programming Languages List of server commandsList of client commandsClient startup parametersServer startup parameters
Example ModsAPI DocsGitHub Repository