Help: custom mob that won't attack players with a specific effect

Started by cragdyna on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help: custom mob that won't attack players with a specific effect

I'm trying to create an entity that won't attack a player when they have a specific potion effect on them. But will target every other player 

I need the procedure to be on the entity since the player with the potion effect will be riding the entity.