How to give specific entities in a specific radius a potion effect

Started by Rusher on Tue, 03/17/2020 - 17:17

Topic category: User side tutorials

Last seen on 16:15, 21. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to give specific entities in a specific radius a potion effect
Tue, 03/17/2020 - 17:31 (edited)

Hey, im going to show you how to give entities in a specific radius a potion effect!

 

First off, use the procedure Execute Command / [Command] at x: [x] y: [y] z: [z].

 

Here are some examples of commands, you can use.

/effect @e[r=15] minecraft:poison 10 0

This command gives every entity in a 15 block radius poison level 1 for 10 seconds.

/effect @e[type=!minecraft:player,r=20] minecraft:regeneration 15 1

This command gives every entity except players in a 20 block radius regeneration level 2 for 15 seconds. 

/effect @e[type=!minecraft:zombie,r=25] minecraft:wither 20 2

This command gives every zombie in a 25 block radius wither level 3 for 20 seconds.

 

Hope this helps :)

Edited by Rusher on Tue, 03/17/2020 - 17:31
Last seen on 16:15, 21. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks :)
Wed, 03/18/2020 - 06:17

Thanks :)

Last seen on 21:50, 20. Aug 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
is there any way to use a…
Fri, 07/17/2020 - 00:28

is there any way to use a custom potion effect with this?

Last seen on 21:05, 28. Oct 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes cootenboosch, just…
Fri, 07/17/2020 - 14:16

Yes cootenboosch, just replace "minecraft:whatever" by the ID of your potion effect

Last seen on 12:41, 29. Oct 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In the latest versions, the…
Fri, 07/17/2020 - 16:01

In the latest versions, the radius selector is removed.

Last seen on 21:05, 28. Oct 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
No it's not removed, it has…
Fri, 07/17/2020 - 16:47

No it's not removed, it has been modified, you just need to get it