Why is my mob not picking up blocks like it is supposed to?

Started by Chasebear777 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why is my mob not picking up blocks like it is supposed to?

I am making the allay in my mod for 1.16.5 and a part of the procedure is obviously to pick up items and it can pick them up but it looks kind of glitchy and i dont really want that, here is the procedure: https://imgur.com/a/Kc2prD3 and here is video of it: https://imgur.com/a/Gmae0ik

also i would use it to put the item that it picks up in its off hand but that glitches too and it like duplicates the items so i just went with this but of course it looks weird, does anyone have any fix for it?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that's because items aren't…
Sun, 05/15/2022 - 15:29

that's because items aren't supposed to be rendered like that

i don't think it's conventionally possible to render items in a mob's hand, i'm guessing what you could do is have every allay spawn with an invisible mob riding it, it would have a biped or zombie model so it's allowed to hold items, and then the rideable entity offset would be set so that the item appears in the allay's hand