Skip to content

Querying Data

null-version-nova edited this page Nov 21, 2023 · 2 revisions

data is the one argument given to each event. It is a python dictionary describing the state of the player and of the game world.

x

This is the player's x coordinate as a float.

y

This is the player's y coordinate as a float.

z

This is the player's z coordinate as a float.

is_in_water

This is true if the player is submerged in water, false otherwise. Every change in this variable calls water_submersion.

biome

This is what biome the player is in as a data tag. Read a biome's page on https://minecraft.wiki to figure out what those are, or alternatively look at the F3 menu to figure out the tag of the biome you're in. The datatype is a string.

biome_warmth

This is the temperature value of the biome the player is in as a float. Read the minecraft wiki to learn more.

dimension

This is the dimension the player is in.

time

This is the time of day in ticks. Running /time query dayTime should tell you what the time currently is.

Clone this wiki locally