Build failed. (Closed)

Started by tommo1993 on Sat, 12/12/2015 - 12:52
Last seen on 12:25, 25. Mar 2018
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Build failed. (Closed)
Sun, 12/13/2015 - 12:40 (edited)

It's fixed! It works now!

 

I'm new at MCreator and it's my first mod. I created the same mod today but problem was with almost everything and I deleted it. Now I have one problem with new mod

I don't what is wrong but heres a gradle log problem:

 

1 C:\Pylo\MCreator160\forge\build\sources\java\mod\mcreator\mcreator_berrybush.java:171: error: cannot find symbol
2 if (Block.getIdFromBlock(l) > 0 && l.canProvidePower() && world.isBlockIndirectlyGettingPowered(i, j, k)){
3                          ^
4   symbol:   variable l
5   location: class BlockBerrybush
6 C:\Pylo\MCreator160\forge\build\sources\java\mod\mcreator\mcreator_berrybush.java:171: error: cannot find symbol
7 if (Block.getIdFromBlock(l) > 0 && l.canProvidePower() && world.isBlockIndirectlyGettingPowered(i, j, k)){
8                                    ^
9   symbol:   variable l
10   location: class BlockBerrybush
11 C:\Pylo\MCreator160\forge\build\sources\java\mod\mcreator\mcreator_berrybush.java:171: error: method isBlockIndirectlyGettingPowered in class World cannot be applied to given types;
12 if (Block.getIdFromBlock(l) > 0 && l.canProvidePower() && world.isBlockIndirectlyGettingPowered(i, j, k)){
13                                                               ^
14   required: BlockPos
15   found: int,int,int
16   reason: actual and formal argument lists differ in length
17 3 errors
18 
19 FAILURE: Build failed with an exception.
20 
21 * What went wrong:
22 Execution failed for task ':compileJava'.
23 > Compilation failed; see the compiler error output for details.
24
25 * Try:
26 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
27

 

It's problem about berry bush block.

And some more info:

 

BUILD FAILED
Total time: 18.232 secs
C:\Pylo\MCreator160\forge>
Task completed with return code 0 in 19099 milliseconds

                                                       

 

 

 

Edited by tommo1993 on Sun, 12/13/2015 - 12:40
Last seen on 16:41, 16. Dec 2015
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I am also new but there is
Sat, 12/12/2015 - 16:14

I am also new but there is some mistake with your block berrybush
(Use the version 1.5.9 it's fewer errors)