Topic category: Help with MCreator software
(My English is hopeless)
Hi, in 2020.4 snapshot, I created GUI with label with NBT tag ("<BNBT:tagName:storedEnergy>") and when MCreator compiles mod, an compilation error appears. If I delete this label, error vanishes. What is wrong?
This is console tab:
Executing Gradle task: build
Build info: MCreator 2020.4.25621 EAP (25621), forge-1.15.2, 64-bit, 3981 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Users\K***l\Desktop\MCreatorEAP20204b25621\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava FAILED
C:\Users\K***l\MCreatorWorkspaces\integration\src\main\java\net\mcreator\integration\gui\FurnaceGeneratorGuiGui.java:324: error: ')' expected this.font.drawString(""+BNBT:tagName:storedEnergy+"",
^
C:\Users\K***l\MCreatorWorkspaces\integration\src\main\java\net\mcreator\integration\gui\FurnaceGeneratorGuiGui.java:324: error: not a statement this.font.drawString(""+BNBT:tagName:storedEnergy+"",
^
C:\Users\K***l\MCreatorWorkspaces\integration\src\main\java\net\mcreator\integration\gui\FurnaceGeneratorGuiGui.java:324: error: ';' expected this.font.drawString(""+BNBT:tagName:storedEnergy+"",
^
3 errors
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 37s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 51850 milliseconds
You did something wrong. It's not <BNBT:tagName:storedEnergy> but either <BNBT:number:storedEnergy> or <BNBT:integer:storedEnergy> because the template for this is <BNBT:number/integer:tagName> so u just need to replace "tagName" with the name of your tag
Oh really thank you.
Yeah, now it's work!