How to change mob's Y coordinates spawn? Example: This mob spawn in overworld under the Y: 30 coordinates in underground

Started by VolcanoBoy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change mob's Y coordinates spawn? Example: This mob spawn in overworld under the Y: 30 coordinates in underground

I want make a mob, this mob spawn in underground in overworld (Example.: under Y: 30)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use natural spawns trigger =…
Thu, 12/30/2021 - 06:47

use natural spawns trigger ==> return==> your needed coordinate

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, can you attach a…
Thu, 12/30/2021 - 10:02

Thanks, can you attach a picture maybe?

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Y 30 and below? abit hard…
Fri, 12/31/2021 - 14:55

Y 30 and below? abit hard but here, a sample, will definitely need more tweaking:

On the yelow box, set it to "cave air", also replacing the Y with y = +/-30 or just straight up +/-30 will only spawn your entity on +/-30, nothing else so that wont work, that's why I've added the "Can see the sky, in that way it's guaranteed to spawn with overhead, like caves. 2nd condition is cave air making the mob spawn spawn directly where a cave air is.

Also using the "spawn on xyx dx dy dz entity" then changing dy to +/-30 is pointless as dxdydz moves the entity after they spawn on xyz, so for ex, when a pig is spawn on the ground and you have it to dy= -30, the pig will be move downwards but any obstacle will stop it, like the grassblock the pig is standing at.

So yea, a lot of improvements is needed. 
Spawn, return, return are 100% needed. (Or else your living entity custom spawn condition settings wont detect the procedure"
Sample below makes a pig spawn underground lol
Cave Air