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

Started by Artistmonster24 on Tue, 11/24/2020 - 18:18

Topic category: Help with modding (Java Edition)

Last seen on 00:16, 15. Jan 2021
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I Know This has been Asked Before, But how do you Make Mobs Spawn ONLY in Caves?
Tue, 11/24/2020 - 18:18

    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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:16, 15. Jan 2021
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:16, 15. Jan 2021
Joined Jun 2020
User points:

User statistics:

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

ok thx

 

Last seen on 09:52, 17. Jan 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.