Cannot create Sword tool

1 post / 0 new
Offline
Last seen: 11 months 3 weeks ago
Joined: 09/01/2014 - 16:00
Gems: 0
Cannot create Sword tool

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:

 

Spoiler: Highlight to view
: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 08/27/2015 - 19:11