Custom book, will not compile with custom book page GUI

Started by Big_Boye_Ben on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 23:48, 26. Nov 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom book, will not compile with custom book page GUI
Executing Gradle task: build
Build info: MCreator 2022.1.12711 EAP (12711), forge-1.18.2, 64-bit, 16332 MB, Windows 10, JVM 17.0.1, JAVA_HOME: C:\Users\uttpm\Documents\MCreatorEAP20221b12711\jdk, started on: 2022-04-03-18:41:35
 
> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.
 
> Task :compileJava FAILED
C:\Users\uttpm\MCreatorWorkspaces\advanced_explosives_rewritten\src\main\java\net\thebiggestaround\aerewritten\item\inventory\AdvancedExplosivesRRecipeBookInventoryCapability.java:31: error: incomparable types: Item and RegistryObject  if (event.getEntityItem().getItem().getItem() == AeRewrittenModItems.ADVANCED_EXPLOSIVES_R_RECIPE_BOOK) {
       ^
C:\Users\uttpm\MCreatorWorkspaces\advanced_explosives_rewritten\src\main\java\net\thebiggestaround\aerewritten\item\inventory\AdvancedExplosivesRRecipeBookInventoryCapability.java:64: error: incomparable types: Item and RegistryObject   return stack.getItem() != AeRewrittenModItems.ADVANCED_EXPLOSIVES_R_RECIPE_BOOK;
     ^
2 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
BUILD FAILED in 1s
1 actionable task: 1 executed
 
BUILD FAILED
Task completed in 4 seconds

Perhaps the lack of slots in the GUI is causing problems? No matter if I set "Size of inventory (slot count):" to zero or any other number it does this.

Last seen on 08:11, 13. Apr 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem
Mon, 04/04/2022 - 18:47

I have the same problem

Last seen on 18:35, 17. May 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is a known bug in 2021…
Thu, 04/07/2022 - 16:31

This is a known bug in 2021.3 where if you assign GUIs to items it will not compile, this has been fixed in the 2nd MCreator 2022.1 snapshot that should come out sooner or later I'm not sure