-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aquatic creatures spawned using buckets do not have the persistent tag #10625
Comments
Are you sure the entities are actually despawning? Setting that tag isn't the only thing the game uses to know if the entity can be despawned. |
They definitely disappeared from my aquarium I built, but it's possible they simply died. I'm not sure what specifically you mean by "Setting that tag isn't the only thing the game uses to know if the entity can be despawned." Are you saying the presence of the From the wiki:
|
Yes, the from bucket check should be enough to prevent despawning. |
Any suggestions on how to track whether they're despawning vs dying? Only thing I can think of is that EssX tracks named deaths, but that would require naming them thus messing up the despawning test |
I performed a test where I put two fish in the same block of water, one from a bucket and one from /summon, and moved to a point where they were in the soft despawn range. The summoned fish repeatedly despawned, while the fish from the bucket stayed, meaning that everything seems to be in working order |
Expected behavior
According to the wiki, creatures spawned using a Bucket of should be marked as persistent and not despawn. Note this seems to be a bug within vanilla Minecraft itself. I have also reported this to Mojang here.
Observed/Actual behavior
Placing creatures via Bucket of <creature> doesn't properly give them the persistent tag, leading to them quickly despawning.
The fish didn't spawn with the persistent tag regardless of survival or creative, or whether placing the animal into water that was already there. It doesn't matter whether the item was obtained from the creative inventory, or was an empty bucket that later picked up a fish. It affects buckets of cod, salmon, tropical fish, pufferfish, axolotl, and tadpole.
Steps/models to reproduce
/data get entity @e[limit=1,sort=nearest,type=!player]
0b
instead of1b
as it should be. (The tag "FromBucket" is1b
, as intended.)Plugin and Datapack List
This reproduced on a fresh installation of paper with no plugins or additional datapacks.
/datapack list
returns only[vanilla (built-in)], [file/bukkit (world)]
.Paper version
This server is running Paper version git-Paper-496 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 7ac24a1 on ver/1.20.4)
You are running the latest version
Other
Within the blurb returned by the
/data get entity
command, amongst it wasPaper.SpawnReason: "SPAWNER_EGG"
. I don't know if this should be "spawned with a bucket" instead, or if it's at all relevant to this issue.The text was updated successfully, but these errors were encountered: