Introduction
Mobs gives you the ability to control almost every aspect of the mobs on your server, and a few other things on top.
The concept is simple - as your server is running, things are constantly happening. Players are mining, mobs are spawning, the sun is going down, it's starting to rain, etc.
Behind the scenes, CraftBukkit is sending messages to all interested plugins about these events. Player John broke a block of stone in world at location 55, 23, 137; A sheep died in world at location 209, 77, 22, etc. There are dozens of events, and thousands of these messages are sent every minute.
Most plugins listen for a few of these messages and act upon them. Mob-blocking plugins, for example, listen for new mobs spawning somwehere, and then look at the config to decide whether to allow or block the mob from spawning. Chat filtering plugins listen for the player is chatting messages and block/edit them according to the config.
Mobs listens for most (eventually all) of the mob-related messages, and a few extra ones, and gives you the option to block, allow, or alter the effect of the event.
However, it goes beyond that in that it allows you to use the event to perform one or more actions. So, while you may not want to interfere with creepers spawning, you can use this event to change the weather, set the time, drop an item somewhere, give someone some experience points, or as many of the dozens of possible actions that you want.
Additionally, it's possible to use conditions to filter the events you act upon. Want to give creepers a 1 in 1000 chance of taking out half your house when it explodes? Not a problem (except for the house).
Config.yml
check_for_newer_version - set to yes to allow the plugin to contact this site and see if there is a newer version available. Note that it onlys checks, and doesn't download anything.
generate_templates - set to yes to have the plugin create empty config files for every possible event. Alternatively, simply look up the names on the tutorial and create only the files you want.
worlds_to_ignore - a list of worlds in which the plugin will be effectively disabled, ignoring all events in those worlds.
allow_debug - set to yes to enable other plugins to access the event API (for logging, debugging, etc.)
Commands
There is one only command in the plugin, which is /reload_mobs, or /rm. The reloads the config without reloading the plugin itself.
Users need the mobs.can_reload_config permission, or to be an op.
Tutorial
Start the tutorial here or here to read up on how the plugin works
The tutorial for the old config can be downloaded from here for offline viewing.
Updates
Updates for all my plugins will be announced via Twitter, which you can find here.
Dependencies
Mobs has another plugin as a dependency called Extra Events. Read more about it here.
Make sure you install Extra Events as well otherwise you will get errors on startup!
Donate
Mobs takes a lot of time to maintain, so if your server is enriched by the plugin and you have some spare donations please consider sharing!
If you're penniless or like Mobs but not that much I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldandtired
If you don't know what TF2 is, then start playing! It's free and fun!
Facts
- Date created
- Dec 20, 2011
- Categories
- Last update
- May 15, 2013
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- Mobs
- Downloads
- 35,689
- Recent files

- Reply
- #2555
coldandtired May 18, 2013 at 17:45 UTC - 0 likes@RabbitLV: Go Not yet but I will be adding them.
- Reply
- #2554
RabbitLV May 17, 2013 at 19:59 UTC - 0 likesHey, I couldnt find information on tutorial site, so maybe you could help?
How can I make zombies or any other kind of monsters wear items, like leather armor and put him on some potion effects like speed or strenght?
Thanks for your time and support! =]
- Reply
- #2553
CosmicVoyager May 17, 2013 at 01:31 UTC - 0 likes<<reply 1496951>>
Yes the new config file is different. By default it says
<event/>
<!-- see coldandtired.binhoster.com to learn how to edit this file -->
and it requires fewer elements It does does require <outcome>.
http://www.excelsiorcraft.net/
- Reply
- #2552
JerryFord May 17, 2013 at 00:43 UTC - 0 likesI'll admit that sometimes I have tunnel vision which causes me to focus on the unnecessary, so I'm looking for clarity.
The downloaded version of the tutorial has an outcome item, but the online tutorial doesn't. Is the old config different from the (Im guessing) new config?
Would it be possible to link to a working txt files so that they can be dissected? I've always learned in reverse, so that might help me to understand how this works.
Please advise.
- Reply
- #2551
coldandtired May 16, 2013 at 09:59 UTC - 0 likes@CosmicVoyager: Go Timers are independent from Minecraft and the timer event is just caused by a message from Extra Events, like a heartbeat.
Consequently, there is no mob involved which means there can be no closest anything.
If you only have one dragon you can use random_ender_dragon and it will be found. Otherwise make sure you use an event that involves the dragon (approached, near, etc.)
For he other thing, it's most likely that the player is too far away to be used. I'll add something to increase the range.
- Reply
- #2550
dexyh1234 May 16, 2013 at 07:27 UTC - 0 likes@CosmicVoyager: Go
I think it actually changes per event. I find the targetsystem also quite confusing :| I'm not sure of how this works, but maybe try it with a different event.. For instance, try to make it shoot an arrow when you leave an area or something (just for testing purposes). I think it doesn't work because there is no closest_player to a timer event nor a closest ender_dragon.
Im just trying to help btw.. I could be completely wrong!
- Reply
- #2549
CosmicVoyager May 16, 2013 at 06:49 UTC - 0 likesList of all possible values for target and target prefix? I see "shearer", "player", and mobs. anything else? For prefixes I see "closest" and "random". Anything else?
- Reply
- #2548
CosmicVoyager May 16, 2013 at 06:27 UTC - 0 likesWhy doesn't this timer.txt work, please?
<event>
<action>
<entry action="shoot" projectile="largefireball" projectile_speed="5" projectile_target="closest_player" target="closest_ender_dragon" if_timer="dragon"/>
</action>
</event>
In Extra Events config, I have: timers: dragon: interval_in_seconds: 10 enabled: true world: world_the_end
- Reply
- #2544
coldandtired May 15, 2013 at 18:18 UTC - 0 likes@CosmicVoyager: Go player_in_area doesn't have a mob associated with it so you would need to set the target to a mob somehow. target="closest_ender_dragon", for example.
- Reply
- #2543
CosmicVoyager May 15, 2013 at 15:59 UTC - 0 likesFor a shoot action in player_in_area event, how do you specify which mob shoots? Any time player is in the End with a dragon, I want the dragon to shoot a fireball at a player about every 10 seconds.
player_in_area.txt
<event> <action>
<entry action="shoot" projectile="largefireball" projectile_speed="1" projectile_target="closest_player" mob="ender_dragon" if_area="world_the_end"/>
</action> </event>
This does not work either:
mob_in_area.txt
<event> <action>
<entry action="shoot" projectile="largefireball" projectile_speed="1" projectile_target="closest_player" if_mob="ender_dragon" if_area="world_the_end"/>
</action> </event>