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.
The %age chances of getting affected dont seem to be working for me. It either adds the effect (1) or not (0).
EDIT: I just figured out it has to be a decimal from the configuration link. Nevermind! x)
EDIT: Nevermind, it doesn't work even with decimal values.
@actionSD
I could definitely give it a shot.
Can you add the fire effect too? :D like when they get hit, they burn.
@codiaz
There is NO region support, this is a rather simple plugin. If you have them on in a specific world, they're on in the entire world. I will not make it so you can give your players effects with a command, this is just meant to target mobs.
@MistPhizzle
Ye I know but I was playing last a adventure map and there were some cool potions so I tried the ID of it and didn't get the same potion, so I'm looking for a plugin like this and a plugin so I can give someone a effect/potion of it. But when I download this is this for all mobs so if I put in config zombie : slow (idk how it works didn't try it out YET :D), all zombies get this effect in this world or only when I spawn one or in a region (Because I want to make a dungeon and give only them the effect and not all zombies in the whole world.
@codiaz
"Slow" will effect your walking / running speed whereas "Mining Fatigue" slows your mining down. Weakness is for fighting.
I'm not sure what you mean by commands, there are other plugins that will let you use a command to give yourself a potion effect. With this plugin, the mobs put the potion effects on you. You do not need to make any potions, if that is what you were alluding to. I hope this clears things up somewhat.
nooooooo way!!! I LOVE YOU AND ORION! I was looking for this plugin for like 1 month and than i went to orion page and was looking your plugins and found this! YOU ARE AMAZING! but is that slow effect affecting mining or your movement speed or fighting and can you make it possible so an commandblock can put these stuff on ya (so make commNds for admins) that would be great and I think I need to check another plugin for making/getting the potions or is that possible on this plugin?
@BrandonAest
Yes, the dodgechance can be any number between 1 and 100, can be changed in the config.
Question. Does the plugin let the server admins set a % chance for the effect to happen?
Like on attack a zombie would have X% chance to cause slow or something like that.
@MistPhizzle
When I restart or reload my server it seems that Mobeffects gets disabled completely until I run /mobeffects reload.
After restart, when mobs attack me they don't effect me until I do /mobeffects reload.
@Nickbbeezy
The plugin does start itself, it's just by default all of the effects are turned off, I could have a few default on, but by no means, would I ever want them all on.
@MistPhizzle
Is there a way to have the plugin start itself after server restarts?
@Maluzis
All effects are off by default. Once you turn them on you should be able to run /mobeffects reload and the ones you have on SHOULD work.
Now hunger works. There is still the problem with reloading. Plugin works only after reloading. Missing him something like auto-starter.
@Maluzis
I had accidentally deleted all Hunger code at some point in the past. Should work now :). Newest Dev Build can now be found on the Dev Build page seeing as I'm actively working on 1.5 now.
I found the problem. When you turn on the game server you must enter the command /mobeffects reload. Otherwise, the effects do not work. In addition, the effect of 'hunger' is not working.
@Maluzis
Try setting a DodgeChance to something higher than 0. The way the DodgeChance works is it generates a random number. If this number is less than whatever you have in your config, divided by 100, then it sets it to dodged. 0 / 100 is 0. It wont generate a number less than 0.
@MistPhizzle
Tested with all mobs (these from eggs). DodgeChange = 0, worlds: world (using only this). Effect in mob config filme = true. Hmm.. don't know what's wrong.
@Maluzis
Make sure in the 'config.yml' file, you have the world you want the effects to work in listed there. This could be why it isn't throwing an error. Effects WILL ONLY work in worlds that you listed in the config.
In addition to this, each mob has it's own .yml file (Ex: wither.yml). Simply set the ability to true and make sure the DodgeChance is less than 100.
Could you tell me which monster / effect you're having an issue with exactly? Maybe I can figure something out.
Thanks a lot! Now working fine for me. ;) One beer for this man, please!
Edit: Not working :/ The console did not show a problem. The configuration file has been downloaded normally. I set the selected effect to true, I filled the rest of the data, but in the game, nothing happens. No effects, no errors. Commands from this plugin work fine, but effect is not applied to the player.