Hi! Why no EntityMoveEvent exists ? I was sure that there is a event like that.. How can i check the movement of an entity? Greet I need it to check if a drop is falling :/
It would be too resource-intensive to pass an event to plugins every single time any entity moved at all.
Uniclaw There is no entity move event, because that could possible cause alot of lag because of all the entities, but maybe you could check the entity's location at one point, and say maybe 5 seconds later check its location again, and if its changed do something. Also "Drop is falling"? You want to check if they are falling? or dropping an item?
I would check if a drop is moving, so that if he is moving through a sign with a specifig text on it he is teleported to another lcoation. I need it for a Grilled Pig Farm on my Server xD
xD for some reason i still don't understand the phrase "If a drop is moving", but so what you want to do is check if an entity tries to move through a sign with some specific text on it, and if it does, teleport it somewhere?
I think what you could do is on the entity death event, get the drops from the pig and save them to a hashmap. The listen for them if they come near to the chunk that the sign is in, and if they are there teleport them somewhere. Not sure if that is possible, but its worth a try.