How to make an ambient mob spawn in the light?

Started by KaidinOk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an ambient mob spawn in the light?

I've been updating my desert update mod and i've been trying to fix the coyote mob only spawning in the nighttime, monster makes it only spawn in the night, creature makes it spawn on grass blocks only (which isn't very common in the desert) the water spawn types are the opposite of what i want for the spawn and I DONT EVEN KNOW WHAT MISC DOES. Ambient makes it spawn, but from the wiki page, ambient mobs only spawn in the dark, so most coyotes spawn in caves or at nighttime, I am going crazy

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm still pretty new to…
Tue, 01/18/2022 - 01:39

i'm still pretty new to mcreator so please don't give me an entire coding lesson if thats necessary

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, i fixed it, i almost…
Tue, 01/25/2022 - 22:02

Ok, i fixed it, i almost went insane

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry for replying to an old…
Thu, 05/05/2022 - 16:07

Sorry for replying to an old post, but how did you fix it?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its not really a "fix" i…
Fri, 05/06/2022 - 13:03

its not really a "fix" i just changed the entity base. I still don't know

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok I figured my stuff out…
Fri, 05/06/2022 - 15:08

Ok I figured my stuff out too with a workaround

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a similar problem but…
Wed, 04/05/2023 - 15:56

I have a similar problem but I don't want to use entity base

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use custom spawn…
Wed, 04/05/2023 - 16:45

You can use custom spawn conditions, something like:
(If (((Can block at X Y Z see the sky) And (Is day in provided world)) And (Is block at X (Y-1) Z tagged in (minecraft:sand)))

        (return (True))

(Return (False))

 

Even though I have written this in a code-like format, this can be done with procedures.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's funny because that's…
Thu, 04/06/2023 - 03:34

It's funny because that's what I did, they just don't spawn a lot.