Categories
Ask Games Video Games

how to store position of a player as a variable?(minecraft java)

I am working on a project in which i need position of a player at any tick. i used the command:

data get entity player_name Pos[0]

data get entity player_name Pos[1]

data get entity player_name Pos[2]

but i want them to be stored as variables. how can i do that. And also if possible tell me how to display variables in scoreboard

this is not the solution of my problem
Minecraft using player score as a variable

Leave a Reply

Your email address will not be published. Required fields are marked *