Give item to player when entity is right clicked

Started by Coolkc456 on Sun, 08/15/2021 - 07:49

Topic category: Help with modding (Java Edition)

Last seen on 00:59, 4. Feb 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Give item to player when entity is right clicked
Sun, 08/15/2021 - 07:49

I'm trying to make a procedure that gives an item to a player when they right click a pig with a bottle but right now it doesn't do anything when I right click a pig. This is what I currently have:

I've also tried changing "source entity" to event/target entity. Can anyone help? Thanks in advance.