How do i give effects to entities in a certain distance

Started by Unspeakapug on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i give effects to entities in a certain distance
Fri, 09/13/2024 - 23:45 (edited)

Can someone please help me and tell me what is wrong with this code. It is supposed to give the effect to all entities besides the ones listed in the command along with putting the particle around the person

Edited by Unspeakapug on Fri, 09/13/2024 - 23:45
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Execute command /effect giveā€¦
Sun, 09/15/2024 - 01:28

Execute command /effect give @e[distance0.1..5] <Effect Name> <Duration> <Amplifier> <ShowParticles (True/False)>             in the name of [Event/Target Entity].

Change the effect name to minecraft:effect or mod_name:effect and the distance=0.1..5 to the reach you want, the 0.1 should stay like that so it doesnt apply to you and the 5 is the radius

Image

Hope it helps.

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sun, 09/15/2024 - 19:04