Player detection within a 20 block radius

Started by ABIZU_fluffy01 on Sun, 01/17/2021 - 13:33

Topic category: Help with modding (Java Edition)

Last seen on 09:48, 3. Apr 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Player detection within a 20 block radius
Sun, 01/17/2021 - 13:33

Good morning. With MCreator I try to make a spell for my mod and this spell needs to locate the player/entity within a radius of 20 block but when I put the formula ( If ) and I want to put the formula ( Look for Entity/target - distance raytrace) it does not work because the formula (if ) and ( Look for Entity/target - distance raytrace) does not come together. how can I get out of it detecting players in a 20 block zone?

 

Kindly: ABIZU_fluffy1

Last seen on 15:52, 20. May 2022
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Pretty sure you're using the…
Sun, 01/17/2021 - 13:41

Pretty sure you're using the wrong kind of block.

Try using the "For each entity at [][][] in square cube with size []" block

It's in the World Management tab.

 

 

Last seen on 09:48, 3. Apr 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes but what it takes is…
Sun, 01/17/2021 - 13:48

Yes but what it takes is that it detects all the player who is around the player who uses the spell it just does not affect the player who uses the spell

Last seen on 09:48, 3. Apr 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
but ty c:
Sun, 01/17/2021 - 14:07

but ty c:

Last seen on 13:29, 13. Feb 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
so for each:if it ISN'T the…
Tue, 02/09/2021 - 14:03

so for each:if it ISN'T the entity dependency do it