food eaten "event' error

4 posts / 0 new
Last post
Offline
Last seen: 4 months 3 weeks ago
Joined: 12/13/2015 - 22:10
Gems: 5
food eaten "event' error

 

When I try to set any "event" for when the food is eaten I get this:  C:\Pylo\MCreator160\forge\build\sources\java\mod\mcreator\mcreator_omeletBeefPotato.java:127: error: cannot find symbol
int j = (int)(entity.prevPosY + (entity.posY - entity.prevPosY) * (double)var4 + 1.62D - (double)entity.yOffset);
                                                                                                       ^
  symbol:   variable yOffset
  location: variable entity of type EntityPlayer
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> CompilationTotal time: 6.307 secs
 failed; see the compiler error output for details.
BUILD FAILED
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.                              I would really like to get my bottle, bowl or plate back after I've eaten the food.

 

 

 



JustGameIn's picture
Offline
Last seen: 2 weeks 5 days ago
Joined: 06/30/2015 - 20:42
Gems: 35
You can not put events on

You can not put events on food at the moment. It causes an error every time.

drekac's picture
Offline
Last seen: 8 months 3 weeks ago
Joined: 09/28/2014 - 02:30
Gems: 11
RE:You can not put events on

@JustGameIn Yes you can, you'll just need to delete a bit of coordinates in source code.

JustGameIn's picture
Offline
Last seen: 2 weeks 5 days ago
Joined: 06/30/2015 - 20:42
Gems: 35
Oh, thats why I could not get

Oh, thats why I could not get it to work. Thanks! You still working on the new mod you announced!