How to check is a monster or animal was naturally spawned?

Discussion in 'Plugin Development' started by TomShar, Nov 10, 2012.

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

    TomShar

    How can I check to see if a mob was naturally spawned?
     
  2. Tip: Ask instead how you can acomplish your goal. Maybe there is a faster way to get what you want.
    So what is your end goal? :)
     
  3. Offline

    ZeusAllMighty11

    I'm not sure if you can check a creature's getSpawnReason() just from their class.

    I know you can store their UUID every time one is spawned, and get that spawn reason (onCreatureSpawnEvent), then you can compare UUIDS and if it's the correct one, and the spawn reason is CUSTOM then do stuff
     
Thread Status:
Not open for further replies.

Share This Page