(SOLVED) Delay in procedure causes minecraft to crash

Started by SomeoneElse4202 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) Delay in procedure causes minecraft to crash
Tue, 07/16/2024 - 00:48 (edited)

I'm currently trying to make "Shadow Pants" that make the player invisible when wearing in dark areas and at night. I'm currently experiencing an issue that if the player takes off the pants while invisible, they stay invisible. I'm trying make the procedure check if the player takes off the pants by checking if they still wear it after a delay. This crashes the game though, I know that this is the issue because I've tried removing it and it worked. I have a screenshot of the tick update code here. Any way I can improve the code so it doesn't crash?

 code

Edited by SomeoneElse4202 on Tue, 07/16/2024 - 00:48
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the procedure gets the item…
Sat, 07/13/2024 - 21:49

the procedure gets the item in armor slot 101 instead of 1, that alone is enough to crash the game, if it doesn't work even with armor slot 1 the problem could be with the thing that calls that procedure

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That cannot be the problem,…
Sun, 07/14/2024 - 13:54

That cannot be the problem, I have checked slot 101 for a different procedure that checks for pants in the leg slot and it worked. I'll still try setting it to 1 and I'll update if it worked

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It has actually worked,…
Sun, 07/14/2024 - 14:01

It has actually worked, thank you