Jump to content

Recommended Posts

Posted

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.

Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.