How do i make a weapon usable after getting an achievement

Started by Its Minticle on

Topic category: Help with modding (Java Edition)

Last seen on 01:13, 16. Feb 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a weapon usable after getting an achievement

i've been trying to make a greatsword weapon that gives you slowness, weakness and mining fatigue when you hold it if you haven't unlocked an achievement but after you unlock the achievement the potion effects stay there on a 0seconds remaining timer. i did it by making when item in hand tick procedure, anyone know how to fix this or any other way to make it happen?