Block update tick

1 post / 0 new
Lenare's picture
Offline
Last seen: 1 year 4 months ago
Joined: 07/08/2015 - 04:01
Gems: 0
Block update tick

I tried to make the block update tick trigger an event but I got an error with the scheduleBlockUpdate method when compiling:

Spoiler: Highlight to view
===================================================================================================================================
Executing gradle command: clean build
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator157>cd forge
C:\Pylo\MCreator157\forge>SET "JAVA_HOME=C:\Pylo\MCreator157\jdk\"
C:\Pylo\MCreator157\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator157\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator157\forge>gradlew clean build
****************************
 Powered By MCP:             
 http://mcp.ocean-labs.de/   
 Searge, ProfMobius, Fesh0r, 
 R4wk, ZeuX, IngisKahn, bspkrs
 MCP Data version : snapshot_20141130
****************************
: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\MCreator157\forge\build\sources\java\mod\mcreator\mcreator_blockOfChocolateIceCream.java:180: error: cannot find symbol
world.scheduleBlockUpdate(i, j, k, this, this.tickRate(world));
     ^
  symbol:   method scheduleBlockUpdate(int,int,int,BlockBlockOfChocolateIceCream,int)
  location: variable world of type World
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: 39.039 secs
C:\Pylo\MCreator157\forge>
Task completed with return code 0 in 40376 milliseconds

It seems like it doesn't recognize that this method exists for some reason.

Side note:MCreator has A LOT of bugs which is kinda annoying. I love the software and I can fix some problems on my own but this can very annoying...