I need help getting my mob to spawn underground.

Started by bardo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help getting my mob to spawn underground.

So, I have this small mob (less than 1 block in size). I need it to spawn in caves. I almost managed to do this using a procedure, but with my current setup, it's only spawning near lava.

Here is my procedure: https://imgur.com/a/NWPL3C3

Here is my spawning tab: https://imgur.com/a/Qqy5AUR (weight = 500 for tests)

 

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set the spawn condition of…
Tue, 06/09/2026 - 22:33

Set the spawn condition of the mob to below Y63 

 

If you need further info, please let me know!

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just changed the y < 60 to…
Tue, 06/09/2026 - 23:10

I just changed the y < 60 to y < 63 in spawn condition procedure, and nothing changed

Sorry i kinda new in the mcreator moding and i have other mobs that spawn in surface, this is the first one I'm having trouble with.

If you can help me figure out what I'm doing wrong, i would be grateful.

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is the entity spawning at…
Tue, 06/09/2026 - 23:15

Is the entity spawning at all?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes it spawning, but just…
Tue, 06/09/2026 - 23:17

Yes it spawning, but just when i set the light level to < 15, so this spawn near lava

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does it spawn when it is set…
Tue, 06/09/2026 - 23:20

Does it spawn when it is set to > 15?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, theyre stop spawning
Tue, 06/09/2026 - 23:23

No, theyre stop spawning

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you make sure they are…
Tue, 06/09/2026 - 23:25

Can you make sure they are set to the same mob type in the behaviour tab and in the spawning tab?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, in behavior tab it is…
Tue, 06/09/2026 - 23:32

Yes, in behavior tab it is Mob with type undefined and in the spawning tab it is monster.

I'm using mcreator 2024.4 i dont know if it change something

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try removing the light…
Tue, 06/09/2026 - 23:38

Maybe try removing the light level restriction and instead of Y63 make it have to be below Y50 

 

See if that works.

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also try to make the spawn…
Tue, 06/09/2026 - 23:41

Also try to make the spawn wait either equal or greater than 20.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, even with this changes…
Tue, 06/09/2026 - 23:47

Yeah, even with this changes they still spawning just near lava

I'm going to crazy with this mob

How can i do the wait thing in a return procedure?

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, that's in the entitys…
Tue, 06/09/2026 - 23:48

No, that's in the entitys spawning tab.

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After a bit of researching I…
Tue, 06/09/2026 - 23:55

After a bit of researching I finally figured it out. You need to delete the entire condition first. Second you need make a new procedure and then use this logic: https://imgur.com/a/KkYErQf then add that procedure to the trigger in the entitys tab "On initial entity spawn" than you should be good