Effect that affects mobs on sight

Started by MysticPaul97 on

Topic category: Help with modding (Java Edition)

Last seen on 23:46, 26. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Effect that affects mobs on sight

I want to create a keybind, that affects the mobs on the players camera like: If I press the keybind, the hostile mobs in my camera will kill themself. How I do it? I dont care if I have to edit code if you post the code I have to edit.