Item interaction with vanilla mobs

Started by KingBugz on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item interaction with vanilla mobs

How do i go about making a vanilla mob, let's just say a pig, to interact with an item.

For example, how would i make an item remove a pig when it is right clicked on, and give the player a custom pig item BUT ONLY WHEN YOU RIGHT CLICK ON A PIG?

Or even create an event, that when a pig dies, it drops a custom pig block.

Last seen on 14:08, 14. Sep 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wow cool idea  
Tue, 09/10/2019 - 18:31

wow cool idea

 

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, I'm hoping someone…
Wed, 09/11/2019 - 03:54

Thanks, I'm hoping someone can help me with this. That is if it's even possible yet lol

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay so i figured it out lol…
Thu, 09/12/2019 - 07:52

Okay so i figured it out lol

Now I just need to figure out how to make something happen ONLY when the mob is killed with a specific item.

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just figured that out as…
Tue, 09/24/2019 - 19:57

Just figured that out as well, this is coming along nicely.

Last seen on 15:27, 10. Oct 2022
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh i was about to tel lyou…
Tue, 09/24/2019 - 20:12

Oh i was about to tel lyou how lmfao

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you figure it out?!…
Sun, 04/26/2020 - 19:08

How did you figure it out?! I wanna make an item that when you right-click on a wolf it does (blank).