Help with procedure.

Started by oxnz on

Topic category: Help with modding (Java Edition)

Last seen on 17:48, 22. Oct 2021
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.

Last seen on 03:45, 24. Dec 2021
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)

Last seen on 15:24, 24. Apr 2024
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