用NbtStudio编辑Minecraft存档NBT数据
发布时间:2025-02-15 19:06       
更新时间:2025-02-16 07:20
使用 NbtStudio 编辑 Minecraft 存档的 NBT 数据
本次教程将介绍如何使用 NbtStudio 来查看和编辑 Minecraft 存档的 NBT 数据。NbtStudio 是一款强大的工具,但请注意,它并不能打开所有
.dat
文件。注意事项
-
本文提供的方法只能解决部分问题,可能并非最优解。
-
由于 Minecraft 服务器地图通常包含多个维度(如主世界、下界、末地),建议对每个维度的文件进行修改,以确保修改生效。
下载 NbtStudio
NbtStudio 的下载链接如下:
-
NbtStudio 下载链接(GitHub 项目页面)
由于下载地址是 GitHub,网络条件可能会影响下载速度。如果遇到问题,请确保网络连接稳定。
进入 GitHub 页面后,找到 Releases 选项,点击进入公共项目文件页面。下载
NbtStudio.exe
文件。注意:NbtStudio 需要 .NET 6.0 或更高版本。如果尚未安装,可以从以下链接下载:
使用 NbtStudio 编辑 level.dat
-
打开
level.dat
文件-
将
level.dat
文件拖动到NbtStudio.exe
文件上方,即可打开文件。
-
-
编辑存档数据
-
打开
level.dat
文件后,你可以查看和编辑其中的内容。 -
例如,如果你想为服务器地图添加实验性玩法,可以参考一个已创建的实验性玩法存档(
level.dat
文件),并将其内容复制到服务器地图的level.dat
文件中。 -
推荐直接复制和粘贴相关内容,以避免手动编辑的错误。
-
-
修改每个维度的文件
-
Minecraft 服务器通常包含多个维度(主世界、下界、末地),因此需要对每个维度的
level.dat
文件进行修改。 -
修改完成后,保存文件并重启服务器,以使更改生效。
-
常见修改内容
以下是一些常见的修改内容,供参考:
-
地图名称:
LevelName: "world"
-
时间:
Time: 174000L
-
版本显示:
Version: {Name: "1.20.4", Series: "main", Snapshot: 0b, Id: 3700}
-
游戏规则:
GameRules: { spawnRadius: "10", playersNetherPortalCreativeDelay: "1", forgiveDeadPlayers: "true", doInsomnia: "true", fallDamage: "true", doDaylightCycle: "true", playersNetherPortalDefaultDelay: "80", doWeatherCycle: "true", globalSoundEvents: "true", doPatrolSpawning: "true", maxCommandChainLength: "65536", universalAnger: "false", tntExplosionDropDecay: "false", doImmediateRespawn: "false", fireDamage: "true", playersSleepingPercentage: "100", mobExplosionDropDecay: "true", maxEntityCramming: "24", doMobSpawning: "true", lavaSourceConversion: "false", showDeathMessages: "true", projectilesCanBreakBlocks: "true", announceAdvancements: "true", disableRaids: "false", maxCommandForkCount: "65536", sendCommandFeedback: "true", naturalRegeneration: "true", reducedDebugInfo: "false", doFireTick: "true", drowningDamage: "true", blockExplosionDropDecay: "true", doLimitedCrafting: "false", commandBlockOutput: "true", doTraderSpawning: "true", doVinesSpread: "true", spectatorsGenerateChunks: "true", snowAccumulationHeight: "1", mobGriefing: "true", doEntityDrops: "true", keepInventory: "false", doTileDrops: "true", randomTickSpeed: "3", doWardenSpawning: "true", enderPearlsVanishOnDeath: "true", freezeDamage: "true", doMobLoot: "true", commandModificationBlockLimit: "32768", waterSourceConversion: "true", logAdminCommands: "true", disableElytraMovementCheck: "false" }