Anyone know how I could make my mob attack only when it's night?

Started by KITNNAXBOX on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyone know how I could make my mob attack only when it's night?
Anyone know how I could make my mob attack only when it's night?
I am doing a mod in which, most mobs only attack at night, while during the day stay still and do not attack anyone.

I've been looking but I can't find any option that lets me modify that.
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under your attack AI set a…
Mon, 10/04/2021 - 18:03

Under your attack AI set a condition: return not is day

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob AI Block: attack for…
Tue, 10/05/2021 - 09:51

Mob AI

Block: attack for example player

Use conditions: return if not day in the provided world

 

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show me?
Wed, 10/06/2021 - 15:05

can you show me?