Jump to content

[1.7.2]How do I check when an entity moves?


The_Fireplace

Recommended Posts

One way to do it is just to handle a tick event, probably world tick event.  You can check every tick, but could also just check once a second or whatever you think is responsive enough for your need.  You can then look at all existing EntityCow and save their positions in a array, map or list and then compare them with previous value, then flag as changed.

 

Do you understand what I mean?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

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.