Why does this small procedure crash the game as soon as it is triggered?

Started by mrgwbland on

Topic category: Help with MCreator software

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why does this small procedure crash the game as soon as it is triggered?
Sun, 11/15/2020 - 21:26 (edited)

https://imgur.com/a/1lR5hsU

I attach this to a block and whenever a certain slot is changed this gets triggered, but it crashes it. How do I fix this? (This is for demonstrative purposes, I narrowed this part down from my main procedure as the part that causes the crash.

Edited by mrgwbland on Sun, 11/15/2020 - 21:26
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It will be easier to find…
Sun, 11/15/2020 - 21:34

It will be easier to find out what the problem is if you include the whole procedure, however the problem could be that there is no slot 2 in the GUI that you are using. If that's not the problem then it will be something that is not shown in your imgur post i.e the rest of the procedure block.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No you misinterpreted what I…
Sun, 11/15/2020 - 21:36

No you misinterpreted what I meant, just this piece alone will crash it, without any other code. But also the gui has 4 slots so there is a slot 2.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually I think I have…
Sun, 11/15/2020 - 21:41

actually I think I have figured out that because 2 is an input slot I can't use it as output as well. Am I correct here? and is there a way around this?

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you read what I put?
Mon, 11/16/2020 - 16:35

Did you read what I put?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you read what we put?
Wed, 11/18/2020 - 13:47

Did you read what we put?