Is there a way to make a mob not aggresive towards a player if the player is crouching?

Started by Manifoldwithswagger on

Topic category: Help with MCreator software

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to make a mob not aggresive towards a player if the player is crouching?
Thu, 01/20/2022 - 04:20 (edited)

I'm making my first mod, and I'm trying to implement a mod that if the player is crouching the mob can't see it but I can't find any way to do that

Edited by Manifoldwithswagger on Thu, 01/20/2022 - 04:20
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on the attack AI, make a…
Thu, 01/20/2022 - 18:40

on the attack AI, make a condition, if player is crouching, return false

return true