MobStacker 2.0.0F

Stack mobs in a highly efficient way to decrease server and FPS lag.

  1. KiwiFisher
    IMPORTANT: This plugin is no longer receiving updates and is known to be a bit buggy. MobStacker2 is a complete, premium, rebuild. It is up to date with the latest Spigot releases, works with PaperSpigot 1.8 - 1.10 and has mcMMO and WorldGuard integration. Please consider supporting my efforts and getting a really useful plugin out of it :D

    Now 1.7, 1.8 AND 1.9 compatible!

    NOTE: If you are using world guard on your server it MUST be the latest version or this plugin will break. If the plugin isn't working at all, check your world guard version.

    [​IMG]

    What is MobStacker?

    • MobStacker is a super simple but highly effective plugin designed to reduce lag both for the server and clients.

    • It works off the premise that lowering the number of entities in the area (Mobs, in this case), by stacking them all together, means less information for the server to keep track of, and also less entities for each client near the mobs to render.

    • This plugin is a must have for servers that have mob grinding as a core component of their server, as server performance is freed up so much. This allows for more players, more features, and of course, players' experience a better framerate while farming mobs.

    • Although the concept behind MobStacker is incredibly simple, the way this plugin has been made means the level of customisation and efficiency is unprecedented.

    FEATURES:
    • Mobs of the same type that spawn in close proximity stack together, and the quantity is displayed.

    • You can use the {QTY} and {TYPE} tag in the configs, along with standard colour codes to choose how stacked mobs names will be displayed.
    • Upon slaying the mob, the number of mobs in the stack will drop by 1, and drop full loot at XP as if a normal mob had been killed.

    • When only 1 mob is left, the name with the quantity vanishes, and it appears as a normal, unstacked mob.

    • If there are two stacks nearby and a mob is killed from one, both will combine. (If CUSTOM spawn method is left true in config)

    • Mobs will stack to other mobs who's path they cross after spawning within the time defined in the config. This is ideal for applications such as grinders where mobs may not necessarily spawn within the stacking range, but reach the other mobs soon after.

    • You are able to define a size around the mob in which it will look for other mobs to stack to in the config.

    • Set whether leashed mobs stack (Keep players horses safe).

    • Check whether the mob has a custom name (Keep players pets safe).

    • Keep animals separated by age (Adult or baby)

    • Stack management based off of death cause.

    • Option to have exploding creeper stacks have larger explosions.

    • Tamed pets can be protected in config.

    • Option to keep stacks separate based on colour (For sheep).

    • Option to have mobs stack downwards, and specify which mobs obey this rule.

    • Option to have whole stacks leash, or one at a time

    • Option to choose a max stack size for specified mobs.

    • Blacklist worlds form being affected by this plugin.

    • Have full stacks die at once from defined death reasons, AND drop loot for the whole stack.

    • Sheep are separated and restarted when they are shorn, so a whole stack can be shorn easily.

    • Stacks can be set to keep burning when one of the mobs in the stack dies by fire.

    • Ability to nerf mobs based on their spawn method (They won't fight back)

    • Set which spawn methods will not give mcMMO exp.

    • Define which stacks will be kept when chunks are unloaded or the server restarts.
    Keep up to date with development progress and help decide the new features! - https://trello.com/b/5X70oiSL/mobstacker

    This plugin is currently free despite the amount of time and effort I put in to it. I have put hundreds of hours in to this, so if you think it's worth a few dollars and have some spare cash, a small donation would be hugely appreciated <3


    [​IMG]


    Do you use MobStacker on your server and consider it quite popular? Flick me the IP address and I'll list it here as a server using this plugin! (Wooo for free advertising)

    Please keep feature requests and bug reports to the discussion page, NOT the reviews. The reviews section is solely for reviewing the plugin that is currently available, not for giving poor reviews to get my attention so I add a feature.


    [​IMG]

    Commands
    /mobstacker reload (mobstacker.reload) - Reloads the config
    /mobstacker toggle (mobstacker.toggle) - Toggles server wide whether mobs stack
    /mobstacker region <regionID> <true || false> (mobstacker.setregions) - Sets whether mobs stack in a world guard region.
    /mobstacker killall (mobstacker.killall) - Removes all stacks

    Update notice - mobstacker.update

    Default Config
    Code (YAML):

    # The naming layout for stacked mobs. Use the {QTY} and {TYPE} tags, along with normal colour codes to customise the in game display.
    stack-naming
    : '&e&l{QTY}X &6&l{TYPE}'

    # How far around the mob should the plugin check for mobs to stack to?
    stack-range
    :
        x
    : 5
        y
    : 2
        z
    : 5

    # How many seconds after a mob spawns should the plugin check for mobs to stack to?
    # The higher the number, the more work for the server to do. Keep this rather low. In SECONDS NOT TICKS.
    # Set to 0 to only try stack on spawn. Set to -1 to never stop trying to stack (Possibly lag inducive for larger number of mobs (1000+).
    seconds-to-try-stack
    : 5

    # If false, named mobs will not stack, meaning pets are protected.
    stack-custom-named-mobs
    : false

    # If false mobs will stack regardless of age (Baby or adult)
    stack-by-age
    : true

    # False means that animals on a leash will not stack.
    stack-leashed-aminals
    : false

    # Protect tamed animals from being stacked on?
    protect-tamed
    : true

    # If a stack of mobs fall off should the full stack die, or just one mob in the stack?
    # All damage causes can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
    kill-whole-stack-on-death
    :
        enable
    : true
        multiply-loot
    : true
        reasons
    :
         - FALL

    # If a creeper stack explodes, should the whole stack die?
    exploding-creeper-kills-stack
    : false

    # Should a creepers explosion be made larger if the full stack explodes? exploding-creeper-kills-stack: must be true for this to work.
    magnify-stack-explosion
    :
        enable
    : true
        max-creeper-explosion-size
    : 10

    # Should mobs always stack towards the ground? Useful for flying mobs, like blazes and ghasts.
    stack-mobs-down
    :
        enable
    : true
        mob-types
    :
           - BLAZE
            - GHAST

    # Should coloured mobs, like sheep, be stacked separately?
    separate-stacks-by-color
    : true

    # Upon leashing an entity, should the full stack be leashed, or just one?
    leash-whole-stack
    : false

    # Should sheep be separated based on whether they are shorn or not?
    separate-by-sheared
    : true

    # If a burning stack dies, should the remaining burn time for the previous mob be carried on to the next?
    carry-over-fire
    :
      enabled
    : true
      # If star-new-burn is true, it will be as if the next mob in the stack has been set on fire again, otherwise it will only burn for the remaining
      # time of the previous mob.
      start-new-burn
    : false

    # What should the max stack size be for certain mobs? If a mob isn't listed, the stack size isn't limied. Add Mobs as shown below to create a stack limit.
    max-stack-sizes
    :
        IRON_GOLEM
    : 10

    # List worlds that no mobs will ever stack in. Write ALL world names in ONLY lower case.
    blacklist-world
    :
       - example-world

    # For which spawn methods should mobs be nerfed?
    mob-nerfing
    :
       - SPAWNER

    # Mobs marked with true WILL attempt to stack. Mobs spawned by building (Golems and Wither) are a bit buggy, so it is suggested to leave them false.
    stack-mob-type
    :
        BAT
    : true
        BLAZE
    : true
        CAVE_SPIDER
    : true
        CHICKEN
    : true
        COW
    : true
        CREEPER
    : true
        ENDERMAN
    : true
        ENDERMITE
    : true
        GHAST
    : true
        GIANT
    : true
        GUARDIAN
    : true
        HORSE
    : true
        IRON_GOLEM
    : false
        MAGMA_CUBE
    : true
        MUSHROOM_COW
    : true
        OCELOT
    : true
        PIG
    : true
        PIG_ZOMBIE
    : true
        RABBIT
    : true
        SHEEP
    : true
        SILVERFISH
    : true
        SKELETON
    : true
        SLIME
    : true
        SNOWMAN
    : false
        SPIDER
    : true
        SQUID
    : true
        VILLAGER
    : true
        WITCH
    : true
        WITHER
    : false
        WOLF
    : true
        ZOMBIE
    : true

    # Spawn methods marked with true WILL attempt to stack. CUSTOM is mobs spawned by plugins - Including this one. Certain features require CUSTOM to be left true.
    # Plugin will still work if CUSTOM is set to false, jut not collecting stacks when another stack is killed nearby.
    # It is suggested to leave SLIME_SPLIT false due to duplication issues.
    stack-spawn-method
    :
        SPAWNER_EGG
    : true
        SPAWNER
    : true
        BREEDING
    : false
        BUILD_IRONGOLEM
    : false
        BUILD_SNOWMAN
    : false
        BUILD_WITHER
    : false
        CHUNK_GEN
    : false
        CURED
    : false
        CUSTOM
    : true
        DISPENSE_EGG
    : true
        EGG
    : true
        INFECTION
    : false
        JOCKEY
    : false
        LIGHTNING
    : false
        MOUNT
    : false
        NATURAL
    : false
        OCELOT_BABY
    : false
        SLIME_SPLIT
    : false
     
    Videos:

    Thanks to maxmar628 (@Maximiliano) for this video covering the plugin in spanish!


    If you have any questions or feature requests, don't be afraid to ask.

    If you guys like the plugin, a review and rating is always appreciated!

    SOURCE
    EnderGhost, Melioda51, LockX and 10 others like this.

Recent Reviews

  1. CakeArmy
    CakeArmy
    1/5,
    Version: 2.0.0F
    I had the premium version which has been deleted. Its unfortunate how many of the resources I used to use (and paid for) are no longer available to me.
  2. ItzExcqlibur
    ItzExcqlibur
    3/5,
    Version: 2.0.0F
    I like the stacker works. It decreased a lot of lag and make players easier to kill mobs with the function in the config file but the only reason I can't rate Excellent is the drops of the mobs after the first mobs has dead other can't drop the custom drop I set with the custom drop plugin so I hope you are going to deal with the problem as fast as possible! Good job!
  3. BIGTED
    BIGTED
    4/5,
    Version: 2.0.0F
    I love the plugin the only part i dont like is the carry over fire part does not work otherwise easy to configure great plugin
  4. Quizzyy
    Quizzyy
    3/5,
    Version: 2.0.0F
    my mobs stack, but they all die at once, any fixes? good plugin overall though... been using for a while
  5. MeliodasGamerYT
    MeliodasGamerYT
    3/5,
    Version: 2.0.0F
    Not bad, but not good either, this mobstacker does not kill all the mobs at once, and does not deliver mobs drops all at once. I'm going to increase to 5 stars and change the comment
  6. Dreinchou
    Dreinchou
    3/5,
    Version: 2.0.0F
    I wanted to ask if stacked chickens will give eggs like 1 chicken or like the number of the stacked chicken, overall, great plugin!
  7. JosephJoshua
    JosephJoshua
    3/5,
    Version: 2.0.0F
    Please add GHAST proportionate loot I really really need it. If you implement it i will give a rating of 5 star
  8. _KingCobra_
    _KingCobra_
    1/5,
    Version: 2.0.0F
    You leave a buggy resource to people who may not have enough to buy your "good" paid-for plugin. You don't help a single person here who are leaving reviews due to issues. Get your shit together, then I might up my rating. Unbelievable. You are better than this.
  9. LordDominic
    LordDominic
    2/5,
    Version: 2.0.0F
    kills whole stack even tho i have full stack on death set to false,
    will give 5 stars if issue is fixed
  10. Eloisito
    Eloisito
    5/5,
    Version: 2.0.0F
    Very Good plugin, This help my server to have less lags ! Conseillé aux francais comme au anglais ! :p