Item interaction with vanilla mobs

Started by KingBugz on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

 

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

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.

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.

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

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).