Item interaction with vanilla mobs

Started by KingBugz on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Sep 2018
Points:
845

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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.

Active 5 years ago
Joined Jul 2019
Points:
658

User statistics:

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

wow cool idea

 

Active 1 year ago
Joined Sep 2018
Points:
845

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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

Active 1 year ago
Joined Sep 2018
Points:
845

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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.

Active 1 year ago
Joined Sep 2018
Points:
845

User statistics:

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

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

Active 7 months ago
Joined Jan 2017
Points:
950

User statistics:

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

Oh i was about to tel lyou how lmfao

Active 3 years ago
Joined Mar 2020
Points:
1262

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1149
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).