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 Apr 02, 2012 at 09:42 UTC - 0 likes

    New version is out :) No new features yet, but it's cleaner and more efficient now.

    Last edited Apr 03, 2012 by acuddlyheadcrab

    BFAK:acuddlyheadcrab,69025,24979e35702d3179efaf2e88d23dcaa3549b47fde40b131b7e47fb4e42f09b77

  • Avatar of acuddlyheadcrab acuddlyheadcrab Apr 02, 2012 at 05:16 UTC - 0 likes

    @imilkywayz: Go

    Oh I didn't know that about CraftEntities. I actually should have used their eintity ID from the start, but i've been too busy to do an overhaul... until now :)

    But yeah, I chose to leave it in ticks because it does allow for the more specific delay. I've done that simple conversion in other plugins, but I just left it alone for this one. However, I think I might do a switch to parsing a double value.

    I mainly kept it in ticks to keep it consistent with the set/getTicksLived() method.

    Last edited Apr 02, 2012 by acuddlyheadcrab
  • Avatar of imilkywayz imilkywayz Apr 02, 2012 at 03:40 UTC - 0 likes

    Yeah I'm pretty sure that you don't need to use "Craft(mob)" since that causes the plugin to break on every update. Also you use in ticks, i looked at your source and it definitely is evident your skilled enough in java to know you can easy use a int in config then multiply it by 20 so that uses seconds instead of ticks, that means it can't check less then 1 second unless you use a double but why would you want it to check that often is not apparent to me.

    BFAK:Milkywayz,90595764,c5affb5976f2d1d863c1d7c56c1210c47884c5c0431b9fc301f9f98a6e906cda

  • Avatar of Dinastya Dinastya Mar 27, 2012 at 09:49 UTC - 0 likes

    @acuddlyheadcrab: Go

    Any eta when u will fix this plugin? it's really really useful and you shouldn't let this become inactive.

  • Avatar of ezbik ezbik Mar 20, 2012 at 04:54 UTC - 0 likes

    @acuddlyheadcrab: Go

    Cool, thanks for the reply :) Look forward to the next release.

  • Avatar of acuddlyheadcrab acuddlyheadcrab Mar 17, 2012 at 20:56 UTC - 0 likes

    The plugin is a little buggy right now. Well a lot. I will try to fix things ASAP, but i'm also working on a different major plugin, so I'll mainly try to give updates on whats going on.

    EDIT: If anyone's curious, I'm making the Minecraft Hunger Games plugin

    Last edited Mar 20, 2012 by acuddlyheadcrab
  • Avatar of acuddlyheadcrab acuddlyheadcrab Mar 17, 2012 at 20:53 UTC - 0 likes

    @ezbik: Go

    Yeah I've noticed that too. The whitelist just doesn't really work. I'll try to fix it soon.

    Oh also, that whitelist enabledfalse thing is a bug. I thought i removed it, but you can basically ignore it.

    Last edited Mar 17, 2012 by acuddlyheadcrab
  • Avatar of ezbik ezbik Mar 16, 2012 at 04:29 UTC - 0 likes

    Still can't get the whitelisting to work. Opped on server, and in the config file its set to Whitelist: true. In the whitelist file, Enabled: true. Only thing changed, Zombies and wolves do not despawn. When I check the config in the console, it tells me, Whitelist enabled: false , no matter how I try to set it, either via the configuration file itself, or the console commands (tried reloading it after too, no effect).

    23:16:20 [INFO] ezbik: Opping ezbik
    23:16:37 [INFO] [MobAge] Reloaded by ezbik
    >mobage config
    23:17:45 [INFO] MobAge config stats:
    23:17:45 [INFO]   Age Check Delay:  9
    23:17:45 [INFO]   Age Limit: 900
    23:17:45 [INFO]   Mob limit: 800
    23:17:45 [INFO]   Active radius: 85
    23:17:45 [INFO]   Whitelist enabled: false
    23:17:45 [INFO]   Debug: true
    >mobage setconfig Whitelist true
    23:17:56 [INFO] Set key "Whitelist" with the value: true
    >mobage config
    23:18:00 [INFO] MobAge config stats:
    23:18:00 [INFO]   Age Check Delay:  9
    23:18:00 [INFO]   Age Limit: 900
    23:18:00 [INFO]   Mob limit: 800
    23:18:00 [INFO]   Active radius: 85
    23:18:00 [INFO]   Whitelist enabled: false
    23:18:00 [INFO]   Debug: true
    

    Debug doesn't bring me back any information either, but when it starts, it seems to indicate whitelist is enabled, but it also has a second 'Whitelist enabledfalse' field?

    23:08:14 [INFO] [MobAge] Enabling MobAge v2.21
    23:08:14 [INFO] [MobAge] Age_Check Delay: 9
    23:08:14 [INFO] [MobAge] Age Limit: 900
    23:08:14 [INFO] [MobAge] Mob limit: 800
    23:08:14 [INFO] [MobAge] Inhabited radius: 85
    23:08:14 [INFO] [MobAge] Whitelist enabledfalse
    23:08:14 [INFO] [MobAge] Debug: true
    23:08:14 [INFO] [MobAge] Whitelist_Enabled: true
    23:08:14 [INFO] [MobAge] v2.21 - by acuddlyheadcrab - is enabled
    

    Any help would be appreciated!

  • Avatar of wesgeek wesgeek Mar 11, 2012 at 19:17 UTC - 0 likes

    @acuddlyheadcrab: Go

    Can Ocelots still be tamed with your plugin? I am not entirely clear as to the whole consequences of your not being able to add cats. Thanks.

  • Avatar of ezbik ezbik Mar 08, 2012 at 04:02 UTC - 0 likes

    @acuddlyheadcrab: Go

    I had tried the whitelist function, but it only seemed to spawn creepers and endermen at night when enabled. The only thing I changed in the whitelist was setting Zombies to not despawn, as a test. What I meant by a per mob age limit is probably what the whitelist should do; (i.e. Zombies don't despawn ever, but chickens do), but didn't seem to work. Other than that, it works great though!

Facts

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

Authors