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 Minecraft modding (Java Edition)

Active 3 years ago
Joined Jun 2020
Points:
698

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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?

Active 3 years ago
Joined Jun 2020
Points:
645

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
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

Active 3 years ago
Joined Jun 2020
Points:
698

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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.

Active 3 years ago
Joined Jun 2020
Points:
645

User statistics:

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

You need to put it in on entity initial spawn

Active 3 years ago
Joined Jun 2020
Points:
645

User statistics:

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

and yes that is what you have to do

 

Active 3 years ago
Joined Jun 2020
Points:
698

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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

Active 3 years ago
Joined Jun 2020
Points:
645

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
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.

Active 3 months ago
Joined Apr 2023
Points:
285

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
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