Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-363

Add setEntity(Entity entity) to CreatureSpawner

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • N/A

    • N/A

      Currently there is no way to set the entity of which a spawner will spawn. Right now there is only a .setEntityType() method which is fine in most cases, but when you want to add effects / armor to mobs when they spawn, it is not really helpful.

      If this can't be done, another solution would be a .getSpawner() method in the CreatureSpawnEvent, and then the developer could add a meta tag to the spawner containing what type of armor the mob should have etc.

            Unassigned Unassigned
            TimLampen Timothy Lampen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: