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

Started by MrPigDev on

Topic category: Help with Minecraft modding (Java Edition)

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!

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!

 

 

Joined May 2023
Points:

User statistics:

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

Thank!