The number of advancements said to be revoked from the player are incorrect
The bug
The number of advancements said to be revoked from the player are incorrect.
How to reproduce
- Type /advancement revoke @s everything
- Type it again
→ Notice that both times, it says the same amount of advancements were revoked, while they should already be revoked, so you can't re-revoke them
- Unresolved
CreeperMagnet_ - 10
- 5
- Confirmed
Low
- Platform
- Advancements Commands
- /advancement
17w49b - 1.21.4
17w49b 17w50a 18w01a 18w02a 18w03b 18w05a 18w06a 18w07b 18w08b 18w09a 18w10a 18w10c 18w10d 18w11a 18w14a 18w14b 18w16a 18w20a 18w21a 18w22c 1.13-pre1 1.13-pre2 1.13-pre3 1.13-pre4 1.13-pre5 1.13-pre6 1.13-pre7 1.13-pre8 1.13-pre10 1.13 18w30b 18w31a 18w32a 1.13.1-pre1 1.13.1-pre2 1.13.1 1.13.2 18w43b 18w43c 18w44a 18w45a 18w47a 18w47b 18w48a 18w48b 18w49a 18w50a 19w02a 19w03a 19w03b 19w04b 19w05a 1.14.4 19w36a 1.15.2 20w08a 20w14a 1.16.1 1.16.4 20w48a 20w51a 21w03a 21w05b 21w06a 1.17 1.17.1 1.18.1 1.18.2 1.19 22w24a 1.19.2 1.19.3 1.19.4 23w14a 1.20-pre1 1.20.1 23w31a 23w32a 1.20.4 24w06a 1.21.4
Created Issue:
The number of advancements said to be revoked from the player are incorrect.
To reproduce:
1. Type /advancement revoke @s everything
2. Type it again.You should see that both times, it says the same amount of advancements were revoked, while they should already be revoked, so you can't re-revoke them.
To reproduce:
1. Type /advancement revoke @s everything
2. Type it again.You should see that both times, it says the same amount of advancements were revoked, while they should already be revoked, so you can't re-revoke them.
The bug
The number of advancements said to be revoked from the player are incorrect.
How to reproduce
- Type /advancement revoke @s everything
- Type it again
→ Notice that both times, it says the same amount of advancements were revoked, while they should already be revoked, so you can't re-revoke them
The number of advancements said to be revoked from the player are incorrect.
relates to
Probably relates to MC-123068 in some way. I think that bug is caused by the same issue.
The bug
The command
execute store (result|success) score <target> <objective> run advancement (grant|revoke) <target> only <advancement>
does not update <objective> for the objective target when the advancement command fails.
This bug might be related to MC-123068.
Setup
Run these commands:
scoreboard objectives add test dummy scoreboard players set @s test 100 advancement revoke @s only minecraft:recipes/decorations/chest advancement grant @s only minecraft:recipes/decorations/torch scoreboard objectives setdisplay sidebar test
Reproduction
Run the commands
execute store success score @s test run advancement revoke @s only minecraft:recipes/decorations/chest execute store success score @s test run advancement grant @s only minecraft:recipes/decorations/torch
Your score for the test objective is expected to update to 0 after each command, because the commands fail, however your score remains 100 in both cases.
Note that you can use either "execute store success" or "execute store result" in the two commands above and the effect is the same: you would expect the score to be set to 0, but it remains unchanged.
Why care?
This is the only way I could figure how to detect whether a player has received an advancement. If there is a better way, someone please let me know. If there isn't, an updated command like
advancement query <selector> <advancement>
would be very useful.

Can someone test this with both worlds from before 18w08b, and worlds before? I seem to be getting mixed results with data packs enabled and data packs disabled. It's quite odd and can't seem to get any conclusive result.
Anyone? Still getting mixed results and have no idea why, it might be my machine or world seed or something
Can confirm in 20w48a.
Can confirm in 20w51a.
Can confirm in 21w03a. You have to wait a second before running the command again or else it will output the correct command feedback.
Can confirm in 21w05b.
Can confirm in 21w06a.
Affects 1.17
Can confirm in 1.17.1. Video attached.
Can confirm in 1.18.2.
Can confirm in 1.19 and 22w24a.
Can confirm in 1.19.2.