NBT tags in GUI are causing an compilation error

Started by kamik1979 on

Topic category: Help with MCreator software

Last seen on 20:23, 19. Nov 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT tags in GUI are causing an compilation error

(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
 

Last seen on 14:00, 14. Nov 2023
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You did something wrong. It…
Wed, 06/24/2020 - 13:57

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

Last seen on 20:23, 19. Nov 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh really thank you.
Wed, 06/24/2020 - 14:00

Oh really thank you.

Last seen on 20:23, 19. Nov 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, now it's work!
Wed, 06/24/2020 - 14:04

Yeah, now it's work!