Topic category: Troubleshooting, bugs, and solutions
I tried to create a block that takes any boolean properties of block in the back and store as an NBT to block in the front of it but it give me an error. i also have other blocks that stores number or text prop types and it's working without any error. why the boolean one is not working?
I use the latest snapshot (MCreator 2022.2 EAP 25609)
Build Error:
> Task :compileJava
E:\System Apps\MCreator Workspace\Puzzle_code_snapshot\src\main\java\net\mcreator\puzzle_code\procedures\PropertyToNBTLogicCodeBlockUpdateTickProcedure.java:102: error: variable _bp is already defined in method execute(LevelAccessor,double,double,double) }.getValue(world, new BlockPos(x, y, z), "getProperty"))) instanceof BooleanProperty _bp && errorFix.getValue(_bp)));
^
1 error
> Task :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 18s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 24 seconds
still exist in MCreator EAP (31711)