Cant get night vision procedure to function

Started by MrSandMan7 on

Topic category: Help with Minecraft modding (Java Edition)

Active 11 months ago
Joined Jul 2024
Points:
81

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Cant get night vision procedure to function

I’ve watched several tutorials but it has yet to work in game any help is appreciated 

What am I doing wrong?:           https://imgur.com/gallery/help-MvUNkT6

 

Active 2 months ago
Joined May 2024
Points:
130

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 67
Do you have a Global trigger…
Sat, 07/06/2024 - 14:45

Do you have a Global trigger for the procedure or another kind of trigger?

I would suggest going to the item element and adding this procedure in the when used trigger.

-PixelKid

Active 7 months ago
Joined Oct 2023
Points:
315

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 274
Set the number for ticks to…
Sun, 07/07/2024 - 20:57

Set the number for ticks to 5. Also, you can remove that if part that checks if the player is wearing the helmet because it seems to already be in the helmet tick procedure. Let me know if this doesn't fix it. 

Active 11 months ago
Joined Jul 2024
Points:
81

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
@AwsomeCoderDude Thanks this…
Mon, 07/08/2024 - 00:21

@AwsomeCoderDude

Thanks this got me closer, the night vision effect does appear now but only briefly every few seconds, I added a sound procedure to check and it look like the entire procedure just repeats itself indefinitely as the sound I added loops endlessly
 

Active 7 months ago
Joined Oct 2023
Points:
315

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 274
Yes, that's how that would…
Mon, 07/08/2024 - 06:57

Yes, that's how that would work. If it is only appearing for a few seconds, try setting it to like 60. What are you trying to do? Because the current code for the helmet will give you night vision for as long as you wear it.