diff --git a/server/world/mcdb/leveldat/data.go b/server/world/mcdb/leveldat/data.go index 05fd50744..68f45038c 100644 --- a/server/world/mcdb/leveldat/data.go +++ b/server/world/mcdb/leveldat/data.go @@ -74,83 +74,86 @@ type Data struct { WalkSpeed float32 `nbt:"walkSpeed"` VerticalFlySpeed float32 `nbt:"verticalFlySpeed"` } `nbt:"abilities"` - BonusChestEnabled bool `nbt:"bonusChestEnabled"` - BonusChestSpawned bool `nbt:"bonusChestSpawned"` - CommandBlockOutput bool `nbt:"commandblockoutput"` - CommandBlocksEnabled bool `nbt:"commandblocksenabled"` - CommandsEnabled bool `nbt:"commandsEnabled"` - CurrentTick int64 `nbt:"currentTick"` - DoDayLightCycle bool `nbt:"dodaylightcycle"` - DoEntityDrops bool `nbt:"doentitydrops"` - DoFireTick bool `nbt:"dofiretick"` - DoImmediateRespawn bool `nbt:"doimmediaterespawn"` - DoInsomnia bool `nbt:"doinsomnia"` - DoMobLoot bool `nbt:"domobloot"` - DoMobSpawning bool `nbt:"domobspawning"` - DoTileDrops bool `nbt:"dotiledrops"` - DoWeatherCycle bool `nbt:"doweathercycle"` - DrowningDamage bool `nbt:"drowningdamage"` - EduLevel bool `nbt:"eduLevel"` - EducationFeaturesEnabled bool `nbt:"educationFeaturesEnabled"` - ExperimentalGamePlay bool `nbt:"experimentalgameplay"` - FallDamage bool `nbt:"falldamage"` - FireDamage bool `nbt:"firedamage"` - FunctionCommandLimit int32 `nbt:"functioncommandlimit"` - HasBeenLoadedInCreative bool `nbt:"hasBeenLoadedInCreative"` - HasLockedBehaviourPack bool `nbt:"hasLockedBehaviorPack"` - HasLockedResourcePack bool `nbt:"hasLockedResourcePack"` - ImmutableWorld bool `nbt:"immutableWorld"` - IsCreatedInEditor bool `nbt:"isCreatedInEditor"` - IsExportedFromEditor bool `nbt:"isExportedFromEditor"` - IsFromLockedTemplate bool `nbt:"isFromLockedTemplate"` - IsFromWorldTemplate bool `nbt:"isFromWorldTemplate"` - IsWorldTemplateOptionLocked bool `nbt:"isWorldTemplateOptionLocked"` - KeepInventory bool `nbt:"keepinventory"` - LastOpenedWithVersion []int32 `nbt:"lastOpenedWithVersion"` - LightningLevel float32 `nbt:"lightningLevel"` - LightningTime int32 `nbt:"lightningTime"` - MaxCommandChainLength int32 `nbt:"maxcommandchainlength"` - MobGriefing bool `nbt:"mobgriefing"` - NaturalRegeneration bool `nbt:"naturalregeneration"` - PRID string `nbt:"prid"` - PVP bool `nbt:"pvp"` - RainLevel float32 `nbt:"rainLevel"` - RainTime int32 `nbt:"rainTime"` - RandomTickSpeed int32 `nbt:"randomtickspeed"` - RequiresCopiedPackRemovalCheck bool `nbt:"requiresCopiedPackRemovalCheck"` - SendCommandFeedback bool `nbt:"sendcommandfeedback"` - ServerChunkTickRange int32 `nbt:"serverChunkTickRange"` - ShowCoordinates bool `nbt:"showcoordinates"` - ShowDeathMessages bool `nbt:"showdeathmessages"` - SpawnMobs bool `nbt:"spawnMobs"` - SpawnRadius int32 `nbt:"spawnradius"` - StartWithMapEnabled bool `nbt:"startWithMapEnabled"` - TexturePacksRequired bool `nbt:"texturePacksRequired"` - TNTExplodes bool `nbt:"tntexplodes"` - UseMSAGamerTagsOnly bool `nbt:"useMsaGamertagsOnly"` - WorldStartCount int64 `nbt:"worldStartCount"` - Experiments map[string]any `nbt:"experiments"` - FreezeDamage bool `nbt:"freezedamage"` - WorldPolicies map[string]any `nbt:"world_policies"` - WorldVersion int32 `nbt:"WorldVersion"` - RespawnBlocksExplode bool `nbt:"respawnblocksexplode"` - ShowBorderEffect bool `nbt:"showbordereffect"` - PermissionsLevel int32 `nbt:"permissionsLevel"` - PlayerPermissionsLevel int32 `nbt:"playerPermissionsLevel"` - IsRandomSeedAllowed bool `nbt:"isRandomSeedAllowed"` - DoLimitedCrafting bool `nbt:"dolimitedcrafting"` - EditorWorldType int32 `nbt:"editorWorldType"` - PlayersSleepingPercentage int32 `nbt:"playerssleepingpercentage"` - RecipesUnlock bool `nbt:"recipesunlock"` - NaturalGeneration bool `nbt:"naturalgeneration"` - ProjectilesCanBreakBlocks bool `nbt:"projectilescanbreakblocks"` - ShowRecipeMessages bool `nbt:"showrecipemessages"` - IsHardcore bool `nbt:"IsHardcore"` - ShowDaysPlayed bool `nbt:"showdaysplayed"` - TNTExplosionDropDecay bool `nbt:"tntexplosiondropdecay"` - HasUncompleteWorldFileOnDisk bool `nbt:"HasUncompleteWorldFileOnDisk"` - PlayerHasDied bool `nbt:"PlayerHasDied"` - UseAllowList bool `nbt:"UseAllowList"` + BonusChestEnabled bool `nbt:"bonusChestEnabled"` + BonusChestSpawned bool `nbt:"bonusChestSpawned"` + CommandBlockOutput bool `nbt:"commandblockoutput"` + CommandBlocksEnabled bool `nbt:"commandblocksenabled"` + CommandsEnabled bool `nbt:"commandsEnabled"` + CurrentTick int64 `nbt:"currentTick"` + DoDayLightCycle bool `nbt:"dodaylightcycle"` + DoEntityDrops bool `nbt:"doentitydrops"` + DoFireTick bool `nbt:"dofiretick"` + DoImmediateRespawn bool `nbt:"doimmediaterespawn"` + DoInsomnia bool `nbt:"doinsomnia"` + DoMobLoot bool `nbt:"domobloot"` + DoMobSpawning bool `nbt:"domobspawning"` + DoTileDrops bool `nbt:"dotiledrops"` + DoWeatherCycle bool `nbt:"doweathercycle"` + DrowningDamage bool `nbt:"drowningdamage"` + EduLevel bool `nbt:"eduLevel"` + EducationFeaturesEnabled bool `nbt:"educationFeaturesEnabled"` + ExperimentalGamePlay bool `nbt:"experimentalgameplay"` + FallDamage bool `nbt:"falldamage"` + FireDamage bool `nbt:"firedamage"` + FunctionCommandLimit int32 `nbt:"functioncommandlimit"` + HasBeenLoadedInCreative bool `nbt:"hasBeenLoadedInCreative"` + HasLockedBehaviourPack bool `nbt:"hasLockedBehaviorPack"` + HasLockedResourcePack bool `nbt:"hasLockedResourcePack"` + ImmutableWorld bool `nbt:"immutableWorld"` + IsCreatedInEditor bool `nbt:"isCreatedInEditor"` + IsExportedFromEditor bool `nbt:"isExportedFromEditor"` + IsFromLockedTemplate bool `nbt:"isFromLockedTemplate"` + IsFromWorldTemplate bool `nbt:"isFromWorldTemplate"` + IsWorldTemplateOptionLocked bool `nbt:"isWorldTemplateOptionLocked"` + KeepInventory bool `nbt:"keepinventory"` + LastOpenedWithVersion []int32 `nbt:"lastOpenedWithVersion"` + LightningLevel float32 `nbt:"lightningLevel"` + LightningTime int32 `nbt:"lightningTime"` + MaxCommandChainLength int32 `nbt:"maxcommandchainlength"` + MobGriefing bool `nbt:"mobgriefing"` + NaturalRegeneration bool `nbt:"naturalregeneration"` + PRID string `nbt:"prid"` + PVP bool `nbt:"pvp"` + RainLevel float32 `nbt:"rainLevel"` + RainTime int32 `nbt:"rainTime"` + RandomTickSpeed int32 `nbt:"randomtickspeed"` + RequiresCopiedPackRemovalCheck bool `nbt:"requiresCopiedPackRemovalCheck"` + SendCommandFeedback bool `nbt:"sendcommandfeedback"` + ServerChunkTickRange int32 `nbt:"serverChunkTickRange"` + ShowCoordinates bool `nbt:"showcoordinates"` + ShowDeathMessages bool `nbt:"showdeathmessages"` + SpawnMobs bool `nbt:"spawnMobs"` + SpawnRadius int32 `nbt:"spawnradius"` + StartWithMapEnabled bool `nbt:"startWithMapEnabled"` + TexturePacksRequired bool `nbt:"texturePacksRequired"` + TNTExplodes bool `nbt:"tntexplodes"` + UseMSAGamerTagsOnly bool `nbt:"useMsaGamertagsOnly"` + WorldStartCount int64 `nbt:"worldStartCount"` + Experiments map[string]any `nbt:"experiments"` + FreezeDamage bool `nbt:"freezedamage"` + WorldPolicies map[string]any `nbt:"world_policies"` + WorldVersion int32 `nbt:"WorldVersion"` + RespawnBlocksExplode bool `nbt:"respawnblocksexplode"` + ShowBorderEffect bool `nbt:"showbordereffect"` + PermissionsLevel int32 `nbt:"permissionsLevel"` + PlayerPermissionsLevel int32 `nbt:"playerPermissionsLevel"` + IsRandomSeedAllowed bool `nbt:"isRandomSeedAllowed"` + DoLimitedCrafting bool `nbt:"dolimitedcrafting"` + EditorWorldType int32 `nbt:"editorWorldType"` + PlayersSleepingPercentage int32 `nbt:"playerssleepingpercentage"` + RecipesUnlock bool `nbt:"recipesunlock"` + NaturalGeneration bool `nbt:"naturalgeneration"` + ProjectilesCanBreakBlocks bool `nbt:"projectilescanbreakblocks"` + ShowRecipeMessages bool `nbt:"showrecipemessages"` + IsHardcore bool `nbt:"IsHardcore"` + ShowDaysPlayed bool `nbt:"showdaysplayed"` + TNTExplosionDropDecay bool `nbt:"tntexplosiondropdecay"` + HasUncompleteWorldFileOnDisk bool `nbt:"HasUncompleteWorldFileOnDisk"` + PlayerHasDied bool `nbt:"PlayerHasDied"` + UseAllowList bool `nbt:"UseAllowList"` + AllowAnonymousBlockDropsInEditorWorlds bool `nbt:"allowAnonymousBlockDropsInEditorWorlds"` + PlayerWaypoints int32 `nbt:"playerwaypoints"` + ServerEditorConnectionPolicy int32 `nbt:"serverEditorConnectionPolicy"` } // FillDefault fills out d with all the default level.dat values.