How do i make an aoe attack?

Started by Dwayne Salore2 on Mon, 06/21/2021 - 14:01

Topic category: Help with modding (Java Edition)

Last seen on 04:49, 17. Jul 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make an aoe attack?
Mon, 06/21/2021 - 14:01 (edited)

How do i make a procedure that can do aoe attack

basically how do i make it so that if your at a specific amount of blocks away from a mob it can deal damage to you

Edited by Dwayne Salore2 on Mon, 06/21/2021 - 14:01
Last seen on 15:36, 23. Jul 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could use the Vanilla…
Fri, 07/23/2021 - 15:36

You could use the Vanilla command: ""/effect give @e[distance=..15] speed 10 10 true"" together with a Area Effect cloud: https://mcstacker.bimbimma.com/#!33817

 

/effect give @e[distance=..15] speed 10 10 true

true at the end means that the particles are invisable

speed 10 10 means that it gives all entities in that range speed for 10 seconds at level 11

distance=15 will only refer to players 15 blocks away from the command block, and

distance=..15 will refer to players up to 15 blocks away from the command block.

("..15" means less than or equal to 15)