Player detection within a 20 block radius

Started by ABIZU_fluffy01 on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jan 2021
Points:
576

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
Player detection within a 20 block radius

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

Active 9 months ago
Joined Aug 2018
Points:
774

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 124
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.

 

 

Active 4 years ago
Joined Jan 2021
Points:
576

User statistics:

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

Active 4 years ago
Joined Jan 2021
Points:
576

User statistics:

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

but ty c:

Active 1 year ago
Joined Mar 2020
Points:
888

User statistics:

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