MCreator double condition error

2 posts / 0 new
Last post
thewolfmods's picture
Offline
Last seen: 10 months 2 weeks ago
Joined: 10/27/2014 - 04:00
Gems: 0
MCreator double condition error

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 :'(



thewolfmods's picture
Offline
Last seen: 10 months 2 weeks ago
Joined: 10/27/2014 - 04:00
Gems: 0
you know what.... i might

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