MCreator double condition error

Started by thewolfmods on Wed, 07/01/2015 - 22:34
Last seen on 02:54, 9. Apr 2016
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
MCreator double condition error
Wed, 07/01/2015 - 22:34

I need help because when ever I try to use a double variable ( it was if player is holding iron ingot and power is greator than requirement ) I keep getting this on my console

>C:\Pylo\MCreator156\forge\build\sources\java\mod\mcreator\mcreator_forge.java:196: error: cannot find symbol
>if(mcreator_VarListTestEnvironmentMod.Power>mcreator_VarListTestEnvironmentMod.smeltpower && hasPlayerInInventory[Items.iron_ingot]){
>                                                                                             ^
>  symbol:   variable hasPlayerInInventory
>  location: class BlockForge
>C:\Pylo\MCreator156\forge\build\sources\java\mod\mcreator\mcreator_forge.java:196: error: incompatible types
>if(mcreator_VarListTestEnvironmentMod.Power>mcreator_VarListTestEnvironmentMod.smeltpower && hasPlayerInInventory[Items.iron_ingot]){
>                                                                                                                       ^
>  required: int
>  found:    Item
>C:\Pylo\MCreator156\forge\build\sources\java\mod\mcreator\mcreator_forge.java:200: error: cannot find symbol
>if(mcreator_VarListTestEnvironmentMod.Power>mcreator_VarListTestEnvironmentMod.smeltpower && hasPlayerInInventory[Items.iron_ingot]){
>                                                                                             ^
>  symbol:   variable hasPlayerInInventory
>  location: class BlockForge
>C:\Pylo\MCreator156\forge\build\sources\java\mod\mcreator\mcreator_forge.java:200: error: incompatible types
>if(mcreator_VarListTestEnvironmentMod.Power>mcreator_VarListTestEnvironmentMod.smeltpower && hasPlayerInInventory[Items.iron_ingot]){
>                                                                                                                       ^
>  required: int
>  found:    Item
>4 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.
>BUILD FAILED
>Total time: 16.854 secs
>C:\Pylo\MCreator156\forge>
>Task completed with return code 0 in 17505 milliseconds
please help...i tried alot but it won't work for me :'(

Last seen on 02:54, 9. Apr 2016
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
you know what.... i might
Wed, 07/01/2015 - 22:53

you know what.... i might just try to use more than one event...