Inactive [MECH] MobStats v.5.4.2 - Change the strength of mobs [1.4.6-R0.3]

Discussion in 'Inactive/Unsupported Plugins' started by gamerguy14, Oct 1, 2011.

  1. Offline

    gamerguy14

    [​IMG]
    version: 5.4.2

    MobStats makes the strength of mobs change! The further from the closest origin the mob is, the stronger it is. Mobs at an origin are too weak to survive, but get far enough away and they become so strong that they could kill a player in one shot.

    To set up the plugin, download the .jar and place it in your plugins folder. Start your server to create the config file. Open up the config and configure it. Reload your server. Insure that you have Vault in your plugin folder if you want to use the economy features. Run the command replaceall to make sure all mobs are proper and run it again if you encounter vanilla mobs that shouldn't be vanilla.

    Features:
    • Tells players what level zone they are in.
    • Commands to tell you where you are.
    • Will tell players what zone they are in even after teleporting and respawning.
    • Multi World support.
    • Configure the message for when a player enters a zone.
    • Configure messages sent when a player kills a mob.
    • Players can stop themselves from receiving messages for someone killing a mob.
    • Configure death messages.
    • Choose the origins.
    • Worlds can have more than one origin.
    • Equations to customize the zone size, mob damage, mob health, experience drops, and money.
    • Configure different item drops for different mobs in different zones.
    • Configure a max and min values.
    • Change the arrows that skeletons shoot.
    • Change the equipment that mobs have based on level and a weighted random.
    Commands:
    -zone - Tells the player what zone they are in.
    -ms <on or off> - Turns the messages for when someone kills a mob on and off.
    -replaceall - (for ops and the console only) Checks every entity in the game and replaces them if they aren't the right type to have a level.

    Config:

    NOTE: The level cap has been changed to being integrated with equations.

    message: This is the message that gets sent to a player when the player changes zones. When ever you type "-level" it will be replaced with the level of the zone. Type "false" or leave the area blank to turn off that message. This goes for all messages. Kill Message, and Death Message can also have -mob for the type of mob and -player for the name or the player and Kill Messages can also have -exp for the experience earned and -money for the money earned.

    origins: Type the name of each world to have origins for under the origins section then place a list of origins for each world by listing them with hyphens before each location. Type the

    location in the form of x,y,z or type spawn to be the world's spawn point.

    equations: There are 5 types of equations, zones which are the change in levels based on distance, damage which is the change in damage based on levels, health which is the change in health based on levels, experience or XP which is the change in experience drops based on levels, and Money is to set the amount of money to provide Players with for killing a mob of a certain level. Type what equation is to be set, then type the type of equation (Quadratic, QWD, QMD, Exponential, EWD, EMD). Type make a max area for a maximum value and a min area for a minimum value in each equation, excluding these will set the value to positive and negative infinity respectively.

    Types:
    - Quadratic: Values are a, b, c to be filled in the equation ax^2 + bx + c. Setting a to 0 makes a linear equation, c is the value when x is 0.
    - QWD: A Quadratic but the values for a, b, and c can have a d put next to them to multiply that value by the default value of what is being calculated.
    - QMD: A Quadratic that gets multiplied by the default value of what is being calculated after it has been calculated. Setup the same as a regular quadratic.
    - Exponential: Values ar a, b, c, d, f which are to be filled into a(b^(c(x - d))) + f.
    - EWD: The same as a QWD but using an exponential equation instead.
    - EMD: The same as a QMD but using an exponential equation instead.

    If equations make values too high then it can kill a player but instead of respawning, they go to limbo. They can't be damaged or damage other things.

    drops: Type a name for the drop that can be anything in the list under drops. Put a section in with the name of the drop which has a section for Mobs which is a list of mobs, a Start Zone section for the zone where it starts, an End Zone for the zone where it ends, the Odds which is a fraction to place the Odds for if the item is dropped, and Items which is a list of ItemStacks in the form of (item id(#)),(amount). No mobs will set it for all mobs, no Start Zone defaults to 0, no End Zone defaults to endless, and no odds, no denominator for odds or the numerator is larger than the denominator will default to the drop always being dropped. No items will ignore the drop.

    equipment: Equipment is the same as Drops except their names are listed under equipment. Also, when putting in items, a third number may be placed to say what equipment slot it is supposed to be in. With out a number, it i just placed based on its the order in which it is listed. If ArrowPro is used, the abbreviation of an arrow can be used to set it to a skeleton.

    affected mobs: Type a list of all the mobs that are to be affected by listing them one on top of the other with a hyphen before each mob. Leaving it blank will affect all mobs. By default there is a list of all mobs to be used for a reference. Erasing all these values will have no effect on which mobs are affected.

    Download: MobStats.jar
    Source: MobStatsSource
    ArrowPro: Forums, BukkitDev

    Changelog
    v.5.4.2
    - fixed problem where mobs wouldn't spawn from eggs.
    - removed the mandatory use of Vault.
    - added support for build 1.4.6-R0.3

    v.5.4.1
    - fixed problem where Endermen were replaced with Blazes.

    v.5.4
    - added custom mob equipment to the plugin.
    - changed the way mob names are displayed.
    - added support for build 1.4.5-R0.2

    Show Spoiler
    v.5.3
    - added maximums and minimums to equations.
    - added ability to customize the arrows that skeletons shoot.
    - removed level cap.
    - added support for build 1.3.2-R2.0

    v.5.2
    - added Kill Messages
    - added Death Messages
    - added command to make the plugin check all entities and replace them if it has to.
    - removed delay
    - edited what objects are used for mobs making the game run almost like it's vanilla minecraft with this plugin and increasing compatibility.
    - fixed bug where mobs would disappear before the death animation could finish.
    - added support for build 1.3.2-R0.1

    v.5.1
    - added serialization of stats.
    - added level cap
    - added delay between hits
    - fixed bug where mobs disappear when landing hits too quickly.
    - added support for build 1.3.1-R2.0

    v.5.0
    - added QWD equations
    - added QMD equations
    - added Exponential equations
    - added EWD equations
    - added EMD equations
    - added support for build 1.2.5-R3.0

    v.4.2
    - added support for giving money for killing a mob

    v.4.1.2
    - fixed bug ruining pvp attacks and entity on entity attacks

    v.4.1.1
    - fixed bug where health wasn't changing

    v.4.1
    - added custom drops

    v.4.0
    - changed config
    - added custom equations
    - added custom exp drops
    - fixed mobs not reacting to being hit
    - added support for build 1.2.5-R2.0

    v.3.0.1:
    - fixed config creation bug

    v.3.0
    - added the ability to change the origin
    - added the ability to have multiple origins
    - added the ability to configure all messages
    - added the ability to turn off messages
    - changed the way health is handled
    - removed level 0 and made level 1 bigger.
    - removed the ability to send ops and the console messages about players changing zones
    - some minor bug fixes
    - added support for build 1597

    v.2.0
    - added configuration file
    - added the configurable ability to message ops when players change zones
    - added the configurable ability to log to the console when a player changes zones.
    - made message configurable
    - made the size of each zone configurable

    v.1.1.2
    - added support for build 1337

    v.1.1.1
    - added support for build 1317

    v.1.1
    - added support for build 1240

    v.1.0
    - The first release of the plugin.
     
    nhoclesnar likes this.
  2. Offline

    RazorFlint

    Sounds cool. :D
     
  3. Offline

    gamerguy14

    I am reluctant to announce that MobStats is on BukkitDev. I didn't want to do this but it has been TEN days since I first submitted this plugin and I doubt a moderator or an admin has even looked at it. They have also announced that they are eliminating the current system. I will still check for comments here since I really prefer this way though. A long as this forum is here, I will be on it.
     
    MuttsNuts likes this.
  4. Offline

    Fiddy_percent

    Can you set up a config file for changing the size of the zones and perhaps instead of stating the zones it can be put in levels such as easy med hard and suicidal.
    I have a very large city (200x200) and it gets annoying after a while

    >_> and While Im being greedy with ideal it be cool to add an icomomy system that gives you more gold the harder the mobs are
     
  5. Offline

    gamerguy14

    What is wrong with it. The diagonals of a 200x200 square are 282.8427 long, which means that the highest level that you could have in your city is level 8. Level 8 is pretty weak. A level 8 mob deals 2 damage, and has 6 health.
     
  6. Offline

    Fiddy_percent

    its not so much the the mobs its the chat
    it gets to become like spam when your running around the city
     
  7. Offline

    gamerguy14

    sure I will make the config
     
  8. Offline

    gamerguy14

    well I am at it, should I make the message configurable?
     
  9. Offline

    Fiddy_percent

  10. Offline

    gamerguy14

    I noticed that I released a non functional version in the update. This because I was working on the update and didn't keep my old code. I will fix the problem soon.
     
  11. Offline

    MonsieurApple

  12. Offline

    Po1ntBlank

    Hi, i've been looking for a plugin like this for a long time, perfect for my new hardcore survival server. Is there any way you can make it so everywhere, all mobs have increased damage and health? not just by zones? I dont want every single mob one hit killing, but maybe instead of 2 heart damage for something, its now 4 hearts?
     
  13. Offline

    gamerguy14

    I don't get it, you just want damage and health of entities to be constant but configureable? It would be easier to just make another plugin that does this.

    Fixed the problems. Next time can someone please tell me that it was giving the error?

    If you are wondering what happened, I was working on version 2.0 when 1337 came out. As usual I like to update my plugins right away for the new build. I forgot that the code for MobStats was that of 2.0 and not 1.1(That .java files for 1.1 don't exist anymore) so I uploaded a buggy non-tested version.

    Sorry for the inconvenience.

    I found a bug and will be fixing it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  14. Offline

    Datas

    Think that you could add Support for multiple sphere orgins? For the Idea of having multiple cities that the further you get away from them the harder the monsters get?
     
  15. Offline

    iTz CHEEZ3

    Could you implement multiple points where they are weaker, like the spawn, so you could put them in the center of other towns and whatnot?
     
  16. Offline

    gamerguy14

    So you want the there to be multiple origins where the closest one is the one you use? This is easily done but you need to get the points that you want these to be at though because if you write the name of the place, the plugin won't recognize it(excluding the spawn).

    This is actually a good idea. You could put a point that is (x, 128, z) and it will eliminate the really weak zones because they would be to high up. At sea level the level you are at will be at least level 4 and the zones will change faster as you walk along the surface. This will also make underground mobs harder since they are automatically further from the origin and they change zones sooner.

    It is decided. This will be version 3.0!
     
  17. Offline

    Datas

    Great! This will add some color to exploring and add some pressure to make towns further from the spawn. And encourage localization arround those towns as well.:)
     
  18. Offline

    gamerguy14

    Reading this gave me an idea! I can make it so that there is an origin set around a certain block(configurable of course). This will take some more work and might not be featured until 4.0 though.
     
  19. Offline

    dmcone

    Can you add the feature to control the spawnrate of mobs?
     
  20. Offline

    gamerguy14

    That would have to be another plugin. This plugin doesn't spawn mobs, it just tracks the ones that are already there and the ones that do spawn. It isn't a good idea to mix plugins. That would also be a tough plugin to make because it can create a lot of memory.
     
  21. Offline

    fredypimp

    Hey, I noticed that in weak zones (like 1 to 10) mobs just stops spawning..
    it would be nice to make em spawn again :S because I got a pig farm.. where theres no pig..

    And maybe add the % of life/damage they have per level in the config file, so it would help for those that wants different rates without having to change the source.

    And to finish, I think it would be better to start the counter at 1, instead of 0.

    Hope it will help you get thig plugin even better than it is right now! :D
     
  22. Offline

    Po1ntBlank

    Would it really? Do you know anyone that can do this? I cant myself, and cannot seem to find a plugin that literally just doubles health and damage of mobs EVERYWHERE. :/ Any ideas?
     
  23. Offline

    gamerguy14

    I could do it. It would really just be a few lines of code.
     
  24. Offline

    Po1ntBlank

    Would you be so kind?
     
  25. Offline

    IrusVirus

    n1 Plugin but i want:
    • Edit the "teleport-message"
    • "message: false" = all messages are disabled
    • Edit the difficulty of the mobs in the zones
      (I was in zone 56 and zombies dies in 4-5 hits with a diamond sword... thats too easy! )
    Is this possible? ^^
     
  26. Offline

    cvxx7q

    I am getting this error on CB#1493 (shud probably poke at the other revisions to be sure its not just a build issue)

    12:22:51 [SEVERE] Could not pass event CREATURE_SPAWN to Mob Stats
    java.lang.IllegalArgumentException: Health must be between 0 and 16
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.setHealth(CraftLiving
    Entity.java:40)
    at mobstats.listeners.Entities.onCreatureSpawn(Entities.java:43)
    at org.bukkit.plugin.java.JavaPluginLoader$71.execute(JavaPluginLoader.j
    ava:756)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent
    (CraftEventFactory.java:242)
    at net.minecraft.server.World.addEntity(World.java:881)
    at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.ja
    va:129)
    at net.minecraft.server.World.doTick(World.java:1719)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  27. Offline

    IrusVirus

    What value stand there?
     
  28. Offline

    cvxx7q

    i dont know honestly, it might be the players for all i know XD

    the Zone Announcements work fine, but when u come across mobs they arent any stronger AFAIK

    will have to see what the Author Says..
     
  29. Offline

    varunax

    Will this ever be updated? It's a nice plugin.
     
  30. Offline

    gamerguy14

    Sorry that I have been gone for so long. I have been working on other things and I will fix it.

    I had an idea for the way that the strength and health of mobs is determined.

    The way I determine it is through an equation with the level. Here is how I do it(x is the level):

    damage: x/4
    health: 3x/4
    In each one I cast it as an int so it rounds down to an integer.

    What I was thinking is that I can make an equation and have the server admins decide the value. What I would like to ask everyone is what ind of equation do you want?

    Here are some examples(x is the level, all other letters can be changed in the config. ^ means an exponent):

    linear: mx + b
    exponential: a^x + b
    quadratic: ax^2 + bx + c
    cubic: ax^3 + bx^2 + cx + d
    People can recommend others.
    Use a graphing app or a graphing calculator to see the sort of way that you can manipulate levels.
    For linear, quadratic, cubic, the letter doesn't get multiplied by x is what it will equal at level 0. For exponential it will be b + 1 at level 0.

    Post what you want it to be and what ever is the most popular will be chosen. Also if you don't have anything new to say and just want to vote, like the post instead of posting more of the same thing.


    I figured it out. I don't know if this problem happened until the update. It is setting the health to either higher than it 16 or lower than 1, I will try to work around it.

    Please help me test the beta. I can fix it tomorrow if I get valuable feedback on all the problems.

    Beta fixes 1, and 2. 3 will be in 4.0.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016

Share This Page