Can you make it so certain mobs only spawn under a certain Y level?

Discussion in 'Support' started by CarlMC, Jun 6, 2018.

  1. CarlMC

    CarlMC New Member

    Joined:
    May 31, 2018
    Messages:
    3
    Likes Received:
    0
    So I'm trying to get a mob to spawn in caves but I'm not sure if it's possible. I tried making it so they only spawn inside however they would spawn under trees and other things on the surface. I looked around on the manual and couldn't find anything in randonspawns, am I blind or is it just not possible?
     
    #1
  2. Buguser

    Buguser Member

    Joined:
    Oct 11, 2016
    Messages:
    98
    Likes Received:
    38
    Since caves generate up to y128 i would go for this conditions:

    Code:
    Conditions:
    - altitude{a=0-127} true
    - onblock stone,gravel true
    - lightlevel{l=0to7} true
    - inside true
    This does not rule out mobs spawning under trees at night when the ground under them is stone like in the extreme hills biomes when the height is below y128.
     
    #2
  3. CarlMC

    CarlMC New Member

    Joined:
    May 31, 2018
    Messages:
    3
    Likes Received:
    0
    Sorry for the late reply. This doesn't seem to be working, I used those exact settings and they just are not spawning at all now
     
    #3

Share This Page