Cannot create Sword tool

Started by Skyjike on Thu, 08/27/2015 - 17:07
Last seen on 13:57, 5. Jun 2016
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Cannot create Sword tool
Thu, 08/27/2015 - 17:11 (edited)

Hello

I like to use MCreator since it is a very easy way to create mods, but often i get an error while making a build or starting the test environment.

I tried again today but I got this:

 

:clean
:downloadClient SKIPPED
:downloadServer SKIPPED
:getVersionJson
:extractUserDev UP-TO-DATE
:mergeJars SKIPPED
:applyBinPatches SKIPPED
:downloadMcpTools SKIPPED
:extractMcpData UP-TO-DATE
:genSrgs SKIPPED
:deobfBinJar SKIPPED
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Pylo\MCreator158\forge\build\sources\java\mod\mcreator\mcreator_thunderSword.java:122: 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 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: 51.613 secs
C:\Pylo\MCreator158\forge>
Task completed with return code 0 in 53161 milliseconds

I know there is something wrong with "Right click on block --> Event" thing, and i think this is the problem:

C:\Pylo\MCreator158\forge\build\sources\java\mod\mcreator\mcreator_thunderSword.java:122: 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

 

 

Edited by Skyjike on Thu, 08/27/2015 - 17:11