Started by
oxnz
on
Topic category: Help with Minecraft modding (Java Edition)
How to create a procedure in which if a player looks at a mob, the player will be given a potion effect.
Topic category: Help with Minecraft modding (Java Edition)
How to create a procedure in which if a player looks at a mob, the player will be given a potion effect.
I think you have to use trigonometry with the position of the mob and the player, with the angle of the player's camera (I don't know how to implement it, sorry)
Raytrace distance + give potion effect