Crash related to right-click on block event (RE-POSTED HERE)

Started by Sweddy on Sun, 04/24/2016 - 14:35

Topic category: Bugs and solutions

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
User points:


  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Crash related to right-click on block event (RE-POSTED HERE)
Sun, 04/24/2016 - 14:35

This happened when I tried to recompile. Details on what item I tried to create below.

D:\Agnetha\Desktop\MCreator 1.6.6 [1.8.9] (THE NEW ONE)\forge\build\sources\main\java\mod\mcreator\ error: method onItemUse in class Item cannot be applied to given types;
super.onItemUse(itemstack, entity, world, i, j, k, l, a, b, c);float var4 = 1.0F;
  required: ItemStack,EntityPlayer,World,BlockPos,EnumFacing,float,float,float
  found: ItemStack,EntityPlayer,World,int,int,int,int,float,float,float
  reason: actual and formal argument lists differ in length
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output * Try:
for details.
Total time: 5.423 secs
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
D:\Agnetha\Desktop\MCreator 1.6.6 [1.8.9] (THE NEW ONE)\forge>
Task completed with return code 0 in 5873 milliseconds


I added a single tool mod element. I had no added elements perviously.

I added these events to the "When right-clicked on block (hand loc.)":

A stack event that required the following condition:  blockAt[i, j, k] == Blocks.iron_ore

And the events in that stack of events included:  Remove Block (i, j, k)   |   Add Block (i, j, k) [Stone]   |   Damage Item (by 1)   |   Add item to inventory [Iron Ingot, 1]


Help plz