Help with procedure.

Started by oxnz on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with procedure.

How to create a procedure in which if a player looks at a mob, the player will be given a potion effect.

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you have to use…
Sat, 10/23/2021 - 04:59

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)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Raytrace distance + give…
Sat, 10/23/2021 - 06:53

Raytrace distance + give potion effect