How to see if the mob is close to the player to apply an effect ?? in procedures

Started by InfiniteCraft on

Topic category: Help with modding (Java Edition)

Last seen on 13:27, 27. Feb 2023
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to see if the mob is close to the player to apply an effect ?? in procedures

How to see if the mob is close to the player to apply an effect ??

in procedures

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
“When player collides with…
Thu, 06/25/2020 - 14:31

“When player collides with entity” 

 

Apply effect with level x, duration x, of type x 

Last seen on 13:27, 27. Feb 2023
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm saying if the mob is 10…
Thu, 06/25/2020 - 16:42

I'm saying if the mob is 10 blocks away from me to apply an effect that is the brightness

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use sqrt(abs(x1-x2)*abs(x1…
Mon, 06/29/2020 - 04:31

Use sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2))

Oh,yes,remove the ABSs,because negative*negative = poositive

sqrt(abs(x1-x2)*abs(x1-x2)+abs(y1-y2)*abs(y1-y2))

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fancy maths
Mon, 06/29/2020 - 12:35

Fancy maths