Mcreator 1.5.7 [1.8]: Cannot Add 1 to Variable when placing block

2 posts / 0 new
Last post
Offline
Last seen: 9 months 2 weeks ago
Joined: 07/14/2015 - 09:53
Gems: 0
Mcreator 1.5.7 [1.8]: Cannot Add 1 to Variable when placing block

I tried to add an event for when I place a block that I add one to a variable, but everytime I get an error when recompiling. 

This is how I set it up.

Add event -> On block placed -> Variable set -> VAR:TeleportBlockNumber (name of my variable) -> Set to VAR:TeleportBlockNumber + 1

Error:

:sourceMainJava
C:\Users\Austin\Desktop\Other MC Stuff\forge\build\sources\java\mod\mcreator\mcreator_teleporterBlock.java:169: error: not a statement
mcreator_VarListTestEnvironmentMod.TeleportBlockNumber + 1;
                                                       ^
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> CompilationTotal time: 5.695 secs
 failed; see the compiler error output for details.
BUILD FAILED
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Users\Austin\Desktop\Other MC Stuff\forge>
Task completed with return code 0 in 6181 milliseconds

I don't know why I cant add 1 to the variable. Help?



Offline
Last seen: 9 months 2 weeks ago
Joined: 07/14/2015 - 09:53
Gems: 0
The little arrow is usually

The little arrow is usually underneath the dot(.). Looks like this:

 mcreator_VarListTestEnvironmentMod.TeleportBlockNumber                                                                        ^