MobAge

About the plugin:

MobAge

v2.4

tl;dr, MobAge gets rid of inactive mobs and animals, via a nifty Bukkit method... With options!


.

A summary

Have you been wanting to limit the number of mobs on your server? Have you been doing just that, but found that they all spread out and never despawn? Or maybe you just need mobs to spawn close to each player, and not just every where possible?
Well I hate selling my plugin like that, but MobAge is your plugin! :D
.
So anyways, MobAge is a plugin that is designed to remove stray mobs that are impossibru find. The plugin adds 'age' to each animal and monster on the server. If a mob is not interacted with, it gets 'older' and older until it de-spawns. The plugin also will limit the number of mobs you want on the server, allowing you to use mobs in a different way for RPG and Adventure servers.
.

Features:

  • Mobs only spawn within a configurable radius around one of any online players.
  • MobAge checks for old mobs every 10 server ticks by default (configurable)
  • ↑ Players, tamed mobs, and EnderDragons are exempt from this. They won't despawn.
  • The age limit is defined in the config by server ticks
  • A Mob's age can be reset if:
    • A player makes any movement within their chunk
    • The mob takes any damage
    • The mob is targeted, or targets something
    • The mob becomes tamed
    • The mob interacts with something
      As soon as their age is reset though, it starts adding up again.
      .

How to use:

Commands:
  • /mobage - view help
  • Permissions:
    • mobage.*
    • mobage.reload
    • mobage.config
Config:

If you're having trouble testing this, or it seems like it isn't working turn the Debug option on in the config! TIME FORMAT IS IN TICKS. 20 ticks= 1 second

How the config for MobAge works:

"Age check delay": This is how often the plugin should check for 'old' mobs to kill. 
      Be cautious with this. Small changes...
"Age limit": This is limit of age (in ticks) that a mob can have. 
      Remember that their age is reset via a number of ways
"Mob limit": How many mobs are allowed. 0 means no limit
"Active radius": This is the radius (in blocks) around each player that is considered "inhabited".

Download:

- http://dl.dropbox.com/u/39588938/MogAge.jarCurrent Development build
- Download page
- Original Request
.
.


_

_._._._._._acuddlyheadcrab's plugins
BBChatTags
MobAge
ChatWarn
GMforAll
MCHungerGames
Logo


_

Can this page be improved? Just comment like, "Improvements: I think blah blah, herp derp"

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of acuddlyheadcrab acuddlyheadcrab Mar 08, 2012 at 02:10 UTC - 0 likes

    @ezbik: Go

    Uh. I don't quite understand the example, but I know what you mean by per-mob age limit.

    I thought about adding that, but it seems a bit too extensive right? You can just turn off a mob's aging in the whitelist.

    But anyways, maybe i'll add that. Maybe not, we'll see.

    BFAK:acuddlyheadcrab,69025,24979e35702d3179efaf2e88d23dcaa3549b47fde40b131b7e47fb4e42f09b77

  • Avatar of ezbik ezbik Mar 07, 2012 at 23:44 UTC - 0 likes

    Trying this out now, could you add a per mob age limit option in the future? Maybe like:

    Mobs: [Zombie, Skeleton, Creeper] # Define certain creature, or multiple.

    (rest of config here)

    or

    Mobs: Passive # Passive for chickens, pigs, etc. Hostile for monsters

    (rest of config here)

  • Avatar of acuddlyheadcrab acuddlyheadcrab Mar 07, 2012 at 21:48 UTC - 0 likes

    Updated to the latest file!

  • Avatar of Dinastya Dinastya Mar 07, 2012 at 15:26 UTC - 0 likes

    Thanks!

  • Avatar of acuddlyheadcrab acuddlyheadcrab Mar 04, 2012 at 09:32 UTC - 0 likes

    New version soon that'll support Ocelots and Cats.

    EDIT: Cat's aren't added to bukkit yet. But I'll add them when the next Recommended build comes out (or whenever cats are added)

    Last edited Mar 04, 2012 by acuddlyheadcrab
  • Avatar of wesgeek wesgeek Feb 21, 2012 at 02:06 UTC - 0 likes

    @acuddlyheadcrab: Go

    Your welcome for the help. Thanks for the fixes.

  • Avatar of acuddlyheadcrab acuddlyheadcrab Feb 20, 2012 at 18:50 UTC - 0 likes

    @wesgeek: Go

    Yeah, they were meant to exempt from aging, but a small mistake made it so they aren't.
    _
    Here's the fixed version: MobAge v2.2_1
    Thanks for helping point out the bugs!

  • Avatar of wesgeek wesgeek Feb 20, 2012 at 14:32 UTC - 0 likes

    @acuddlyheadcrab: Go

    That's too bad. Would it still be possible to keep them from aging? My current goal with you plugin is to keep the passive mobs from despawning. Thanks again for the great plugin.

  • Avatar of acuddlyheadcrab acuddlyheadcrab Feb 20, 2012 at 08:23 UTC - 0 likes

    @wesgeek: Go

    Oh I forgot to mention it! Snowmen are not on the whitelist... There were limits with Bukkit could do, and Snowmen were unable to be blocked. I will look into this now that I just put it on my todo list, but for now, it's just Pigs and Monsters added... Sorry!

    Last edited Feb 20, 2012 by acuddlyheadcrab: Sorry...
  • Avatar of wesgeek wesgeek Feb 20, 2012 at 03:44 UTC - 0 likes

    @acuddlyheadcrab: Go

    New issue. The default white list is out of date. I discovered this while trying to figure out how to keep snowmen from despawning. What is the key I need to add to the white list to configure them? Thanks.

Facts

Date created
Dec 11, 2011
Categories
Last update
Apr 02, 2012
Development stage
Release
License
BSD License
Curse link
MobAge
Downloads
5,455
Recent files

Authors