I can't get the entity RIGHT CLICKED with on player rightclick on entity

Started by Ukufa on

Topic category: Help with modding (Java Edition)

Last seen on 20:25, 28. Jul 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't get the entity RIGHT CLICKED with on player rightclick on entity

If any person know how to get the entity rightclicked with on player right click on entity.

I give thanks for this person.

(Sorry bad English)

Last seen on 20:25, 28. Jul 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Solved Used event.getTarget(…
Fri, 12/27/2019 - 13:17

Solved

Used event.getTarget() to get the right clicked entity and

event.getEntityPlayer() to get who right clicked the entity