MobEffects
<<center>>
Spanish Video Tutorial<</center>
The video above was done by UltiByte. It is now the 'official' mob effects video.
What is MobEffects?
MobEffects is a new Bukkit plugin that allows a server admin to give certain effects to players upon being hit by a mob. This plugin is a constant work in progress, and is in it's early stages. It is stable enough for release and I haven't found any bugs. As time goes on, support for more mobs and effects will be added, however, at the time being, school is consuming a great deal of time and I'm working as hard as I can to get builds out ASAP.
All effects are configurable and turned off by default
What are 'Effects'?
As of now, an Effect is a Potion Effect. When a mob hits a player, an admin can have a certain potion effect linger on that player for a set amount of time and at a set potion level. Every bit of this plugin is configurable, so you can make your mob choices as specific as you want. Currently available effects are:
- Blindness
- Nausea
- Damage Resistance
- Fast Digging
- FireResistance
- Harm
- Hunger
- Strength
- Invisibility
- NightVision
- Wither
- Jump
- Poison
- Regeneration
- Slow
- Speed
- Water Breathing
- Weakness
A server admin can configure which one of these effects to activate when a player is hit by a specific mob, how long the effect will last, and how strong the effect is. By default, all effects are turned off, and the power is set to default (0). To edit, just open the mob.yml file for the mob you want to turn effects on / off for. You can edit the main config.yml to edit which worlds the mobs spawn in, or configure the update checker on / off.
Commands
Command | Alias | Description |
---|---|---|
/mobeffects | mobfx | Shows all of the arguments for the mobeffects command. |
/mobeffects reload | mobfx | Reloads all of the MobEffects configs. |
/mobeffects version | mobfx | Shows the version of MobEffects the server is running. |
Permissions
Permission Node | Description | Default |
---|---|---|
mobeffects.check | Checks if there is an available update on login and sends a message. | op |
mobeffects.version | Allows use of /mobeffects version | op |
mobeffects.reload | Allows use of /mobeffects reload | op |
FAQ
Q) Why are some Mobs missing? A) I am working as hard as I can to implement all of the mobs. Some mobs (ones that fire projectiles) are a bit harder to implement as they require a bit more code. As of now, most mobs are supported. The mobs that are not supported are being worked on.
Q) Effect X is not working? A) All effects are tested before being released. You probably have something configured incorrectly. If you are having issues, delete / backup your configs and let them regenerated. To regenerate your configs, you must either restart your server or run the /reload command.
Q) Add Y feature! A) Not a real question, but we'll go with it! I am open for feature suggestions. Open a ticket or leave a comment. If I like it, and it's doable, I'll add it to the plugin. Also, feel free to use the git repo and make a pull request if you know how to code.
Q) When is the next build coming out? A) I only release builds once I am satisfied with them, even dev builds. Dev Builds tend to be released every time there is a new feature available and it works. I would not release a dev build that breaks everything else. All builds are extensively tested before being pushed out to the public.
Contact
If you have any suggestions for this plugin, any bugs, etc, please use the Bukkit Ticket System. I will respond to those more frequently than the comments most likely. It helps me keep things organized. You may also feel free to email me at [email protected], or through Private Messages!
Code:
This project is available on GitHub. If you find something that needs fixing, feel free to make a pull request. If you're interested in continuing to develop the plugin, send me a PM and we can discuss adding you as a contributor. Click the image below to be taken to the Github Repo.
@MistPhizzle
Nice plugin, I get one error when starting up.. It says the plugins config cant be found, I fixed this by just deleting the config, don't know whats going on there :D
and explain to me what Plugin metrics is? Thanks!
@jonoce633
Great idea! I'll definitely look into it.
Consider adding chance! for ex, 50% zombie will poison you.
Hello!
I thought your plugin was really awesome, so I made a video about it :P http://www.youtube.com/watch?v=5auHUV1eLKc
Feel free to use it if you like :P
As I saw the description, look really nice!!! Gonna try that right now :D
Add some % chance to get that effect would be nice
@Bimmr
MultiWorld Support has been added. Pretty self explanatory in the config. Just download and run the newest Dev Build :)
@LordKainzo
I really do appreciate the insight you have given me on the plugin. If you're interested in assisting with development, feel free. Just fork the repo and have at it. I'll add you as a contributor or whatever. I'm fairly new (a month or two) when it comes to plugin development. This is my first release of this caliber, other than a general commands plugin I made a while back.
Just, let me know if interested.
Just giving you some insight from a long time vet ;)
@MistPhizzle
I do not think that it is my plugin alone (if at all) that is closing that. The classes listed don't ring a bell to me, I tried looking through my code and found nothing that may or may not have caused that issue.
As far as milliseconds go, I'll look into it... 1.2 is probably going to be a lot of feature changes with the addition of a couple more mob support.
Fair enough. Ticks is a very "rough" way to handle things. Not sure your exact reasoning but sometimes the scheduler can slow down on larger servers, thus making it much harder to correlate "real time" and "ticks" since with a 300 person server, you could have 10 TPS instead of the normal 20 TPS.
Miliseconds is generally best to use.
May not be your issue but im giving feedback.
http://pastie.org/4916638
@LordKainzo
The time is in ticks. Everything is detailed on the config page. I realized I didn't make it too straight forward.
Yah I was able to fix the plugin.yml issue pretty easy. Another quick question
Harm:
Enabled: false
Time: 500
Power: 0
Is Time: 500 - is that miliseconds or ticks? How is that calculated? :)
@LordKainzo
Redownload the Dev Build... I forgot to export the plugin.yml with the jar... I do this often believe it or not. The Dev Build was untested. I have tested it this time around, it works. Sorry for the inconvenience.
Also, if you look inside of the config, you will see some multiworld options. This does not do anything at the moment. i received this comment during mid-code. Multiworld is a WIP.
Testing latest dev -> http://pastie.org/4916487
@Bimmr
Right now it is open in all worlds. Thank you for that comment. I will work on adding in multiworld support ASAP. I'll send you a PM once it has been added and the DEV Build updated :)
Am i able to only enable this in one world?
@LordKainzo
Here we go: Compiled wit jre6: https://github.com/MistPhizzle/MobEffects/blob/master/Dev%20Build/MobEffects.jar?raw=true
That will work as a Dev Build for the next update. I'm creating a Dev Build page seeing as I've actually began work on the new build :)
@LordKainzo
I'll compile it to 6 anyway. Just to avoid any issues further on down the road. Good to know it wasn't an issue with Java7, I run Java7 myself and it works fine.
I'm having to re-download JDK6, then I'll get to compiling it that way. Shouldn't be too much longer :)
@MistPhizzle
You know... as I look into this, it seems that my test server (different machine) is on java 6. Sorry about that false report. Though I would like to test this on my test server - I'll just update to 7 when possible
@LordKainzo
Just checked, the project is compiled for jre7. It looks like an issue with the java versions. I'll recompile it to jre6 so it should work for everyone. New build should be up in about 10 minutes, I'll send you a PM when it's done.