Mob that is passive during day, hostile during night

Started by moleskykeeper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob that is passive during day, hostile during night

So, I'm currently working on a mod that adds a mob that, like the title states, is passive during the day, and hostile at night. MCreator doesn't appear to have any built-in options for this sort of thing, so I was wondering if anybody had any idea how to implement this? It's ok if it requires coding, I can do that, just tell me what to do.

Thank you in advance.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/yaswQtr…
Sun, 02/07/2021 - 23:51

https://imgur.com/a/yaswQtr

there's no coding needed, just create a procedure like the first image(in the link I sent) then go to your living entity, AI and Goals and add the "attack entities of type "EntityPlayer"" then click conditions and add the procedure you've made.

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sweet, thank you so much!!!
Mon, 02/08/2021 - 00:03

Sweet, thank you so much!!!

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually, what version of…
Mon, 02/08/2021 - 00:07

Actually, what version of MCreator is this in?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yea i was hoping this was in…
Mon, 02/08/2021 - 00:09

yea i was hoping this was in the 2020.5 version but, i made this in the new snapshot version 2021.1

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oof, yeah, especially not…
Mon, 02/08/2021 - 00:23

Oof, yeah, especially not great cuz I'm trying to get this in on 1.12.2,,,, (Because of interaction with other un-updated mods, I wish I could be doing this in 1.15+ ugh)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, I copied the code and…
Wed, 12/13/2023 - 20:42

Hey, I copied the code and the mob is always passive. Am i missing something?