Mcreator won't build my procedure

Upvotes: 0
Issue description

 So Mcreator keeps throwing me the same error about one of my procedure elements. the thing is I have two other procedures that are nearly identical to the one with the error. They don't get any errors and this is really frustrating for me because I can't figure out what is wrong.

The console is pasted below and the workspace is linked in the files section.


Executing gradle command: build
Build info: MCreator 1.9.0, 64-bit, 8192 MB, Mac OS X - bash, JVM 1.8.0_212, JAVA_HOME: /Applications/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:132: error: local variables referenced from an inner class must be final or effectively final 
      
            }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                    ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:132: error: local variables referenced from an inner class must be final or effectively final 
      
            }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                                           ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:132: error: local variables referenced from an inner class must be final or effectively final 
      
            }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                                                                  ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:161: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:161: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                        ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:161: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                                               ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:197: error: local variables referenced from an inner class must be final or effectively final 
      
                     TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)),
                                                                                          ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:197: error: local variables referenced from an inner class must be final or effectively final 
      
                     TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)),
                                                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:198: error: local variables referenced from an inner class must be final or effectively final 
      
                           (int) (z + (stock_z))));
                                       ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:230: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) ((new Object() {
                                                             ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:230: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) ((new Object() {
                                                                                    ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:230: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) ((new Object() {
                                                                                                           ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:233: error: local variables referenced from an inner class must be final or effectively final 
      
                           TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)),
                                                                                                ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:233: error: local variables referenced from an inner class must be final or effectively final 
      
                           TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)),
                                                                                                                       ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:234: error: local variables referenced from an inner class must be final or effectively final 
      
                                 (int) (z + (stock_z))));
                                             ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:239: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getValue(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z)))))))).copy();
                                                         ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:239: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getValue(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z)))))))).copy();
                                                                                ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:239: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getValue(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z)))))))).copy();
                                                                                                       ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:251: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (27))));
                                                          ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:251: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (27))));
                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:251: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (27))));
                                                                                                        ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:286: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                             ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:286: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                                                    ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:286: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getItemStack(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28))).copy();
                                                                                                           ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:298: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (cash_x)), (int) (y + (cash_y)), (int) (z + (cash_z))), (int) ((new Object() {
                                                          ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:298: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (cash_x)), (int) (y + (cash_y)), (int) (z + (cash_z))), (int) ((new Object() {
                                                                                ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:298: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (cash_x)), (int) (y + (cash_y)), (int) (z + (cash_z))), (int) ((new Object() {
                                                                                                      ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:317: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28)))));
                                                          ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:317: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28)))));
                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:317: error: local variables referenced from an inner class must be final or effectively final 
      
                     }.getAmount(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))), (int) (28)))));
                                                                                                        ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:325: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:325: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                        ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:325: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                                               ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:349: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                 ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:349: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                        ^
/Users/test/MCreatorWorkspaces/market_craft/build/sources/main/java/net/mcreator/market_craft/MCreatorGUIStoreOn1BuyClicked.java:349: error: local variables referenced from an inner class must be final or effectively final 
      
            TileEntity tileEntity = world.getTileEntity(new BlockPos((int) (x + (stock_x)), (int) (y + (stock_y)), (int) (z + (stock_z))));
                                                                                                                               ^
36 errors
: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 28s
5 actionable tasks: 4 executed, 1 up-to-date
Task completed with return code 1 in 30323 milliseconds


 

Attachment Size
this is the workspace.606.28 KB 606.28 KB

Issue comments

I can confirm this bug. Get NBT tag block procedures do not work with coordinates with variables in them. This bug will be fixed in 1.9.1. Thank you for your bug report.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.