Night Vision effect flashing when on tick!

Started by DaRealAzPlayz on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Night Vision effect flashing when on tick!
Tue, 05/30/2023 - 14:04 (edited)

So I am working on a super pickaxe and when you are holding (on hand tick) it, it gives you cool effects including night vision. But the thing is that when i test it, I get a flashing effect between night vision and clear effect. Is there anyway to fix this? 

Here's an image of my code block:

https://ibb.co/PxshYr1

Edited by DaRealAzPlayz on Tue, 05/30/2023 - 14:04
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem is, that you set…
Tue, 05/30/2023 - 14:02

The problem is, that you set the duration for the night vision effect too low. Lower than 15 seconds (I think?) will just flash

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there anyway I could like…
Tue, 05/30/2023 - 14:07

Is there anyway I could like improve my code?

I am new to mod developing.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx that fixed it
Tue, 05/30/2023 - 14:12

thx that fixed it