Give item to player when entity is right clicked

Started by Coolkc456 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2021
Points:
629

User statistics:

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

Active 1 year ago
Joined May 2023
Points:
241

User statistics:

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

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

Active 2 months ago
Joined Jan 2022
Points:
535

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 33
bruh they already said they…
Thu, 05/30/2024 - 23:26

bruh they already said they did that