Bucket entities lose `CustomNameVisible` tag when picking up and replacing with bucket
Summoned bucket entities with the `CustomNameVisible` tag lose that tag when picked up with a bucket, then replaced in the world.
Steps to reproduce:
- Summon an Axolotl/Fish/Tadpole with `CustomNameVisible` tag set to `true`.

- Pickup entities with a water bucket.
- Place entities in the world from bucket.

Entities will have the `CustomNameVisible` tag removed.
Created Issue:
Bucket entities lose `CustomNameVisible` tag when picking up and replacing with bucket
Summoned a bucket entities with the `CustomNameVisible` tag lose that tag when picked up with a bucket, then replaced in the world.
Steps to reproduce:
- Summon an Axolotl/Fish/Tadpole with `CustomNameVisible` tag set to `true`.
- Pickup entities with a water bucket.
- Place entities in the world from bucket.
Entities will have the `CustomNameVisible` tag removed.
Summoned a bucket entities with the `CustomNameVisible` tag lose that tag when picked up with a bucket, then replaced in the world.
Steps to reproduce:
- Summon an Axolotl/Fish/Tadpole with `CustomNameVisible` tag set to `true`.
- Pickup entities with a water bucket.
- Place entities in the world from bucket.
Entities will have the `CustomNameVisible` tag removed.
Summoned a bucket entities with the `CustomNameVisible` tag lose that tag when picked up with a bucket, then replaced in the world.
Steps to reproduce:
- Summon an Axolotl/Fish/Tadpole with `CustomNameVisible` tag set to `true`.
- Pickup entities with a water bucket.
- Place entities in the world from bucket.
Entities will have the `CustomNameVisible` tag removed.
Summoned
abucket entities with the `CustomNameVisible` tag lose that tag when picked up with a bucket, then replaced in the world.
Steps to reproduce:
- Summon an Axolotl/Fish/Tadpole with `CustomNameVisible` tag set to `true`.
- Pickup entities with a water bucket.
- Place entities in the world from bucket.
Entities will have the `CustomNameVisible` tag removed.
Similar to MC-271252, bucket entities reset their attributes when picked up and replaced with a bucket.
How to reproduce
- Spawn a tadpole
/attribute @n[type=minecraft:tadpole] minecraft:scale base set 16
- Pick up the tadpole with a water bucket
- Place the tadpole back down
Expected result
The tadpole would retain the minecraft:scale attribute at 16.
Observed result
The tadpole's minecraft:scale attribute was reset to 1.
Similar to MC-271252, bucket entities lose their effects when picked up and replaced with a bucket.
How to reproduce
- Spawn an axolotl
- Throw an invisibility potion at the tadpole
- Pick up the axolotl with a water bucket
- Place the axolotl back down
Expected result
The axolotl would retain the invisibility effect.
Observed result
The axolotl lost the invisibility effect.
Similar to MC-271252, bucket entities lose all equipped items (held items and armor items) when picked up and replaced with a bucket.
How to reproduce
/summon tadpole ~ ~ ~ {ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",count:1,components:{"minecraft:enchantments":{levels:{"minecraft:thorns":255}}}}]}- In survival mode, attack the tadpole to confirm it has a helmet enchanted with Thorns
- Pick up the tadpole with a water bucket
- Place the tadpole back down
- Attack the tadpole again in survival mode
Expected result
The tadpole would continue wearing the helmet with the Thorns enchantment.
Observed result
The tadpole no longer wears the helmet enchanted with Thorns, so you won't take damage when attacking it.
How is this a feature request or suggestion? This is as much of an issue as any other data being lost when an entity is bucketed. MC-271252, MC-279904 and MC-279905 are all valid. It's not even a matter of it only being possibly seen through commands, as MC-271252's behavior is only seen with commands.

I wasn't able to reproduce this, can you please record a video showcasing the bug?
bucket_entity_custom_name_visible_flag_bug.mp4
As you can see, the entity's name is no longer permanently visible after picking up with a bucket and replacing.
Can confirm in that case.
Many NBT tags, such as effects, equipped items (added via commands), burning time (which might be intentional since water would realistically extinguish it), and attributes, are lost when fish, tadpoles, axolotls are picked up with a bucket. Should we create separate tickets for each of these NBT tags, or should this bug report be updated to indicate that it affects multiple NBT tags?
I'd suggest a different report, since the name itself is kept.
Bucketed entities use a different item component from spawn eggs, they allow only certain fields. There's a reason the bucketed entities don't use entity_data.
Thanks for your advice! I've created separate tickets for these: MC-279904, MC-279905, and
MC-279907.Could you please write about how to reproduce the bug?
Steps to reproduce are already provided, just not a typed out command (but it does tell you exactly what the command must contain). This report has already been confirmed and has priority assigned, steps to reproduce are not an issue here.