"Deal Damage To Item" Bugged! 1.7.6

Started by modder_of_creepers on Mon, 01/15/2018 - 17:28

Topic category: Bugs and solutions

Last seen on 00:12, 2. Nov 2019
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
"Deal Damage To Item" Bugged! 1.7.6
Mon, 01/15/2018 - 17:28

I am making a mod and I made a tool that had the type "special" and if you right clicked in the air it will take away durability. But it can't compile!

Here is the log

C:\Pylo\MCreator176\forge\build\sources\main\java\mod\mcreator\mcreator_redCrayon.java:67: error: cannot find symbol
                    itemstack.damageItem(1, entity);
                    ^
  symbol: variable itemstack
Note: C:\Pylo\MCreator176\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

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.