Mob Stacking mob-stacking
This feature allows mobs to stack, reducing lag and improving player experience.
Config
maxStackSize
The maximum amount of mobs in a single stack.
blacklisted-types
These types of mobs will NEVER stack.
stackedEntityName
The stacked entity name format.
Use {ENTITY_TYPE}
for the type of entity and {AMOUNT}
for the amount in the stack.
checkForNearbyStacksOnMerge
If set to true, this will check if two stacked entities are close to each other and merge them.
radiusX
radiusY
radiusZ
The radius in which a new mob will look for a stack.
onlyDropXpForPlayerKills
If XP should only be dropped when players DIRECTLY kill a mob.
spawn-amount
The amount of mobs that should spawn out of a spawner.
only-allow-looting-on-strict-player-attacks
If looting should only be applied when players directly attack an entity. E.g. Player 1 attacks entity and entity dies, they're rewarded. Player 2 attacks entity, entity falls from cliff, no looting is applied.
try-to-spawn-entities-x-times
How many times a spawner should look for a spawn location before giving up.
stack-from-other-spawn-reasons
A list of spawn reasons that will cause the entity from being stacked, outside of spawners.
allow-ai
These entities wont have their AI removed.
xp-levels
A list of entity & XP amounts to drop when an entity dies.
Formatted like ENTITY_TYPE:AMOUNT
.
kill-whole-stack-for-fall
If set to true, this will kill the entire stack if it died to fall damage.
kill-whole-stack-for-fire
If set to true, this will kill the entire stack if it died to fire damage.
dont-spawn-if-current-stack-is-full
If set to true and a spawner finds a full stack of mobs, this will cancel the spawn.
fast-grind-mobs
These mobs are handled differently than the others. Instead of actually letting the entity die, the entity death is spoofed to allow players with worse ping to still grind mobs quickly.
Warning
Some plugins might break when using this! Please do your own testing with this enabled.
blacklisted-worlds
Worlds in which stacking never occurs.
kill-whole-stack-for-suffocation
If set to true, this will kill the entire stack if it died to suffocation damage.
use-non-random-spawn-locations
If less random locations should be used for spawners.
spawn-range
The max distance mobs can spawn from with a spawner.
never-kill-whole-stack
A list of mobs in which the entire stack should never be killed instantly for any reason.
health
A section that maps entity type -> starting health for stacked mobs.
kill-all-task
Section
This section controls a 'cleanup' task that runs periodically. This task simply kills all stacked entities on the server.
killTaskEnabled
If the task should run at all.
killTaskInterval
How often, in seconds, that all entities should be killed.
exceptions
Entities that will NOT be cleared.
warnings
A list of time and message warnings that get sent out as the timer counts down.
drops
Section
A section that controls the mob drops for stacked and non-stacked entities.
Here's an example:
drops:
GUARDIAN:
NETHER_STAR:
min: 3
max: 5
APPLE: 1
commands:
- some command for {PLAYER} here:50.0
disable-looting: true
GUARDIAN
is the mob type, so this section only applied to guardians.
Both NETHER_STAR
and APPLE
tell the plugin how and what the guardian should drop.
commands
defines a list of commands formatted like command:chance
to run when a PLAYER kills the entity.
disable-looting
if looting should not be applied to this entity.
Command
/mob-stacking killall
- Kills all stacked entities immediately.
Permissions
- Base Level - Nothing.
- Admin Level - Admin commands.