up3
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled

This commit is contained in:
2026-07-09 08:33:57 +08:00
commit 26ed99fda6
845 changed files with 75419 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
package mcdb
//lint:file-ignore U1000 Unused unexported constants are present for future code using these.
// Keys on a per-sub chunk basis. These are prefixed by the chunk coordinates and subchunk ID.
const (
keySubChunkData = '/' // 2f
)
// Keys on a per-chunk basis. These are prefixed by only the chunk coordinates.
const (
// keyVersion holds a single byte of data with the version of the chunk.
keyVersion = ',' // 2c
// keyVersionOld was replaced by keyVersion. It is still used by vanilla to check compatibility, but vanilla no
// longer writes this tag.
keyVersionOld = 'v' // 76
// keyBlockEntities holds n amount of NBT compound tags appended to each other (not a TAG_List, just appended). The
// compound tags contain the position of the block entities.
keyBlockEntities = '1' // 31
// keyEntitiesOld holds n amount of NBT compound tags appended to each other (not a TAG_List, just appended). The
// compound tags contain the position of the entities.
keyEntitiesOld = '2' // 32
// keyPendingScheduledTicks holds an NBT structure containing all scheduled
// ticks that were pending in the chunk.
keyPendingScheduledTicks = '3'
// keyFinalisation contains a single LE int32 that indicates the state of generation of the chunk. If 0, the chunk
// needs to be ticked. If 1, the chunk needs to be populated and if 2 (which is the state generally found in world
// saves from vanilla), the chunk is fully finalised.
keyFinalisation = '6' // 36
// key3DData holds 3-dimensional biomes for the entire chunk.
key3DData = '+' // 2b
// key2DData is no longer used in worlds with world height change. It was replaced by key3DData in newer worlds
// which has 3-dimensional biomes.
key2DData = '-' // 2d
// keyChecksum holds a list of checksums of some sort. It's not clear of what data this checksum is composed or what
// these checksums are used for.
keyChecksums = ';' // 3b
keyEntityIdentifiers = "digp"
keyEntity = "actorprefix"
)
// Keys on a per-world basis. These are found only once in a leveldb world save.
const (
keyAutonomousEntities = "AutonomousEntities"
keyOverworld = "Overworld"
keyMobEvents = "mobevents"
keyBiomeData = "BiomeData"
keyScoreboard = "scoreboard"
keyLocalPlayer = "~local_player"
)
const (
finalisationGenerated = iota + 1
finalisationPopulated
)