I Know This has been Asked Before, But how do you Make Mobs Spawn ONLY in Caves?

Started by Artistmonster24 on

Topic category: Help with modding (Java Edition)

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Know This has been Asked Before, But how do you Make Mobs Spawn ONLY in Caves?

    Hi! I was wondering if anyone knew how to make a spawning condition for spawning in caves. Every time I try, it says missing dependencies, and I assume that is because I use entity dependencies. I just don't understand to make it work. Any ideas?

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check if the block at x y z…
Tue, 11/24/2020 - 18:59

Check if the block at x y z is cave air

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, but I assume I have to…
Tue, 11/24/2020 - 19:13

yes, but I assume I have to do If: NOT: Block at x, y, z = Cave Air Do: Despawn Entity, but I can't do that because it doesn't have entity dependencies.

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to put it in on…
Tue, 11/24/2020 - 19:17

You need to put it in on entity initial spawn

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and yes that is what you…
Tue, 11/24/2020 - 19:18

and yes that is what you have to do

 

Last seen on 21:34, 5. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok thx  
Tue, 11/24/2020 - 19:19

ok thx

 

You need to put it in on…
Tue, 11/24/2020 - 20:14

You need to put it in on entity initial spawn

It is better to use spawn condition for this since this feature is now possible

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The x y z of spawn condition…
Tue, 11/24/2020 - 21:18

The x y z of spawn condition is the position of the player spawn. I have tested it.

Last seen on 17:22, 17. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does this still work or no?…
Sun, 08/06/2023 - 20:23

does this still work or no? if so is there an updated I need to know