Disable Mob and Animal Spawning

Discussion in 'Skript' started by PaymHD, Jun 28, 2021.

  1. Howdy people,
    I currently script a Minecraft server on version 1.12.2.

    My question is:
    how do I deactivate that no monsters and no animals spawn, but the players still get hungry so I can leave the difficulty on normal

    I have already deactivated spawn animals and everything in server.properties file but it doesn't work, animals and monsters continue to spawn
  2. try /gamerule doMobSpawning false

    it is best not to deal with mob spawning with plugins as that hurts performance