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 Minecraft modding (Java Edition)

Active 2 years ago
Joined May 2018
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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

Active 3 years ago
Joined Mar 2020
Points:
1264

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1149
“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 

Active 2 years ago
Joined May 2018
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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

Active 2 years ago
Joined Mar 2020
Points:
890

User statistics:

  • Modifications: 3
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 369
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))

Active 3 years ago
Joined Mar 2020
Points:
1264

User statistics:

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

Fancy maths