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 18:05, 6. Jun 2021
Joined Nov 2019
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, 05/25/2021 - 15:01 (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, 05/25/2021 - 15:01
Last seen on 18:05, 6. Jun 2021
Joined Nov 2019
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
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 14:19, 22. Jul 2021
Joined Jun 2015
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 06:35, 22. Jul 2021
Joined Nov 2018
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 14:19, 22. Jul 2021
Joined Jun 2015
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

Last seen on 08:58, 10. Jul 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What means "you need to get…
Fri, 04/16/2021 - 10:12

What means "you need to get it"?

Last seen on 16:21, 22. May 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
hey, is there a way to do it…
Sat, 05/22/2021 - 16:21

hey, is there a way to do it not In a certain radius. I can do most commands but basically, I have 2 entities with the same name when I run into one I want to teleport to the other, this is the command: /execute @e[name=portalwhite] ~~~ /execute @a[r=0.5] ~~~ /tp @s @e[name=portalwhite, r]

what this does is the armour stand named "portalwhite" finds a player in a 0.5 radius of it, which is fine. But i need it so when you teleport you don't teleport to the armour stand you are at so I would like to teleport to an entity outside the distance of 2. in theory this should work but it doesn't /execute @e[name=portalwhite] ~~~ /execute @a[r=0.5] ~~~ /tp @s @e[name=portalwhite, r=!2]

please reply if anyone can help