how to make an entity do something when a player looks at it

Started by the111guy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make an entity do something when a player looks at it

PLEEEEEESE, im trying to make a mod for WEEEEEEKKKS and i cant, I JUST CANT understand how ray trace or detect the player looking at my custom entity (2023.3) no matter what tutorial i see, no matter version im trying its still not workinggggg, PLEASE, how do they make ray tracing work in other mcreator mods??????????????? its just too hard im just trying to make a simple mod its so pmo, im so confused and i dont know what to do

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure you can do this…
Thu, 09/25/2025 - 20:25

I'm not sure you can do this without custom code/a plugin since iirc the current raycast blocks only check for blocks,

I've added this block to my plugin,

but I haven't tried the MCreator snapshots, what mc version are they on?