1.17.x Discover recipe without alert?

Discussion in 'Spigot Plugin Development' started by DMan16, Jun 29, 2021.

Thread Status:
Not open for further replies.
  1. So I'm looking for a way to give a player a recipe without the alert showing up on the screen that they discovered a new recipe. I know about #discoverRecipe, just want to know if I can disable it displaying the alert or should I resort to packets?
     
  2. I think you will have to use NMS, but I don't know what packet you should use.
     
  3. Based on the code, Minecraft sends a packet telling the player the recipe is unlocked.
    This allows the player to see it in their recipe book.

    That said, I would assume that the client handles the toast message, and probably nothing you can do about it
     
Thread Status:
Not open for further replies.