Mobs
Anyone who has been active on the main forums in the last few days must surely have already heard the news.
I'm not going to comment on why and how, but the short version is that Bukkit is almost certainly not getting passed this.
Consequently, the future of BukkitDev is very uncertain. Even if the legal matters were resolved tomorrow there isn't really anybody left to deal with file submissions anyway. There's no indication about how long the site will stay up and what will happen to the files.
Anyway, while I will continue updating and developing my plugins you will need to look for updates somewhere else, namely the wiki. I will be updating this wiki in the next few days to facilitate better communication (forums, email, etc.) and adding any documentation that's missing. I will also, of course, be looking into porting the plugins over to whichever API emerges from the ashes!
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: coldntired
If you don't know what TF2 is, then start playing! It's free and fun!
Anyway, while I will continue updating and developing my plugins you will need to look for updates somewhere else, namely the wiki. I will be updating this wiki in the next few days to facilitate better communication (forums, email, etc.) and adding any documentation that's missing. I will also, of course, be looking into porting the plugins over to whichever API emerges from the ashes!
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
checkfornewerversion - 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. generatetemplates - 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. worldstoignore - 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.canreloadconfig permission, or to be an op.Update checking
If you like, you can set the plugin to check for any newer versions that get released. To do this use the checkfornewer_version option in the config file. This only works for release builds so you won't be bothered by any beta or dev builds. Note that no update will be downloaded even with this set.Tutorial
Start the tutorial 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 it 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: coldntired
If you don't know what TF2 is, then start playing! It's free and fun!
-
View User Profile
-
Send Message
Posted Mar 16, 2013@goflish
Put that in any event related to endermen (spawns, dies, etc.) and it should work.
-
View User Profile
-
Send Message
Posted Mar 15, 2013Can someone explain how I could make it so enderman don't drop ender pearls? That's really the only thing I'm trying to accomplish with this plugin.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@coldandtired
thanks, I see it now.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@goflish Dis you install Extra Events as well?
-
View User Profile
-
Send Message
Posted Mar 15, 2013I uploaded the jar file, restarted the server and the files did not create the mobs folder.
-
View User Profile
-
Send Message
Posted Mar 15, 2013This is.. BY FAR, one of the best plugins I have seen in a long time. Plugins are getting all the same. EX: "Oh look, another plugin where you can just heal yourself." You know, just the basics. There needs to be more plugins like this, where people put a new perspective to the game. This, does exactly that. I like customization and this allows all that, and I find it useful, fun, and creative! Thank you for this!
-
View User Profile
-
Send Message
Posted Mar 15, 2013@Thyrin Okay, done. http://dev.bukkit.org/server-mods/mobs/files/122-1-4-7-b3/
Fixed that error and made it so your previous example (mob="blaze, ghast") will work as well now.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@Thyrin Found and fixed; update coming soon.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@coldandtired
Aaah that makes much more sense now! Thank you!
Using the first bit of code you provided only spawns a blaze every single time, never a ghast. I tried using ratios and adding more mob entries but it seems to always pick the first one on the list. Either that or I'm just doing it wrong - I'll wait for you to update the documentation so I can verify :)
-
View User Profile
-
Send Message
Posted Mar 15, 2013@Thyrin While writing the code I decided to separate simple stuff from advanced stuff, but it seems when writing the docs I allowed some of the advanced stuff to creep in there!
The official way would be this
This is how the advanced stuff looks, with each entry giving you the choice of ratio or conditions (in this case they both get the ratio 1, so equal chance). Use <entry ratio="2" mob="ghast"/>, for example.
I'll get the advanced stuff written today but I'll also add to the plugin so your original way will work.
Regarding timers, I updated the Extra Events page last night, but if you mean from Mobs' end, they use the timer.txt file
If you have only one timer it's easy but if you have more you do this:
Of course, you can add extra conditions to each entry as well.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@coldandtired
I've been trying to do my random nether mob spawn thing again, and I can get them to spawn if I do:
But when I do:
it throws an error that entity BLAZE, GHAST is no enum constant, but on this page: http://coldandtired.binhoster.com/simple-conditions/ on the bottom it hints that I should use this syntax. What I am trying to do is make the plugin randomly spawn nether mobs, and if possible with ratios as well. What am I doing wrong? :)
Also, I was wondering what the Timings event syntax looks like. Thank you for your time on this plugin, I love the new config!
-
View User Profile
-
Send Message
Posted Mar 14, 2013Thx its perfect
-
View User Profile
-
Send Message
Posted Mar 14, 2013@oNcLe I changed it three times before I decided on the current format :(
I'm doing the condition list tonight, but for now you can see all the possibilities here.
The conditions you want are either if_x="-100 to 100" (and y and z) or if_blocks_from_spawn="above 100".
-
View User Profile
-
Send Message
Posted Mar 14, 2013A list of all possible conditions would be nice i dont know which conditions are available.
(I Want to check if a mob spawns inside a defined position: from x-100 to 100 y-100 to 100) (or range from spawn :D)
the hardest part for me is to figure out the conditions and actions a complete list would very very helpfull.
the new tutorials are good and easy to understand, and the plugin is not as nested as before it is a lot easier.
Considering that you changed the complete syntax of the event configfiles, its an awesome rewrite of your plugin.
I think more people will start using this now.
-
View User Profile
-
Send Message
Posted Mar 14, 2013@coldandtired
Thank you!
-
View User Profile
-
Send Message
Posted Mar 14, 2013@Thyrin Thanks for letting me know - I swear, with debugging/testing and documentation, the time I actually spend writing code is less than 10% of the total :(
The repeating events are now handled by Extra Events, with Mobs having a timer event which connects to them.
I'm about to update the Extra Events page but it basically looks like this:
with example being the name of the timer (accessible in Mobs with the if_timer condition, if necessary).
Extra Events took over the command related to timers (now renamed /timers or /t) but they're more or less the same as before.
-
View User Profile
-
Send Message
Posted Mar 14, 2013The Extra Events link on this page still links to an older version. It had me confused for a while :)
Also, I noticed there no longer is a 'repeating' event. Did this get dropped, or is there a replacement?
-
View User Profile
-
Send Message
Posted Mar 14, 2013A few more pages added to the tutorial - any feedback is welcome.
-
View User Profile
-
Send Message
Posted Mar 13, 2013@coldandtired
Thank you much
-
View User Profile
-
Send Message
Posted Mar 13, 2013@Oli1593 It's pretty much there.
What I did was move everything into an API so that every time Mobs is about to perform an action, or has performed an action, or checks a condition, an event is raised.
What this means is that anyone can write a plugin that subscribes to these events and logs them however it wants.
I will be writing such a plugin after I've got the documentation done but if you know how you can give it a go.