How to make item that effects other mobs

Started by k33gano on Thu, 04/02/2020 - 21:55

Topic category: Help with modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to make item that effects other mobs
Thu, 04/02/2020 - 21:55

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 15:10, 21. Apr 2020
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.