mojira.dev
MC-181604

Exiting the end portal resets player attributes to their default values

I had altered my own minecraft:generic.attack_damage base value to 5.0 before fighting the Ender Dragon. After defeating the dragon and returning through the portal to the overworld, I skipped the credits. Shortly thereafter I went to kill a chicken and discovered my unarmed damage was back to default. I confirmed with "/attribute @s minecraft:generic.attack_damage get" that it was back to 1.0. 

Additional testing shows it retains the value when I enter The End, but resets it when I travel back through the return portal a second time. Altered attributes also reset if you die and respawn, which makes sense, but it doesn't make sense to do it when returning from The End. I also tested it with a Respawn Anchor set in the Nether, and again attributes get reset when returning from The End. (At least it isn't using up a charge any more!)

Steps to Reproduce:
1. Use "/attribute" command for example like this: "/attribute @p minecraft:generic.max_health base set 40"
2. Return back from End after defeating Ender Dragon
3. All attributes reset back to original. Something interesting about it is that how many HP you had is still visually visible, but it is actually reset

Linked issues

Attachments

Comments

pine1needle

This relates to MC-6431.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 1.16.5 and 21w08b.

Avoma

Can confirm in 1.17.

Avoma

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

migrated

Tommy Wallberg

Confirmed

Platform

Normal

Commands, Player

20w18a, 20w48a, 20w51a, 21w03a, 1.16.5, ..., 1.19.4, 1.20.1, 23w31a, 23w33a, 1.20.2

24w20a

Retrieved