{{exclusive|java}}
A '''data version''', also known as a '''world version''',[https://minecraft.net/download/server server.jar] or [https://libraries.minecraft.net/com/mojang/javabridge/1.0.22/javabridge-1.0.22-sources.jar javabridge library source], located in class com.mojang.bridge.game.GameVersionAs appeared in the [[#version.json|version.json format]]. is a positive integer used in a world saved data to denote a specific version, and determines whether the player should be warned about opening that world due to client version incompatibilities.
== Usage ==
[[File:Outdated singleplayer world.png|thumb|The game prompting the player whether they want to back up their outdated world.]]
Upon selecting and loading a [[singleplayer]] world, the game checks if the client has a data version newer or older than the selected world. If it does, the game then prompts the user whether they want to back up their world before playing it if the world is older, or warn them that their world may become corrupted if the world is newer.
== Versioning ==
Every version of ''Java Edition'' since [[15w32a]], including minor releases and snapshots, has its own data version. The version takes the form of an ever-increasing positive integer unlike client versions. Data versions are necessary because client versions usually cannot be directly compared since they use different [[Version formats|formats]] (i.e., "1.14" and "19w02a" cannot be compared). Data versions may skip numbers between any release.
== Storage locations ==
Data versions can be found in many different places.
=== Player data ===
In-game, the data version can be obtained using the command {{cmd|/data get entity @s DataVersion}}.
=== options.txt ===
The first line of [[options.txt]] since [[1.10-pre1]] displays the data version, named version
.
=== level.dat ===
The data version is stored in two places inside the [[Java Edition level format#level.dat format|level.dat]] file of a world save: in the root {{cd|Data}} compound named {{cd|DataVersion}} and also in the {{cd|Version}} compound named {{cd|Id}}.