How do I properly create an achievement after using a potion?

Started by MrPigDev on

Topic category: Help with modding (Java Edition)

Last seen on 07:06, 28. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I properly create an achievement after using a potion?

Hello! I have a little problem, I'm trying to make an achievement that should be issued after the player has drunk the potion, but I don't understand how. Please explain!

Last seen on 21:06, 28. May 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Easy! First, make a potion…
Sat, 05/27/2023 - 18:00

Easy! First, make a potion effect, not a potion item. Then, in the "triggers" tab, make a new procedure for "when effect started/applied."

Then, in the procedure you just made, add this code (replace "Test Advancement" with your advancement):

Lastly, add the potion effect into a potion item element.

I hope this helps!

 

 

Last seen on 07:06, 28. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank!
Sun, 05/28/2023 - 06:28

Thank!