Jump to content

Recommended Posts

Posted (edited)

I'm looking for an Event that fires whenever an Entity spawns newly in the world, meaning not when the players enters its loading distance or the world is loaded, only when it spawns fresh.

 

Does such an Event exist?

 

Edited by Tschipp
Posted

LivingSpawnEvent.SpecialSpawn is fired just before an entity is spawned by WorldEntitySpawner (passive spawns) or MobSpawnerBaseLogic (monster spawners).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
On 27.4.2017 at 6:27 PM, Choonster said:

LivingSpawnEvent.SpecialSpawn is fired just before an entity is spawned by WorldEntitySpawner (passive spawns) or MobSpawnerBaseLogic (monster spawners).

I see, but does that mean that hostile mob spawns are not included?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.