food eaten "event' error

Started by DianneVT on Mon, 12/14/2015 - 18:24
Last seen on 20:32, 3. Jan 2017
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
food eaten "event' error
Mon, 12/14/2015 - 18:24

 

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.

 

 

 

Last seen on 15:52, 18. Jun 2018
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You can not put events on
Mon, 12/14/2015 - 19:31

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

Last seen on 12:11, 21. Aug 2017
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You can not put events on
Mon, 12/14/2015 - 20:04

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

Last seen on 15:52, 18. Jun 2018
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Oh, thats why I could not get
Mon, 12/14/2015 - 21:03

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