Disable natural spawning of horses

Discussion in 'Spigot Plugin Help' started by TheSteveRizzo, Jul 12, 2015.

  1. Hi!

    I've tried Multiverse's built-in configuration of disabling specific mobs and have tried to disable the spawning of horses along with coding my own plugin using the inefficient way of checking the CreatureSpawnEvent, however nothing seems to stop the spawning of horses. Does anyone else know a way to disable them?

    Just thought I'd ask..

    - Fight
     
  2. if you use essentials then you can disable it in the essentials config.yml
     
    • Like Like x 1
  3. joshwenke

    Wiki Team

    Get the plugin Skript:
    Code (Text):
    on spawn of horse:
        cancel event
    Done :D
     
    • Like Like x 1
  4. I would use this, but sadly I'm not using essentials as I coded the core plugin.

    Awesome, I'll give it a try! Thanks!
     
    • Like Like x 1
  5. @joshwenke Hey, do you know if this will disable only the natural spawning of horses or will it stop it altogether? I'm just wondering because I have a plugin to spawn a horse (as a perk), but don't want the natural spawning of horses.

    If it's altogether, is there a way I can set the health of the horse as a double (22.5) instead of canceling the event?

    Thanks again!