[MECH] LimitSpawns v1.11 - Stop mob spawns on certain blocks (leaves) [766]

Discussion in 'Inactive/Unsupported Plugins' started by lonelydime, Feb 17, 2011.

  1. Offline


    *You must run craftbukkit 339+ for this to work

    Version: v1.1​

    • Stops mobs from spawning on blocks specified in the config.yml file.
    • The lite version only stops them from spawning on leaves and tree trunks. It requires no config (more lightweight)
    Quick Links:
    • Upload the LimitSpawns.jar file into your plugins directory.
    • Upload the LimitSpawns/ folder into your plugins directory
    • Edit the config.yml file to disallow certain block spawns (default is leaves/trunks)
    Example Config:
    Show Spoiler

    # Keep the list seperated by commas. Only put the item ids in, not the names.
    no-spawn-blocks: '17,18,1,2,3,12,7,8,9,35,43,49,78,79,80,82,13,24,45,48,63,68'

    • Add mob types to configuration
    • Add multi-world support

    Version 1.11
    • Removed the Stupidly long constructor.
    Version 1.1
    • Added config file to allow user defined no-spawn blocks.
    • Branched tree/leaves code to lite version.
    Version 1.01
    • Added tree trunks to the list of non-spawning blocks. This will be the last version for the lite plugin version.
    Version 1.0
    • Public Release
    itsatacoshop247 likes this.
  2. Wow, nice one, didn't think you would actually make it! Very nice plugin, works like a charm :) Thank you very much!
  3. Offline


    Can you add tree trunks to the no spawn list? Some trees have exposed tree trunks on the top.
  4. Offline


    Yea, I'll add it in the next version.

    EDIT: Added
    --- merged: Feb 17, 2011 5:30 PM ---
    Was just waiting for the right hook to be added to bukkit :) Thanks the support!
  5. Epictacular :) I love this plugin. Now I don't need to worry about being ninja creeper'ed :D
  6. Offline


    Thanks, it works quite well.
  7. Offline


    Hello, thank you for this awesome plugin.

    But 15 minutes into the game, I got this error:

    [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException: -1
    at net.minecraft.server.ChunkCache.getTypeId(SourceFile:38)
    at net.minecraft.server.ChunkCache.getMaterial(SourceFile:103)
    at net.minecraft.server.Pathfinder.a(SourceFile:158)
    at net.minecraft.server.Pathfinder.a(SourceFile:120)
    at net.minecraft.server.Pathfinder.b(SourceFile:94)
    at net.minecraft.server.Pathfinder.a(SourceFile:64)
    at net.minecraft.server.Pathfinder.a(SourceFile:37)
    at net.minecraft.server.Pathfinder.a(SourceFile:22)
    at net.minecraft.server.World.a(World.java:1727)
    at net.minecraft.server.EntityCreature.d(EntityCreature.java:69)
    at net.minecraft.server.EntityLiving.o(EntityLiving.java:641)
    at net.minecraft.server.EntityMonster.o(EntityMonster.java:30)
    at net.minecraft.server.EntityLiving.b_(EntityLiving.java:226)
    at net.minecraft.server.EntityMonster.b_(EntityMonster.java:34)
    at net.minecraft.server.World.a(World.java:1104)
    at net.minecraft.server.WorldServer.a(WorldServer.java:57)
    at net.minecraft.server.World.f(World.java:1086)
    at net.minecraft.server.World.c(World.java:1063)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:313)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

    Any idea what went wrong?
    I'm using the latest CB, not sure which build.
    It says this in the MANIFEST file:
    Implementation-Version: git-Bukkit-hudson-dev-CraftBukkit-16

    And I blocked mob spawning on most blocks, except cobblestone and wood plank.

    Thank you.
  8. Offline


    Can you paste in your config file?
  9. Offline


    Here you go :)
    Basicly I don't want mobs to spawn unless I summon them.
    hence, this config.

    # Keep the list seperated by commas.  Only put the item ids in, not the names.
    no-spawn-blocks: '17,18,1,2,3,12,7,8,9,35,43,49,78,79,80,82,13,24,45,48,63,68'
  10. Offline


    Well from the look of the error something is trying to access an array that has no values. Yours definitely has values, for this plugin at least. It doesn't do it if this plugin isn't installed? I've been running your config for a good 20 minutes now and nothing is happening. Except of course, there's no mobs anywhere. What other plugins are you running?
  11. Offline


    Well, I did delete some plugins that requires SQL before I installed this and Lockette.
    If you couldn't recreate the errors, then I must've done something I shouldn't have done, but what I wonder?
    My plugins are:


    Anyway thank you, I'll try to remove LimitSpawn and see whether or not the problem still occurs.
    I'll let you know the result.
  12. Offline


    Me <3 you long time.
  13. Offline


    Works with new 1.3?
  14. Offline


    Heads up

    This plugin will not work after tonight :(
  15. Offline


    Good looking out, I've updated the files. It'll work :)
  16. Offline


    Hi, would it be possible to make this plugin disable mob spawners? I have been looking all around for a plugin to do that to disable people camping mobs like that. This is the closest I've gotten. Also, if I disable spawning on dirt, can mobs still spawn on grass? thanks
  17. Offline


    Mob spawners follow special rules and do not need a solid surface to spawn on. You could try disabling spawn on air as well as on mob spawners themselves.

    Grass and Dirt do not share item id, so disabling for one would not disable for the other.
  18. Offline


    @ThomasJ is correct, disabling mob spawners from spawning mobs can't be done from this plugin, unless you disable spawning on cobblestone/mossy cobblestone. That may work, but you can also try air like mentioned above. And he was right on with dirt/grass, they're 2 different things. Disabling spawn on one won't disable it on the other.
  19. If you forbid spawning on Air - wouldn't it be faster to just turn off Mob Spawning at all? :)
    Because - where should Mobs Spawn when not on Air? :)
  20. Offline


    It actually takes the block the spawn on top of, so while they're technically spawning in the space of 2 air, they're spawning on some form of block that's not air.
  21. Offline


    I just realized I only had my own spawner in my mind when I posted that reply, which is hanging in mid air with no ground nearby to spawn on :p Normally of course there would be mossy cobblestone as a ground for mobs to spawn on.

    So spawners are the exception to the normal spawn rules as they can spawn mobs without the need for a solid block to spawn on.

    Loving this plugin btw. Use it to keep creeps out of trees where they do not belong :)
  22. Offline


    Using the light version, really annoying when a creeper lands on your head when cutting down a tree, works a treat!
  23. Offline


    Glad you like it :)
  24. Offline


    Must-have Plugin! Especially because you can config it ;)
    By the way... it works across all worlds, doesn't it?
  25. Offline


    It should, there's no world specific code in there. In a future update I'll add world configs. Makes sense to have stuff like that :)
  26. Offline


    Can you update it? Or can you give me the link to another plugin who do the same thing ?
  27. Offline


    Is it broken? Seems fine to me
    This plugin is still supported and works with the latest recommended build.
  28. Offline

    Lunar Delta

    Doesn't work at all for me. Just used the butcher command to kill over 400 mobs, even though the plugin is active with no errors on the console.
  29. Offline


    Can you paste which version of the plugin you're using, if you're using lite or not and your config.yml file.
  30. Offline


    As I'm going over all my loaded plugins I noticed that there hasn't been any feedback here for a while.

    I just wanted to thank you for keeping this great plugin updated and let you know that I and my players really appreciate it :)

Share This Page