StackMob v2.2.9

An efficient plugin that enhances server performance by 'stacking' entities.

  1. antiPerson
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/Nathat23/StackMob-2
    Are mob farms lagging your Minecraft server? Or do you have a very big world? Then this plugin will try to help you!
    [​IMG]
    I decided to make this plugin after seeing a lot of the creature stacking / monster stacking plugins on SpigotMC are either paid (and overpriced), buggy or lack many features. StackMob aims to be a good, free alternative.
    Main features:
    • Spigot 1.12.x, 1.11.x, 1.10.x, 1.9.x and 1.8.x supported.
    • Customizable radius for creatures to be detected in.
    • Creature blacklist so not all creatures get stacked.
    • Checks to stop entities being stacked if they are tamed or leashed.
    • Option to have entities stack on a regular interval.
    • Setting for maximum stack size.
    • Option to prevent monsters from targeting.
    • 'Special' stack rules for specific mob types.
    • Support for different entity colors, ages, if sheep are sheared and various slime sizes.
    • Option to disable the tags above the creatures all together, when the stack hits a certain size or even when not hovered over.
    • 'kill-all' so when a stacked creature is killed, all of them are killed at once and the drops are multiplied with drop chances.
    • 'kill-step' same as kill-all, but is only a random amount at a time between two numbers in the config.
    • Entity display name translation support.
    • Multiplication of loot and experience for kill-all and kill-step.
    • mcMMO, MythicMobs 4.0.0 and WorldGuard 6.2 support.
    • Several advanced features, see the config below.
    Permissions:
    • stackmob.admin - Allows your players to do administrative tasks
    • stackmob.* - All of the above
    Commands:
    [​IMG]
    Videos:
    (both are in english, also from StackMob 1)


    Configuration:
    Code (YAML):

    # StackMob 2 created by antiPerson.
    # Report issues that you have experienced in the discussion thread.

    # The size of the area around an entity that should be checked for matching entities to stack with.
    check-area
    :
        x
    : 7
        y
    : 4
        z
    : 7

    # Everything related to the tag seen above entities
    tag
    :
       # The formatting of the tag.
        # Placeholders:
        # %size% - Stack size.
        # %type% - Formatted type name.
        # %bukkit_type% - The entity type as bukkit calls it.
        # Normal Minecraft color codes are also supported, by using '&' before the letter/number.
        format
    : '&d%size%x &6%type%'
        # Whether the tag above the entity should be seen at all times, or only when hovering over.
        always-visible
    : true
        # If the stack size if equal to or below this number, don't show the tag.
        remove-at
    : 1
        # Only show the name tag if the player is near the entity.
        show-player-nearby
    :
            enabled
    : true
            # Only display the tag to the player if the player is in this area of the entity.
            x
    : 10
            y
    : 3
            z
    : 10


     # Custom rules for specific entities.
    custom
    :
       # Example (remove hashtags to make this work):
        #PIG:
        #    stack-max: 25
        #    tag:
        #        format: '%size%x Piggy'
        #        always-visible: true
        #        remove-at: 1

    # The delay between each time the stacking task is ran (in ticks.)
    task-delay
    : 100
    # The maximum size a single stack can be.
    stack-max
    : 20
    # If bigger stacks should get priority when stacking on the task.
    big-priority
    : true
    # If the entity was spawned by these causes, then don't stack.
    # Reasons list can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
    no-stack-reasons
    :
       - ''
    # Don't stack if the entity is one of these types.
    # List of the bukkit names can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
    no-stack-types
    :
       - ''
    # If the entity is located in one of these worlds, then don't stack.
    no-stack-worlds
    :
       - ''
    # Don't stack until there are more than the number specified of entities of the same type in the check area set above.
    # Set to 0 to disable this feature.
    dont-stack-until
    : 5

    # Enables/disables the comparing of mob type specific attributes before stacking together.
    compare
    :
        villager-profession
    : true
        sheep-wool-sheared
    : true
        sheep-wool-color
    : true
        slime-size
    : true
        horse-color
    : true
        # Apply to more than one type of entity.
        entity-age
    : true
        can-breed
    : true
        # Only for 1.8.x and below.
        zombie-is-villager
    : true
        # Only 1.10.x and below.
        skeleton-type
    : true
        zombie-villager-profession
    : true
        # 1.11 and above.
        llama-color
    : true
        # 1.12 and above.
        parrot-color
    : true

    # Check these attributes before stacking.
    check
    :
        tamed
    : true
        leashed
    : true
        is-miniature-pet
    : true

    # Things that should be duplicated.
    multiply
    :
        # Make creeper explosions bigger
         creeper-explosion
    : true
         # Chicken lay eggs, so make more eggs be dropped
         chicken-eggs
    : true
         # When sheep are sheared, multiply all the wool.
         sheep-wool
    : false
         # Multiply mushrooms for all of the cows.
         mooshroom-mushrooms
    : false
         # Multiply the amount of small slimes spawned when a big slime is killed.
         small-slimes
    : true
         # When an entity is fed it's food, spawn a new stack with the correct number of children.
         breed
    : true

    # If the stack should split into more when these things happen.
    divide-on
    :
       # If sheep should split into serperate stacks when sheared.
        sheep-shear
    : true
        # If dying sheep should cause the stack to split.
        sheep-dye
    : true
        # When a mooshroom gets sheared, spilt the stack.
        mooshroom-shear
    : true
        # When a stack is fed it's food, spilt, so the stack can be bred.
        breed
    : true
        # When a player tames an entity.
        tame
    : true
        # When an entity it named using a nametag.
        name
    : true

    # Make every entity die in the stack on death.
    kill-all
    :
        enabled
    : false
        # DeathEvent reasons that shouldn't trigger kill-all.
        # List of bukkit names for death reasons can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
        reason-blacklist
    :
           - ''
        # Entity types that shouldn't trigger kill-all.
        type-blacklist
    :
           - ''

    # Only kill some of the stack
    kill-step
    :
        enabled
    : true
        # DeathEvent reasons that shouldn't trigger kill-step.
        # List of bukkit names for death reasons can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
        reason-blacklist
    :
           - ''
        # Entity types that shouldn't trigger kill-step.
        type-blacklist
    :
           - ''
        # The maximum amount by which the stack should decrease by.
        max-step
    : 5

    # Multiply the amount of drops depending on the size of the stack killed.
    # Only needed if kill-all OR kill-step is enabled above.
    multiply-drops
    :
        enabled
    : true
        # Item types that should be duplicated.
        # A list of materials can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
        drops-whitelist
    :
           - STRING
            - SULPHUR
            - ROTTEN_FLESH
            - BONE
            - BLAZE_ROD
            - GHAST_TEAR
            - ENDER_PEARL
            - MAGMA_CREAM
            - ARROW
            - SLIME_BALL
            - COOKED_BEEF
            - COOKED_CHICKEN
            - COOKED_MUTTON
            - COOKED_RABBIT
            - GRILLED_PORK
            - RAW_BEEF
            - RAW_CHICKEN
            - MUTTON
            - PORK
            - RABBIT
            - FEATHER
            - RED_MUSHROOM
            - LEATHER
            - RABBIT_FOOT
            - RABBIT_HIDE
            - NETHER_STAR
            - GLASS_BOTTLE
            - GLOWSTONE_DUST
            - REDSTONE
            - SPIDER_EYE
            - SUGAR
            - STICK
            - IRON_INGOT
            - GOLD_NUGGET
            - GOLD_INGOT
            - PRISMARINE_SHARD
            - EMERALD
        # Only drop one item per entity.
        drop-one-per
    :
           - EMERALD
            - NETHER_STAR
            - TOTEM

    # Multiplies the experience dropped on kill-all/kill-step.
    multiply-exp-enabled
    : true

    # Multiplies the damage that an entity gives to the player.
    multiply-damage-done
    : true

    # Multiplies the damage that the entities receives, if multiplied damage is more than the max health, remove stacks.
    multiply-damage-received
    :
        enabled
    : true
        # Blacklist of damage causes.
        cause-blacklist
    :
           - ''

    # Prevent entities from targeting players.
    # Like no-ai but the entities can move.
    no-targeting
    :
        enabled
    : false
        types-blacklist
    :
          - ''

    # Everything to do with mcMMO
    mcmmo
    :
       # Give no mcmmo experience
        no-experience
    :
            enabled
    : true
            # Blacklist of entity types that should still give mcmmo experience.
            blacklist
    :
               - ''
    mythicmobs
    :
       # If Mythicmobs should stack together
        enabled
    : true
        # MythicMob types that shouldn't stack, use the 'internal name'
        blacklist
    :
          - ''

    # If WorldGuard is installed, enable support for it.
    worldguard-support
    : true

     

    Developer API:
    There is new API in StackMob 2, since the whole plugin was re-coded.

    The code below can be used to create an instance of the EntityManager class which contains several useful things.
    Code (Text):
    StackMob sm = (StackMob) Bukkit.getPluginManager().getPlugin("StackMob");
    EntityManager em = new EntityManager(sm);


    bStats:

    If you don't want that your server sends data to bStats you can disable it by setting enabled to false in the bStats config file. The config can be found in the /plugins/bStats/config.yml file. bStats has nearly no effect on your server's performance and the sent data is completely anonymous so please consider twice if you really want to disable it. Seeing that lot's of servers are using their plugin can keep plugin authors motivated and some of the data can also be used to improve their plugins.

    Do you like this plugin? Please leave a review below - it helps a lot. Found a bug or have a suggestion? Post it in the discussion thread.
    Want to send a donation my way to help support the development of this plugin? Click here.

