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

Started by Manifoldwithswagger on Thu, 01/20/2022 - 04:20

Topic category: Help with MCreator software

Last seen on 05:35, 24. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 22:12, 18. May 2022
Joined Oct 2020
Points:

User statistics:

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