Keeping track of a mob

Discussion in 'Plugin Development' started by Fl1pzta, Jul 21, 2013.

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

    Fl1pzta

    How would I go about creating a new Spider and finding out when that specific spider died.
     
  2. Offline

    Chinwe

    I think you would need to keep track of its UUID, which I believe do persist through server restarts.
     
  3. Offline

    blablubbabc

    Creating a spider:
    location.getWorld().spawnEntity(location, EntityType.SPIDER);

    Detecting the spiders death -> EntityDeathEvent
    Detecting the spiders removal due to chunk unloading -> ChunkUnloadEvent and then check each entity in that chunk if the spider is in there.
     
    etaxi341 likes this.
Thread Status:
Not open for further replies.

Share This Page