Registering a mob spawner

Discussion in 'Plugin Development' started by Profan, Jun 6, 2014.

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

    Profan

    Im trying to make a plugin that when i say like /spawner thisawesomeskeleton looking to a spawner it will spawn a custom skeleton with custom name etc, and when i type like /spawner skeleton it will spawn a normal skeleton and only the spawners i do /spawner thisawesomeskeleton will spawn a custom skeleton, so anyone know how i make this?
     
  2. Offline

    L33m4n123

    My idea would be to store the spawner you look at in a Map<Spawner, type>. And then check in the CreatureSpawnEvent if the reason is spawner and then spawn your custom entity
     
  3. Offline

    Profan

    yeah, i dont know how to make the Map, but the creaturespawnevent yes..
     
  4. Offline

    L33m4n123

Thread Status:
Not open for further replies.

Share This Page