Night Vision effect flashing when on tick!

Started by DaRealAzPlayz on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined May 2023
Points:
247

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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
Active 1 month ago
Joined May 2023
Points:
229

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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

Active 2 years ago
Joined May 2023
Points:
247

User statistics:

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

let me try

Active 2 years ago
Joined May 2023
Points:
247

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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.

Active 2 years ago
Joined May 2023
Points:
247

User statistics:

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

thx that fixed it