Problem with my code, I can't figure it out.

Started by retroPacifist on

Topic category: Help with modding (Java Edition)

Last seen on 02:19, 22. Feb 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problem with my code, I can't figure it out.

Hello, I am trying to code a mob which, upon being fed 5 nether wart, becomes a cocoon. I thought I coded it correctly, but it doesn't seem to be functioning as intended. Any help is greatly appreciated!

 

code

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item in "entity's" main hand…
Tue, 10/22/2019 - 09:01

Item in "entity's" main hand might be your problem. What is entity pointing to here? The mob or the player? I think it's the mob if this is a procedure called from the mob procedure calls.

There's an issue open about this:

https://mcreator.net/tracker/issue/45976

Last seen on 02:19, 22. Feb 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way (within the…
Tue, 10/22/2019 - 09:46

Is there a way (within the code) to clarify? Or at least get around it? Thanks for the quick response!