detect if effect ended with milk

Started by Aieauwastaken on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
detect if effect ended with milk

I'm trying to make an effect that harms the player when the effect ends with time, but doesn't affect them when they drink milk. Is there a way to do this?

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As far as i can see there is…
Thu, 08/07/2025 - 00:24

As far as i can see there is like 2 things wrong with what I did, The milk bucket gets ticked at 31 instead of 32 because if you set it to 32 it does not work, using an 'on player tick update' procedure I believe can lead to performance issues. Also replace weakness with whatever your effect is. I hope this can hold you over until you find better help or figure it out.