Recent Reviews

  1. MadWookie
    MadWookie
    5/5,
    Version: v69.69.69
    Best version of this plugin by far. 10/10 would recommend again.

    "Your review must be at least 80 characters. Using filler characters to bypass this limit will get you punished, please write a proper and constructive review." - Bleh
  2. Grizz
    Grizz
    5/5,
    Version: v69.69.69
    Dude, where is the promised version of v69.69.70? I have been waiting a decade for it! Nonetheless, great plugin and keep up the good work, but still have fun! ;)
  3. xFireblade
    xFireblade
    5/5,
    Version: v69.69.69
    Version 69.69.69 is working perfectly.

    Anyway- jokes aside, it’s a great plugin.
  4. jonnycp9
    jonnycp9
    5/5,
    Version: v2.2.8
    work for me on 1.12.2 and on other version /via version) now i have low lag for animals, server ip aroundcraft.com
  5. IHaxMC
    IHaxMC
    1/5,
    Version: v2.2.6
    doesnt work on 1.8 :(
  6. SomeonePIX
    SomeonePIX
    5/5,
    Version: v2.2.6
    Work PERFECT i fixed all i need i look around on config and currently the best stack plugin out there i hope you will add more Feature and do some optimization on anti lag way. And suggestion please make something called StackSpawner wich can be upgraded with EXP, money, spawner shop, and status Etc and most important we use MobHunting wich is great plugin using with this one and support it is great tnx
  7. EWS
    EWS
    5/5,
    Version: v2.2.6
    This is a great plugin, but seems no to be working properly with MythicMobs's VanillaMobs. I'm using it to change mob drops, and they're getting instantly killed and the loot is not multiplied (other mobs get killed 1 by 1)
  8. fabricio9898
    fabricio9898
    5/5,
    Version: v2.2.6
    I like to have 10k of mobs inside a very nice Parabens this plugin. Thanks Nice Plugin
  9. Beadle
    Beadle
    1/5,
    Version: v2.2.6
    Literally don't have "Kill All" enabled but the stack gets one shot, doesn't even give double loot. And each time it gives same error as this guy.
    VVVVVVVVV
  10. deanrnormandin
    deanrnormandin
    4/5,
    Version: v2.2.6
    [Error mesage. ] Could not pass event entitydeathevent to StackMob v2.2.6 org.bukkit.event.eventexceptopm:null