Give item to player when entity is right clicked

Started by Coolkc456 on

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:
  • MCreator plugins:
  • Comments:
Give item to player when entity is right clicked

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.

Last seen on 21:34, 11. Oct 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need to replace the …
Mon, 07/10/2023 - 20:06

you need to replace the "source entity" with "Event/target entity