Inactive [ADMN] MobControl v1.3 | Full control over which Mobs can spawn and which can't. [1.3.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by MishMash95, Jan 11, 2012.

  1. Offline

    Netstormuk

    //MobControl - Settings

    //Global Settings//
    DespawnCurrentMobs=true
    SendUserMessage=false

    //Peaceful Mobs//
    SpawnPigs=false
    SpawnCows=false
    SpawnChickens=false
    SpawnMooshrooms=false
    SpawnSheep=false
    SpawnSquid=true
    SpawnVillager=false

    //Passive Mobs//
    SpawnEnderman=false
    SpawnWolf=false
    SpawnPigman=false
    SpawnPigzombie=true

    //Agressive Mobs//
    SpawnBlaze=false
    SpawnCaveSpider=false
    SpawnCreeper=false
    SpawnGhast=false
    SpawnMagmaCube=false
    SpawnSilverfish=false
    SpawnSkeleton=false
    SpawnSlime=false
    SpawnSpider=false
    SpawnJockey=true
    SpawnZombie=false

    //Other Mobs//
    SpawnEnderDragon=false
    SpawnSnowGolem=false
    SpawnGiant=false


    ------------------------------------------

    When I set all of them to false except DespawnCurrentMobs. Save the text and start up the server it reverts SpawnSquid, SpawnPigZombie and SpawnJockey back to true.

    Also SpawnSlime is set to false but I can still spawn them.

    Any idea if it's a problem I'm doing or it's a problem with the plug in. Cheers.
     
  2. Offline

    sam501

    Will it kill them when they spawn or just disallow them to spawn period?
     
  3. Offline

    MishMash95

    Netstormuk: Im fixing that today. Sorry for the inconvien.
    sam501: if you set "DespawnCurrentMobs=true" then it will despawn all mobs on the map, otherwise it'll keep the mobs just stop more from spawning.

    Oh i also forgot to mention.
    PigZombie, Jockey aren't separate entities in Bukkit which makes it impossible to control them, Jockey's are when a skeleton is riding a spider and that is something separate, sorry for the inconvinience. It's being taken out now, along with other fixes coming with the next release.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  4. Offline

    mat8913

    A hint for adding proper multiworld support:
    Reading the javadocs over at http://jd.bukkit.org/apidocs/ shows that the class "CreatureSpawnEvent" (I assume thats the event your plugin is listening for) contains a method called "getLocation()". That method will return an object of class "Location". The class "Location" contains a method called "getWorld()" which will return an object of class "World". That class contains a method called "getName()" which will return the name of that world as a string.
    So all you have to do is CreatureSpawnEvent.getLocation().getWorld().getName() and have the plugin check the world name against the configuration file.

    Example to cancel the creature spawn if it's a creeper on a world titled "skylands":


    @EventHandler
    public void mobSpawned(CreatureSpawnEvent event) {
    if (event.getCreatureType() == CreatureType.CREEPER && event.getLocation().getWorld().getName().equalsIgnoreCase("skylands")){
    event.setCancelled(true);
    }


    I'm sorry if any of this is wrong, I only just got back into java yesterday.
     
  5. Offline

    MishMash95

    i know how to add it, i just made it by default run the event across all worlds rather than just one. The thing that would be hard is getting it to have an arraylist for each condition. And java makes this harder than other languages because i cant just do CreeperSpawn[world], i have to set up an array list so loading in a multiworld set of instructions with the simple way this is set up is gonna take alot more coding, i mean i can always do it but its just more awkward. because look your script, imagine having to have a for statement cycle through an array for each world for each mob after having loaded all the variables into an arraylist, it would take alot more code than it does now.
     
  6. Offline

    MishMash95

    I have released a new version of the Plugin fixing some minor bugs, work has also began on the new features however it is not quite ready for public release just yet. Thanks for your understanding. :p!
     
  7. Offline

    mamalotas1

    looks good I may try it out
     
  8. Limited the amount of a chosen mob would be wonderful. I don't want to remove creepers from my world but atm they spawn in to great numbers so some way to set av max amount to spawn would Solv it. :)
     
  9. Offline

    MishMash95

    Thanks for the suggestion, ill think about it.
     
  10. Offline

    DerekZil

    When you say other mobs? Does that mean they will spawn when true??!!!
    If so I want to have random Enderdragons spawn.

    Can you add a config for a percentage of when that monster will spawn, and how many there could be? :confused:
     
  11. Offline

    MishMash95

    no it just controls mobs relative to their original spawn, if you set it to true, it doesn't mean more will spawn it just means that the one in The End is allowed to spawn, this goes for all mobs, by setting all to true, that just makes this work like minecraft would by default.
     
  12. Offline

    colin8696909

    sorry to trouble you with this but could you add the ability to cansole the spawn except for mob spawning blocks (cages). to still work.
     
  13. Offline

    isaac13_13

    Can you edit it to be controlled at day/night cycles? (i need a mod that maks slimes spawn under condition that they won't usually spawn according.
     
  14. Offline

    AndTuts

    Thing to add: I want to have control over the mobs naturaly spawning, so that I can turn off natural spawns, but mobspawners on :D Please add that!
     
  15. Offline

    zombieman1000

    girl look at my body ya i dont work out
     

    Attached Files:

  16. Offline

    MishMash95

    uhh, is that relevant in any way? right... ill just let u get on with it.
     
  17. Offline

    Gallie

    Are you able to make this limit how many mobs are spawned? I only want 1 enderdragon at a time. Is this possible?
     
  18. Offline

    ashlii21

    Hi there I tried your plugin today to try and turn off slimes in my FLAT type map but when I set SpawnSlime to false they still spawn all over the place. Will it not work with FLAT maps or is it somthing on my end causing the problem?
     
  19. Offline

    Tutimane

    can you add support to change spawn areas!? then i can add more deadly mobs to my pvp map on normal places like the grassland biome
     
  20. Offline

    tortus412

    is there any way that i can have mobs on one world. but not another?
     
  21. Offline

    RauX

    Mhh... i turned of the slime spawning on my flatmap, and i always find 1 or 2 slimes... why?
     
  22. Offline

    squirly_wrath

    It isn't working for me when the console loads up it says "There was a problem is the plug-in up to date?"
     
  23. Offline

    thect

    @MishMash95 hey i have tryed ur plugin and i cant get it to work?
    i have set it in plugin folder and costume the config and startet op the server but still the mobs and animals keep spawning and when i go in config again all is on true again? like default i run it on craftbukkit 1.2.3 R2 i hope u can get it working thx :)!
     
  24. Offline

    T451kevin

    I think this is great no errors at all

    Idea: You should include something that controls the possible spawn amount of each mob ( and maybe that mobs location so you could spawn nether world creatures in the normal world.)
     
  25. Offline

    Saix12345

    This is kinda hard to say but you might know what i mean. Can you add where you can set up certain areas in which you can control if mobs spawn in that area or not? Like if your server has a spawn town if you can create an area and disable mobs from spawning in that area but still spawn outside the area. Do you think you will be able to do that? I haven't seen that in a plugin and that would be very helpful. I can see how this can be a problem because you might have to have a plugin like World Edit to select an area but there might be other ways around it.
     
  26. Offline

    schatty

    same here ;(
     
  27. Offline

    rookwood101

    The link seems to be broken for me.
     
  28. Offline

    drakowolf

    Great plugin, great that it is MultiWorld support.. However would it be true MultiWorld support where you can control the mobs per world..I like the idea of being able to disable some mobs, but I'd like to disable only certain mobs in specific worlds but not affect the other worlds and still have them spawn.
     
    rayech likes this.
  29. Offline

    xboxhacks

    is it possible to add a difficulty on the mobs?
    Like Hard on one world and easy on another world?
     
  30. Offline

    bubbalooloo

    The plugin isn't despawning slimes. I am in a regular world and not a flatlands and it still spawn slimes. I have been able to disable creepers and cows so i know I have installed the plugin correctly

    Edit: Here is my config

    Code:
    //MobControl - Settings
    
    //Global Settings//
    DespawnCurrentMobs=true
    SendUserMessage=true
    
    //Peaceful Mobs//
    SpawnPigs=true
    SpawnCows=true
    SpawnChickens=true
    SpawnMooshrooms=true
    SpawnSheep=true
    SpawnSquid=true
    SpawnVillager=true
    
    //Passive Mobs//
    SpawnEnderman=true
    SpawnPigman=true
    
    //Tameable Mobs//
    SpawnWolf=true
    SpawnOcelot=true
    
    //Agressive Mobs//
    SpawnBlaze=true
    SpawnCaveSpider=true
    SpawnCreeper=true
    SpawnGhast=true
    SpawnMagmaCube=true
    SpawnSilverfish=true
    SpawnSkeleton=true
    SpawnSlime=false
    SpawnSpider=true
    SpawnZombie=true
    
    //Other Mobs//
    SpawnEnderDragon=true
    SpawnSnowGolem=true
    SpawnGiant=true
    SpawnIronGolem=true
    
    
     

Share This Page