Custom Crafting GUI is being weird! (Solved?)

Started by Benoniusthecat on

Topic category: Help with MCreator software

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Crafting GUI is being weird! (Solved?)
Sun, 02/23/2020 - 16:38 (edited)

I'm creating a crafting block and the GUI is causing errors:


C:\Users\Benonius\MCreatorWorkspaces\a_craftin_time\build\sources\main\java\net\mcreator\a_craftin_time\MCreatorDeathGUI.java:261: error: unclosed string literal
                this.fontRenderer.drawString("-+"",
                                                 ^
C:\Users\Benonius\MCreatorWorkspaces\a_craftin_time\build\sources\main\java\net\mcreator\a_craftin_time\MCreatorDeathGUI.java:262: error: not a statement
                    89, 29, -16777216);
                    ^
C:\Users\Benonius\MCreatorWorkspaces\a_craftin_time\build\sources\main\java\net\mcreator\a_craftin_time\MCreatorDeathGUI.java:262: error: ';' expected
                    89, 29, -16777216);
                      ^
3 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s

 

 

I can't figure out the problem, I used this video as a guide and have done everything from changing procedures, amount of slots in the block's inventory, etc. I have checked about 10 times to see if I left something out of the procedure and everything was in the right spot. Please help if you think you know the problem! I don't want to have to delete any mod elements! (Also, the only item that is 'Problematic' is the GUI itself)

Edited by Benoniusthecat on Sun, 02/23/2020 - 16:38
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
from the errors this kind of…
Sat, 02/22/2020 - 20:11

from the errors this kind of looks like the code has syntax errors from for example missing lines, though i didn't create mcreator so i can't tell how much this is true

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I deleted the GUI and made a…
Sun, 02/23/2020 - 16:40

I deleted the GUI and made a new one, and now everything works just fine. I don't see any logic behind that, but hey, at least I can work on my mod now!