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 Wed, 12/29/2021 - 21:21

Topic category: Help with modding (Java Edition)

Last seen on 09:35, 24. Apr 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to change mob's Y coordinates spawn? Example: This mob spawn in overworld under the Y: 30 coordinates in underground
Wed, 12/29/2021 - 21:21

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

Last seen on 04:48, 20. May 2022
Joined Mar 2021
Points:

User statistics:

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

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

Last seen on 09:35, 24. Apr 2022
Joined Sep 2019
Points:

User statistics:

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

Thanks, can you attach a picture maybe?

Last seen on 09:54, 12. Jan 2022
Joined Nov 2021
Points:

User statistics:

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

Last seen on 09:35, 24. Apr 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks  
Mon, 01/03/2022 - 15:08

Thanks