Inactive [MECH] CrowdControl v0.0.3 - The creature control plugin [1.1R3]

Discussion in 'Inactive/Unsupported Plugins' started by WinSock, Jun 8, 2011.

  1. Offline

    WinSock

    CrowdControl - The creature control plugin.
    Version 0.0.3

    New Rewrite is out! Get it at:
    http://dev.bukkit.org/server-mods/crowdcontrol/
    Temp Download Link Below


    Yes it's back, the two plugins MobControl and CrowdControl have been merged now and I present to you on the behalf of the elBukkit team the new and improved CrowdControl! Features are still being added from both of the old plugins but i have decided that enough basic functionality is here to release it to the general public!

    If you're not familiar with JSON i recommend this online editor:
    http://jsoneditoronline.org/

    Todo/Issues

    Download

    Source

    Milestones

    Full Changelog
     
    11RJB and NathanWolf like this.
  2. Offline

    lemonzap

    On my server, in one of my worlds I changed its config and now no mobs will spawn naturally, also I want slimes to be able to spawn at any height, and im not sure I did that right. what is the highest spawn chance I can put in aswell. here's my config what did I mess up.
    Code:
    mobs:
        CHICKEN:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 4
            burnDay: false
            spawnChance: 0.9
        COW:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.9
        CREEPER:
            enabled: false
            nature:
                night: AGGRESSIVE
                day: AGGRESSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.7
        GHAST:
            enabled: false
            nature:
                night: AGGRESSIVE
                day: AGGRESSIVE
            damage:
                collision: 0
                misc: 5
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.7
        GIANT:
            enabled: true
            nature:
                night: AGGRESSIVE
                day: AGRESSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.9
        MONSTER:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 20
            burnDay: false
            spawnChance: 0.9
        PIG:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.9
        PIG_ZOMBIE:
            enabled: false
            nature:
                night: NEUTRAL
                day: NEUTRAL
            damage:
                collision: 5
                misc: 0
            targetDistance: 24
            health: 20
            burnDay: false
            spawnChance: 0.7
        SHEEP:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.9
        SKELETON:
            enabled: false
            nature:
                night: AGGRESSIVE
                day: AGGRESSIVE
            damage:
                collision: 0
                misc: 4
            targetDistance: 24
            health: 10
            burnDay: true
            spawnChance: 0.7
        SLIME:
            enabled: true
            nature:
                night: AGGRESSIVE
                day: AGGRESSIVE
            damage:
                collision: 4 # Slime damage is the arithmetic series 2n, n = slimeSize - 1
                misc: 0
            targetDistance: 24
            health: 1 # Slime health is the geometric series 3^n. n = slimeSize - 1
            burnDay: false
            spawnChance: 0.9
        SPIDER:
            enabled: false
            nature:
                night: AGGRESSIVE
                day: NEUTRAL
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.7
        SQUID:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 0
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: false
            spawnChance: 0.9
        ZOMBIE:
            enabled: false
            nature:
                night: AGGRESSIVE
                day: AGGRESSIVE
            damage:
                collision: 5
                misc: 0
            targetDistance: 24
            health: 10
            burnDay: true
            spawnChance: 0.7
        WOLF:
            enabled: true
            nature:
                night: PASSIVE
                day: PASSIVE
            damage:
                collision: 5
                misc: 0
            targetDistance: 24
            health: 20
            burnDay: false
            spawnChance: 0.6
    
    rules:
        CHICKEN:
            SpawnMaterialRule:
                Default:
                    material:
                        - GRASS
                    spawnable: true
            SpawnLightRule:
                Default:
                    min: 9
                    max: 15
        COW:
            SpawnMaterialRule:
                Default:
                    material:
                        - GRASS
                    spawnable: true
            SpawnLightRule:
                Default:
                    min: 9
                    max: 15
        CREEPER:
            SpawnLightRule:
                Default:
                    min: 0
                    max: 7
            SpawnMaterialRule:
                Default:
                    material:
                        - WATER
                        - STATIONARY_WATER
                        - LAVA
                        - STATIONARY_LAVA
                    spawnable: false
        GHAST:
        GIANT:
                SpawnLightRule:
                    Default:
                        min: 0
                        max: 20
                SpawnMaterialRule:
                    Default:
                        material:
                            - SPONGE
                    spawnable: true
        MONSTER:
                    SpawnLightRule:
                        Default:
                            min: 5
                            max: 20
                    SpawnMaterialRule:
                        Default:
                            material:
                                - IRON_BLOCK
                    spawnable: true
        PIG:
            SpawnMaterialRule:
                Default:
                    material:
                        - GRASS
                    spawnable: true
            SpawnLightRule:
                Default:
                    min: 9
                    max: 15
        PIG_ZOMBIE:
        SHEEP:
            SpawnMaterialRule:
                Default:
                    material:
                        - GRASS
                    spawnable: true
            SpawnLightRule:
                Default:
                    min: 9
                    max: 15
        SKELETON:
            SpawnLightRule:
                Default:
                    min: 0
                    max: 7
            SpawnMaterialRule:
                Default:
                    material:
                        - WATER
                        - STATIONARY_WATER
                        - LAVA
                        - STATIONARY_LAVA
                    spawnable: false
        SLIME:
            SpawnMaterialRule:
                Default:
                    material:
                        - LEAVES
                        - OBSIDIAN
                        - STONE
                        - SANDSTONE
                    spawnable: true
            SpawnHeightRule:
                Defualt:
                    max: 500
                    min: 0
        SPIDER:
            SpawnLightRule:
                Default:
                    min: 0
                    max: 7
            SpawnMaterialRule:
                Default:
                    material:
                        - WATER
                        - STATIONARY_WATER
                        - LAVA
                        - STATIONARY_LAVA
                    spawnable: false
        SQUID:
            SpawnMaterialRule:
                Default:
                    material:
                        - WATER
                        - STATIONARY_WATER
                    spawnable: true
        ZOMBIE:
            SpawnLightRule:
                Default:
                    min: 0
                    max: 7
            SpawnMaterialRule:
                Default:
                    material:
                        - WATER
                        - STATIONARY_WATER
                        - LAVA
                        - STATIONARY_LAVA
                    spawnable: false
        WOLF:
            SpawnMaterialRule:
                Default:
                    material:
                        - GRASS
                    spawnable: true
            SpawnLightRule:
                Default:
                    min: 9
                    max: 15
     
  3. Offline

    Moe041991

    @WinSock
    I put the jar in my plugins folder (I use a lot of plugins, iam not a beginner) and restart the server. Just nothing is happening. its not mentioned in console, neither it creates any folder.

    Using 953.
     
  4. Offline

    scout109

    I removed Regios from my server and the lag stopped
     
  5. Offline

    wassilij

    What you mean with Regios?
     
  6. Offline

    Moe041991

    tje plugin Regios
     
  7. Offline

    WinSock

    Did you install elRegions?

    Well you effectively disabled my plugin when you removed elRegions. It is required. And if your lagging you have to change maxPerChunk and maxPerWorld to lower numbers in config.yml.
     
  8. Offline

    Moe041991

    its working now for some reason. weird.

    Mine was lagging at the beginning because of a shitload of squids. Thats maybe a hint to other players why their server are lagging.

    @WinSock

    I have some questions concerning item names.
    I always used these: http://www.minecraftwiki.net/wiki/Data_values

    But apearently its not always the same name. F.E. if i enter "wood", stuf spawns on Wooden Plank.

    Is there any Item list you used? Can i use IDs?

    Sincerely

    PS:
    Code:
    2011-07-14 21:26:21 [WARNING] Task of 'CrowdControl' generated an exception
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    	at com.elbukkit.plugins.crowd.rules.SpawnMaterialRule.load(SpawnMaterialRule.java:64)
    	at com.elbukkit.plugins.crowd.RuleHandler.<init>(RuleHandler.java:66)
    	at com.elbukkit.plugins.crowd.CrowdControlPlugin.getRuleHandler(CrowdControlPlugin.java:211)
    	at com.elbukkit.plugins.crowd.creature.SpawnHandler.run(SpawnHandler.java:100)
    	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  9. Offline

    WinSock

    Right now it is only item names, i'll add item id's for next version.
    Here is a list of data types.
    https://github.com/elBukkit/CrowdControlPlugin/wiki/Data-Types
     
  10. Offline

    WinSock

    Tested build 1000, it works as expected.
     
  11. Offline

    Master_Rudik

    This is great! Exactly what I needed for the "creative" portion on the server, although using really minuscule spawn rates (i.e. .000001) doesn't have any difference over .01, and those Ghasts were definitely not passive...

    Otherwise, thanks! Keep up the good work!
     
  12. Offline

    WinSock

    I'll look into the spawn rate random number generator to see if there is a flaw. As for the ghasts i have fixed them in a new version release date TBD. I'm trying to do more testing rather than rapid fire updates like notch does :p
     
  13. Offline

    WinSock

    Opps just noticed this, if you haven't figured out just change PASSIVE to AGGRESSIVE or NEUTRAL and add some damage to them and it should work.
     
    morizuki likes this.
  14. I tried this and no mobs spawn unless a spawner is there. And I saw lemonguy report the same problem.
    And he reported it last version too. And has had no solution provided. So I can't use this plugin :(
     
  15. Offline

    WinSock

    If you can provide steps to reproduce i can come up with a fix. I cannot reproduce this error, and it is running on a live server 24/7 with 5+ players fine.
     
  16. It seems if you sleep and wake up the plugin fails to spawn mobs anymore!
     
  17. Offline

    WinSock

    Hmmm, i will have to test this, thanks for letting me know!
     
  18. Can you have this work with Angry Wolves so one can set a spawn rate for Hellhounds? (Amazing bit o' plug-in work there)
     
  19. Another thing i did notice: Does this plugin in any way configure Tamed Wolfs? Cause mine did not help me, they just walk but do not attack.
     
  20. Offline

    Darrk_Harris

    When I install this mod it does not generate any .yml files
    I have elregions installed.

    My host makes me install persistance when I install this if that means anything.
    I'd like help because this is the only plug in that can make ghasts and slimes friendly that I can find.
     
  21. Offline

    WinSock

    Tell your host that this plugin does NOT require persistence plugin any more. This plugin has been re written from scratch and it sounds like the host is using a very old version.

    I will look at that for the next plugin release.
     
  22. Offline

    Likwidface


    I am using CB 1000, using worldguard and worldedit. I can't really let worldguard down because of my spawn area on a pvp server, maybe there is a workaround if this is causing an issue.

    anyway, I have elregions installed, and this plugin installed as well. I have squid on any file that gives an option to be disabled, and yet there they are, in great numbers. It seems like anything I put in the config for this plug just doesn't happen in the game world (upon many reboots!).

    Maybe nospawn will work for me? I like how this plugin is way more dynamic, though, and would rather use this!
     
  23. Offline

    skadabedop

    The config.yml is creating some serious problems for me. I can't seem to tune it to get mobs to behave 'normally.'

    Being able to control the quantity and things are nice, but it seems all my mobs are retreating from the surface and just existing in caves after a while. I have one, maybe two spiders on the surface. I'm sure it's the quantity portion that's messing things up... as soon as I ramp it way up, the server starts spawning mobs at unnaturally high rates and very quickly brings both clients and the server down just from the load.
     
  24. Offline

    imaxorz

    Getting error spam and mobs are not spawning.

    This is on the new install and I used the provided templates for my different worlds.

    http://pastie.org/2302358
     
  25. Offline

    Worlther

    I'm getting this error. Fresh installation of plugin, config files generated by plugin, and not edited.

    Code:
    22:44:18 [SEVERE] Error occurred while enabling CrowdControl v0.27.04 (Is it up to date?): Health must be between 0 and 200
    java.lang.IllegalArgumentException: Health must be between 0 and 200
            at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:38)
            at com.elbukkit.plugins.crowd.creature.CrowdCreature.<init>(CrowdCreature.java:32)
            at com.elbukkit.plugins.crowd.CrowdControlPlugin.loadConfigFile(CrowdControlPlugin.java:310)
            at com.elbukkit.plugins.crowd.CrowdControlPlugin.onEnable(CrowdControlPlugin.java:377)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Craftbukkit: #1000
     
  26. Offline

    Haliotro

    This is a great mod and I've been using it since the start of my server. I really like being able to control what types of mobs can spawn, what light level, what kind of blocks they can spawn on, damage, health etc. It's all extremely useful on my hardcore survival server.

    I have one difficulty that I have never been able to resolve. When my server starts up, everything spawns as normal and the whole server runs smooth. However, as more and more time passes by, mobs spawn less and less. It's not that the mobs are all still alive, it's that they stop spawning. Do you think this has to do with the % Despawn not correctly removing mobs?

    Here's what I've done to try and resolve this:
    Test: Significantly increase max mobs per world. Effect: No measurable change.
    Test: Reduce max spawn distance. Effect: At least the mobs that do spawn are appropriately closer to the players.
    Test: //Butcher Effect: none (new mobs do not spawn)
    Test: Increasing / Decreasing the IdleDespawnChance Effect: none (at least none that were apparent)
    Test: Restart server Effect: works (mobs start spawning as normal again)

    So unfortunately, because mobs start to run out after about every 20 minutes, I have the server set to restart every 30 minutes so that mobs start spawning again. The players do not seem to like this, but so be it. I don't like this small problem however because as long as a player doesn't do something risky in the first 10 minutes, the last 20 minutes before each restart are fairly easy.

    I read about 4 pages of this thread and 3 of the original one. I've done quite a few google searches, and have not found solution. Have you experienced this or know why it's happening? Anything you can do to point me in the right direction would be immensely appreciated.

    Here's my config file:

    idleDespawn: 0.02 (I was on the default 0.05 for most of the time and had same problem)
    despawnDistance: 30 (it was originally at 120 and same problem)
    slimeSplit: true
    spiderRider: .15 (was at the default but still same problem)
    maxPerWorld: 1500 (I've had it at 600 for quite some time, but still same problem)
    minDistance: 14 (I've always had it either 14 or 16)
    maxPerChunk: 3 (I've tried it on 2 and I'm trying it on 4 right now, but so far, same problem)


    All normal mobs are enabled plus Zombie Pigmen.
    The block types that can be spawned on are very modified. My server is primarily desert and I set only Zombies and Skeletons to spawn on the sand blocks. Creepers, Spiders, etc. only spawn underground on different block types.

    All mobs are set to burn in daylight.

    I'm using CB 1000.

    Here are my plugins:
    AdminCmd
    Advanced Bans
    CrowdControl
    elRegions
    EmptyInventoryPlus
    godPowers
    HeroicDeath
    InstaBreak
    LoginQueue2
    LogOres
    MobDrops
    ModDamage
    ModDropPlugin
    NoCheat
    NoFarm
    NoSuffixedKill
    OpenInv
    P2Aliases
    Permissions
    PermissionsPlus
    PermissionsSQL
    RawCriticsOreObfuscation
    rTriggers
    SimpleRestart
    SpyerAdmin
    SpyerAdminCommands
    Stargate
    WorldEdit
    WorldGuard


    Thank you for your great work!
     
  27. Offline

    TheCamachoNater

    Where do I Place this? I tried In My Plugins Folder But It Would Gen a Config Folder
     
  28. Offline

    Astrum

    It says it in the error, you cant set health over 200. (on the first and second lines =3)

    Also Worldguard seems to be causing conflicts with this plugin, when its disabled mobs spawn fine, enable WG and both eating food and mobspawning goes weird.
     
  29. Offline

    WinSock

    Your config file is messed up as in you have a node on the same line as another.

    It wouldn't hurt to check your individual world config files for any weird errors, and I would mess with these nodes in config.yml, their effects seem to be pretty self explanatory. If you set the despawn distance really close than it will give the allusion of more mobs while preventing them from staying in caves for too long. But i think just some tweaking for the despawn chance of idle mobs would be your best bet.

    Code:
    idleDespawnChance:
    despawnDistance:
    
    Do you have elRegions installed, this plugin depends on it.

    Hmm i have heard WG conflicts from a few posts, I shall work it out though. I always had problems with the mobs not despawning in my code making my plugin think they are still alive when they are not.

    @Everyone Sorry for the lack of communication I was away shooting in USA Archery National Target tournament in Yakton SD

    @Haliotro also could you do
    Code:
    /crowd nuke "world" all
    when there seems to be no mobs and tell me the output please.

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

    Misoa

    im kinda dumb, so.. can this limit the amount of mobs that spawn? because in my server EVERYTHING is underwater, and there are like over 9000 squids that make it lag
    if this cant help my problem can i have a link to something that does?
     
  31. Offline

    WinSock

    If my plugin is working properly then yes it should, but people have been reporting weird things happening lately.
     

Share This Page