How do I pick up a moded entity in a custom bucket?

Started by Nikau on Wed, 08/03/2022 - 08:42

Topic category: Help with modding (Java Edition)

Last seen on 13:49, 18. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I pick up a moded entity in a custom bucket?
Wed, 08/03/2022 - 08:42

I am trying to pick up an entity in a bucket (that doent need water) by removing the bucket then adding the bucket+entity then despawning the entity when I right click my custom entity. How do I do it.

I am a noob at this so please can you explain in a lot of detail.

Last seen on 15:10, 30. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You need to procedures first…
Wed, 08/03/2022 - 09:35

You need to procedures first when right clicked at entity check if player(source entity) is holding a bucket then despawn the mob(target entity) remove bucket from inventory and add the custom mob bucket to inventory and for second procedure when right clicked to block with the item remove the custom bucket from inventory add normal bucket and spawn your entityΒ 

(Sorry for messy explanation if you need pictures of it I can send you)

Last seen on 13:49, 18. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you so much!
Wed, 08/03/2022 - 12:50

Thank you so much!