Night Vision effect flashing when on tick!

Started by DaRealAzPlayz on

Topic category: Help with modding (Java Edition)

Last seen on 17:08, 17. Aug 2023
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
Last seen on 10:55, 15. Apr 2024
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

Last seen on 17:08, 17. Aug 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
let me try
Tue, 05/30/2023 - 14:05

let me try

Last seen on 17:08, 17. Aug 2023
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.

Last seen on 17:08, 17. Aug 2023
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