disable mobs at surface

Discussion in 'Plugin Development' started by FlyZow, Jul 29, 2019.

Thread Status:
Not open for further replies.
  1. Hi, I wanna disable mobs at surface but not at other spawn ( like cave ).

    Thank you for your futur answer.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @FlyZow You can get the entity, get its location, get the highest block at that x, z, if it is above the entity location then everything is fine.
    Else you need to remove the entity.
    Do keep in mind that this won't block spawns below trees.
     
Thread Status:
Not open for further replies.

Share This Page