How to get result potion from Brew Event?

Discussion in 'Plugin Development' started by alant7_, Feb 6, 2021.

  1. Offline

    alant7_

    Hello, I am currently making my own event for when player brews potion. I have finished the most of it, but I am stuck at getting result in BrewEvent.

    I have tried event.getContents().getItem(...slot...) but that returns the old potion (the one before brewing, water for example)

    How can I get result (new potions that are made using specific ingredients) potions from Brew Event?
     
  2. Offline

    Kars

    Save the inventory somewhere and schedule a task in the future for when the brewing is complete.
     

Share This Page