Making mobs spawn at low y levels

Started by Juplicate on

Topic category: Help with modding (Java Edition)

Last seen on 00:16, 29. Jun 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making mobs spawn at low y levels

Is there a way to make a custom mob spawn below a certain y level, for example y level 50.

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on initial entity spawn…
Tue, 06/30/2020 - 01:32

on initial entity spawn procedure trigger use something like this:
if(get y of target entity >50){

despawn target entity();

}