Skip to content

Spawn reason for fish spawn from bucket is default #12225

@orang3i

Description

@orang3i

Expected behavior

The spawn reason for fish spawn from bucket should be "SPAWNER_EGG"

Image

This screen shot is from 1.16

Observed/Actual behavior

The spawn reason for fish spawn from bucket is "DEFAULT"

Image

This screen shot is from 1.21

Steps/models to reproduce

Listen for CreatureSpawningEvent and check spawn reason for fish in 1.16 and 1.21

@EventHandler
public void onFishSpawn(CreatureSpawnEvent event) {
    if (event.getEntity() instanceof org.bukkit.entity.Fish) {
        getLogger().info("A fish was spawned with reason: " + event.getSpawnReason() + " at " + event.getLocation());
    }
}

Plugin and Datapack List

Im only running my plugin to test spawn reason.

Paper version

This server is running Paper version 1.21.4-188-main@8de7e35 (2025-03-03T16:59:40Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.4Game version 1.21.4

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions