get logic block property error

Started by cristalpower2 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 04:08, 24. Apr 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
get logic block property error
Mon, 07/18/2022 - 09:21 (edited)

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

Procedure

https://i.ibb.co/3T912fc/Captur-ecran-6.png

Edited by cristalpower2 on Mon, 07/18/2022 - 09:21
Last seen on 04:08, 24. Apr 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
still exist in MCreator EAP …
Tue, 07/26/2022 - 15:38

still exist in MCreator EAP (31711)