Properties
Data
Data : { BorderCenterX ?: number ; BorderCenterZ ?: number ; BorderDamagePerBlock ?: number ; BorderSafeZone ?: number ; BorderSize ?: number ; BorderSizeLerpTarget ?: number ; BorderSizeLerpTime ?: number ; BorderWarningBlocks ?: number ; BorderWarningTime ?: number ; CustomBossEvents ?: {} ; DataPacks ?: { Disabled : string [] ; Enabled : string [] ; } ; DataVersion ?: number ; DayTime ?: number ; Difficulty ?: number ; DifficultyLocked ?: number ; DragonFight ?: Partial < { DragonKilled : number ; Gateways : number [] [] ; NeedsStateScanning : number ; PreviouslyKilled : number ; } > ; GameRules ?: Partial < { announceAdvancements : "false" | "true" ; commandBlockOutput : "false" | "true" ; disableElytraMovementCheck : "false" | "true" ; disableRaids : "false" | "true" ; doDaylightCycle : "false" | "true" ; doEntityDrops : "false" | "true" ; doFireTick : "false" | "true" ; doImmediateRespawn : "false" | "true" ; doInsomnia : "false" | "true" ; doLimitedCrafting : "false" | "true" ; doMobLoot : "false" | "true" ; doMobSpawning : "false" | "true" ; doPatrolSpawning : "false" | "true" ; doTileDrops : "false" | "true" ; doTraderSpawning : "false" | "true" ; doWardenSpawning : "false" | "true" ; doWeatherCycle : "false" | "true" ; drowningDamage : "false" | "true" ; fallDamage : "false" | "true" ; fireDamage : "false" | "true" ; forgiveDeadPlayers : "false" | "true" ; freezeDamage : "false" | "true" ; keepInventory : "false" | "true" ; logAdminCommands : "false" | "true" ; maxCommandChainLength : string ; maxEntityCramming : string ; mobGriefing : "false" | "true" ; naturalRegeneration : "false" | "true" ; playersSleepingPercentage : string ; randomTickSpeed : string ; reducedDebugInfo : "false" | "true" ; sendCommandFeedback : "false" | "true" ; showDeathMessages : "false" | "true" ; spawnRadius : string ; spectatorsGenerateChunks : "false" | "true" ; universalAnger : "false" | "true" ; } > ; GameType : number ; LastPlayed : number ; LevelName : string ; MapFeatures ?: number ; Player : PlayerDat ; RandomSeed ?: number ; ScheduledEvents ?: number ; ServerBrands ?: string [] ; SizeOnDisk : number ; SpawnAngle ?: number ; SpawnX : number ; SpawnY : number ; SpawnZ : number ; Time : number ; Version ?: number | { Id : number ; Name : string ; Series : string ; Snapshot : number ; } ; WanderingTraderSpawnChance ?: number ; WanderingTraderSpawnDelay ?: number ; WasModded ?: number ; WorldGenSettings ?: Partial < { bonus_chest : number ; dimensions : { minecraft:overworld : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; minecraft:the_end : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; minecraft:the_nether : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; } ; generate_features : number ; seed : number ; } > ; allowCommands ?: number ; clearWeatherTime ?: number ; hardcore : number ; initialized ?: number ; rainTime : number ; raining : number ; thunderTime : number ; thundering : number ; version ?: number ; }
Type declaration
Optional
Border CenterX ?: number
Optional
Border CenterZ ?: number
Optional
Border Damage Per Block ?: number
Optional
Border Safe Zone ?: number
Optional
Border Size ?: number
Optional
Border Size Lerp Target ?: number
Optional
Border Size Lerp Time ?: number
Optional
Border Warning Blocks ?: number
Optional
Border Warning Time ?: number
Optional
Custom Boss Events ?: {}
Optional
Data Packs ?: { Disabled : string [] ; Enabled : string [] ; }
Disabled : string []
Enabled : string []
Optional
Data Version ?: number
Optional
Day Time ?: number
Optional
Difficulty ?: number
Optional
Difficulty Locked ?: number
Optional
Dragon Fight ?: Partial < { DragonKilled : number ; Gateways : number [] [] ; NeedsStateScanning : number ; PreviouslyKilled : number ; } >
Optional
Game Rules ?: Partial < { announceAdvancements : "false" | "true" ; commandBlockOutput : "false" | "true" ; disableElytraMovementCheck : "false" | "true" ; disableRaids : "false" | "true" ; doDaylightCycle : "false" | "true" ; doEntityDrops : "false" | "true" ; doFireTick : "false" | "true" ; doImmediateRespawn : "false" | "true" ; doInsomnia : "false" | "true" ; doLimitedCrafting : "false" | "true" ; doMobLoot : "false" | "true" ; doMobSpawning : "false" | "true" ; doPatrolSpawning : "false" | "true" ; doTileDrops : "false" | "true" ; doTraderSpawning : "false" | "true" ; doWardenSpawning : "false" | "true" ; doWeatherCycle : "false" | "true" ; drowningDamage : "false" | "true" ; fallDamage : "false" | "true" ; fireDamage : "false" | "true" ; forgiveDeadPlayers : "false" | "true" ; freezeDamage : "false" | "true" ; keepInventory : "false" | "true" ; logAdminCommands : "false" | "true" ; maxCommandChainLength : string ; maxEntityCramming : string ; mobGriefing : "false" | "true" ; naturalRegeneration : "false" | "true" ; playersSleepingPercentage : string ; randomTickSpeed : string ; reducedDebugInfo : "false" | "true" ; sendCommandFeedback : "false" | "true" ; showDeathMessages : "false" | "true" ; spawnRadius : string ; spectatorsGenerateChunks : "false" | "true" ; universalAnger : "false" | "true" ; } >
Game Type : number
Last Played : number
Level Name : string
Optional
Map Features ?: number
Optional
Random Seed ?: number
Optional
Scheduled Events ?: number
Optional
Server Brands ?: string []
Size On Disk : number
Optional
Spawn Angle ?: number
SpawnX : number
SpawnY : number
SpawnZ : number
Time : number
Optional
Version ?: number | { Id : number ; Name : string ; Series : string ; Snapshot : number ; }
Optional
Wandering Trader Spawn Chance ?: number
Optional
Wandering Trader Spawn Delay ?: number
Optional
Was Modded ?: number
Optional
World Gen Settings ?: Partial < { bonus_chest : number ; dimensions : { minecraft:overworld : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; minecraft:the_end : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; minecraft:the_nether : { generator : { biome_source : { preset ?: string ; type : "minecraft:multi_noise" | "minecraft:noise" | "minecraft:fixed" ; } ; settings : "minecraft:overworld" | "minecraft:nether" | "minecraft:end" ; type : "minecraft:noise" ; } ; type : "minecraft:overworld" | "minecraft:the_nether" | "minecraft:the_end" ; } ; } ; generate_features : number ; seed : number ; } >
Optional
allow Commands ?: number
Optional
clear Weather Time ?: number
hardcore : number
Optional
initialized ?: number
rain Time : number
raining : number
thunder Time : number
thundering : number
Optional
version ?: number
EACH version of minecraft will have a slightly different structure to it's level DAT file.
=>Last updated with 1.19.2 =>All constants are values that existed in 1.0 and the above version =>Please add checks before blindly pulling values from here.
Other then that have fun
=>Some number values are actually booleans. However a byte is the smallest unit the level.dat file can save.
Note: Saving back values is not currently supported!