Entity Holding Item?

Started by MamaLuigi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Holding Item?

In my mod, I'm trying to make an entity similar to the Allay, where i want it to fly around and hold items. I got the flying part done, but i still need it to hold items.

I want to have it so when you hold an item and give it to the mob, then the mob will hold it, and if your hand is empty and the mob is holding an item, then you will take it from the mob.

I cannot seem to have it hold items. If it matters I'm using a Geckolib Animated Entity.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i just remembered the model…
Tue, 08/20/2024 - 02:01

i just remembered the model layering feature! maybe you could utilize this?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nevermind, layers are not…
Tue, 08/20/2024 - 02:02

nevermind, layers are not currently suported by geckolib.