How do i make a weapon usable after getting an achievement

Started by Its Minticle on Sat, 04/24/2021 - 08:33

Topic category: Help with modding (Java Edition)

Last seen on 12:55, 28. Apr 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make a weapon usable after getting an achievement
Sat, 04/24/2021 - 08:33

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?