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

Started by ohyeahbaby12 on Thu, 07/16/2015 - 23:54
Last seen on 07:34, 3. Apr 2016
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mcreator 1.5.7 [1.8]: Cannot Add 1 to Variable when placing block
Thu, 07/16/2015 - 23:54

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?

Last seen on 07:34, 3. Apr 2016
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
The little arrow is usually
Thu, 07/16/2015 - 23:57

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

 mcreator_VarListTestEnvironmentMod.TeleportBlockNumber                                                                        ^