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

Started by retroPacifist on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Oct 2019
Points:
757

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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

Active 5 years ago
Joined Aug 2019
Points:
1035

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
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

Active 4 years ago
Joined Oct 2019
Points:
757

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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!