How to make item that effects other mobs

Started by k33gano on

Topic category: Help with modding (Java Edition)

Last seen on 23:55, 5. Apr 2020
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make item that effects other mobs

Im trying to add an item that gives mobs around me a glowing effect when held and need to have that effect stop when its not held. please help

Last seen on 11:42, 2. Jan 2024
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
HeY! So I worked on this…
Sun, 04/05/2020 - 05:34

HeY!

So I worked on this thing for a few hours and I made this thing a couple times, but a little changes, and finally after 3 hours of work, I'm so angry with myself. 'cause first try I wanted to use the mcreator template  "check 6x6x6 box" but this didn't work. I stopped thinking a little bit and trying minecraft effect command, and finally I figured out how to do this.

effect give @e[type=!player,distance=..6] minecraft:glowing 0 1 true

I'm sorry for so many words in the beginning, but this is the final result. But this had a little problem. The glowing effect is still on the entity for a few milliseconds or a second, but this is a Minecraft problem, so I can't do anything (but I tried), I hope this is not a big problem.
I'll really hope I can help you! Sorry if I had a bad english.

Last seen on 00:46, 5. Dec 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hello, by any chance could…
Sun, 09/04/2022 - 01:17

hello, by any chance could you tell me how to put that?
I want to make a potion that has the luminescence effect, but when it's taken, the effect doesn't go to the player, but to nearby creatures.