CraftTweaker

CraftTweaker

151M Downloads

Event for when an entity spawns

Darkhax opened this issue ยท 0 comments

commented

Feature request name
Event for when an entity spawns.

Feature request description
I would like an event to be fired when the LivingSpawnEvent.SpecialSpawn event is fired by Forge. This event is fired when a mob is spawned into the game for the first time. It only applies to natural spawns, and not spawn eggs.

Feature request reason
This would allow scripts to apply special initializers to entities when they spawn. This would let me do things like give mobs a random chance to spawn with different attributes, special names, and even give them different equipment. (Provided those are things you can do already with an IEntity, I hope it is lol)

Feature request dependencies
This feature should not have any dependencies, just the forge event. If you can't set equipment using a script, that's also something I need for the specific script I want to write.