Cant get night vision procedure to function

Started by MrSandMan7 on

Topic category: Help with modding (Java Edition)

Last seen on 21:06, 22. Sep 2024
Joined Jul 2024
Points:

User statistics:

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

 

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

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

Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

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

Last seen on 21:06, 22. Sep 2024
Joined Jul 2024
Points:

User statistics:

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

Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

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