Mojira Archive
MC-130320

When two linked advancements are revoked in the same tick that they were granted, an error message occurs

To reproduce:

  1. Download the attached data pack, and put into any world.
  2. Open up the game, with the console open.
    -> See that every tick, a message appears with
    Told to remove advancement advancement_bug:tick but I don't know what that is

    along with

    Loaded X advancements

This caused by the fact that the data pack does these actions, in order:

  • Grant you advancement2 if your effects have changed
  • Grant you advancement1 every tick
  • Run a function if advancement1 is true, in which is:
  • Give yourself regeneration
  • Revoke advancement1 and advancement2

Because your effects are changed by the regeneration, the error occurs.
I'm not entirely sure what causes this.