Skip to content

Implement CreatureSpawnEvent.SpawnReason.SPAWNER_BUCKET#8236

Closed
Doc94 wants to merge 1 commit into
PaperMC:masterfrom
Doc94:feature/issue8284/bucketspawnreason
Closed

Implement CreatureSpawnEvent.SpawnReason.SPAWNER_BUCKET#8236
Doc94 wants to merge 1 commit into
PaperMC:masterfrom
Doc94:feature/issue8284/bucketspawnreason

Conversation

@Doc94
Copy link
Copy Markdown
Member

@Doc94 Doc94 commented Aug 4, 2022

This close #8234 adding a new SpawnReason for entity spawned using a bucket.

The name of the reason is based in another things with "spawn" logic like SPAWNER_EGG

@Doc94 Doc94 requested a review from a team as a code owner August 4, 2022 02:19
@davidmayr
Copy link
Copy Markdown
Contributor

I think just BUCKET or ENTITY_BUCKET would be better than SPAWNER_BUCKET.

The only other two entries with "spawn" in their name are actually named like that in game. E.g. the Spawner Block or for example "Blaze Spawn Egg"

@Machine-Maker
Copy link
Copy Markdown
Member

Machine-Maker commented Aug 9, 2022

See #4361 (comment). In a similar situations, we don't change a Bee's SpawnReason when they leave a beehive, it keeps the previous one. A similar thing should be applied here. It can fallback to some other reason if it doesn't exist. (I think spawn egg is still fine for that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Missing CreatureSpawnEvent.SpawnReason when using a bucket with tropical fish or axolotl

4 participants