How to check if advancement isn't recipe?

Discussion in 'Plugin Development' started by MrSolarius, Jun 25, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    MrSolarius

    Hey,
    I actually try to handle when a player makes an advancement. But I have seen the PlayerAdvancementDoneEvent handle as well when a player unlocks a recipe. So how to know if PlayerAdvancementDoneEvent is for a recipe or for an advancement?
     
  2. Offline

    Machine Maker

    The Advancement object has a getCriteria() method that returns all the criteria as strings. I don't know what the format of that is. Might have to experiment with it. Maybe read this.
     
Thread Status:
Not open for further replies.

Share This Page