Event ''when block destroyed with tool'' dont work

Started by babichou2000 on Sat, 04/16/2016 - 13:02

Topic category: Bugs and solutions

Last seen on 17:20, 24. Jun 2016
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Event ''when block destroyed with tool'' dont work
Sat, 04/16/2016 - 13:02

The event make crash :

C:\Pylo\MCreator163\forge\build\sources\java\mod\mcreator\mcreator_rubyBigPick.java:119: error: no suitable method found for onBlockDestroyed(ItemStack,World,int,int,int,int,EntityLivingBase)
super.onBlockDestroyed(itemstack, world, i, j, k, l, entity);
     ^
    method ItemTool.onBlockDestroyed(ItemStack,World,Block,int,int,int,EntityLivingBase) is not applicable
      (actual argument int cannot be converted to Block by method invocation conversion)
    method Item.onBlockDestroyed(ItemStack,World,Block,int,int,int,EntityLivingBase) is not applicable
      (actual argument int cannot be converted to Block by method invocation conversion)
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.


 

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
You must change your "i"
Sat, 04/16/2016 - 15:25

You must change your "i" variable that is seemingly int to some ariable that is Block.

Last seen on 17:20, 24. Jun 2016
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Ty for help
Sun, 04/17/2016 - 14:17

Ty for help