This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
EntitySpawnEvent with optional source ItemStack #4795
Labels
help wanted
Community assistance requested, PRs welcome.
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
type: feature
Request for a new Feature.
Is your feature request related to a problem? Please describe.
I'd love to be able to modify the entity when it gets spawned from some ItemStack (spawn egg, boat, item frame, ...) and act on that.
Describe the solution you'd like
Ability to retrieve to retrieve source ItemStack which caused the Entity to spawn.
I think it'd make most sense to add it as nulllable value to existing EntitySpawnEvent, since other events like CreatureSpawnEvent and ProjectileLaunchEvent might potentially also use this.
Describe alternatives you've considered
Patching the server source code directly :/
The text was updated successfully, but these errors were encountered: