Topic category: User side tutorials
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 :)