Posted March 12, 20196 yr I would like to create a mod that can write player coordinates into a file. This mod should perform regular checks (i.e. every 0.25 seconds or so) updating each time the player position information as well. I know how to manipulate files in java, but im a complete beginner in minecraft modding so any help is appreciated.
March 12, 20196 yr Author 1 hour ago, diesieben07 said: Subscribe to ClientTickEvent. Make sure to check TickEvent#type, the event fires twice per tick. Then check the player's position (Minecraft#player.pos[XYZ]) and do whatever you want with it. Note that Minecraft#player will be null if you are not in a game. Thank you! I'll try and see what i can do.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.