Effect that affects mobs on sight

Started by MysticPaul97 on

Topic category: Help with Minecraft modding (Java Edition)

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.