Make right click event only apply on mobs

Started by lamoo7 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make right click event only apply on mobs

When I right-click with my custom item it summons a lightning strike, even though I am not targeting a mob, but I want it to work only when I look at mobs, not when I look in the air or at blocks.
.