Monster Move event.

Discussion in 'Plugin Development' started by guitargun, Aug 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    guitargun

    I am making sort of monster arena plugin where you can battle monster on almost every place. but there is a problem.

    my plugin will mostly deal with zombies, skeletons, blazes, ghast and in rare cases even giants. now the problem is that after an amount of time the monster need to be deleted. this is the easy part you just store them somewhere and call it on deletion. but I also need to restrict those monsters from leaving the arena. since the barrier blocks are still waiting in 1.8 I need a event upon monster movement.

    I red some threads and it says that this sort of events can make the server very laggy because of the many entities, does that also happen when you filter for the right monster right away?
     
  2. Offline

    Jalau

    guitargun
    Yes it will lag even if you filter the event right away, if yiu already store your monsters somewhere simply iterate through them every seond or 10 ticks or 5 ticks, and teleport them somewhere if they moved out of the arena
     
Thread Status:
Not open for further replies.

Share This Page