Code generation for mob taming is broken?

Started by dido on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Code generation for mob taming is broken?

Hi

Fresh at MC moding (actually - helping my son to build his first MC mod). I tried to create a tamable mob, but couldn't get him to become tamed after giving it the configured food. 

When i looked at the generated code - it seems that isFood generated for the entity is incorrectly using ItemStack instead of ItemStack.getItem (when searching through the configured items which causes the mob to become tamed). After replacing it - taming started to work.

Not sure if this is the right place to post this (or i'm miserably wrong and everything is just fine with the code generation).