Posted July 8, 201411 yr I am making a class implementing IExtendedEntityProperties for Cows, and want to know how to check when a cow moves on the x or z axis(I am going to make a step counter for them). If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
July 8, 201411 yr 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/
July 8, 201411 yr Author Yeah, I think so. If I helped please press the Thank You button. Check out my mods at http://www.curse.com/users/The_Fireplace/projects
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.