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 Jan 16, 2013Heya Cold! Hope all is going well, the beta 21 testing is going great btw :) Just thought I would drop a message and say hey!
-
View User Profile
-
Send Message
Posted Jan 16, 2013@coldandtired
Why doesn't this work?
Here is dies.txt It is not healing the dragon. It seems to be healing the player after they die.
<event>
<outcome affected_mobs="player" affected_worlds="world137_the_end">
<action_group>
<actions>
<set_hp>
<target>
<mob>ender_dragon</mob>
</target>
<value>200</value>
<amount>+</amount>
</set_hp>
</actions>
</action_group>
</outcome>
</event>
-
View User Profile
-
Send Message
Posted Jan 16, 2013@CosmicVoyager Sorry, this week has been a nightmare for me and I have hardly been able to get near a computer let alone write anything! Hopefully back to normal now though.
Different targets and examples can be found here.
Affected worlds/mobs are explained here (scroll down a little).
-
View User Profile
-
Send Message
Posted Jan 16, 2013Hello. It is taking me days to write one little script because I need to ask so many questions and wait for answers to do it.
1- How do you perform an action on a different mob than the one that triggered the event?
2 - Also, how do you set two "affecteds"? How do you limit to a mob type *and* a world? Do you put a comma or space or what?
I am trying to make the Enderdragon heal when a player dies.
-
View User Profile
-
Send Message
Posted Jan 16, 2013@CosmicVoyager Can't believe that's not there! I know I've typed it before so it must have got lost somewhere :(
You can use any living entities from the official Bukkit names - http://jd.bukkit.org/apidocs/org/bukkit/entity/EntityType.html
Most are logical but they tend to use the internal Minecraft names which might not be the same as the commonly used names.
-
View User Profile
-
Send Message
Posted Jan 15, 2013Please improve documentation. This plugin is all about mobs, but there is not even a list of mob names. Having that is essential.
-
View User Profile
-
Send Message
Posted Jan 15, 2013@coldandtired
"The dies event works for players as well."
How, please? What is the mob name for a player?
I want to detect when any player in The End dies.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@Tehkiah Not yet. It is planned though now that the Bukkit API has added the necessary parts.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@medullaman Broadcasting a message is easy, but the delay/trolling thing is more difficult.
I did start adding something to make delays possible but I'm not sure if it ever got to a working state - I'll have a look through the code.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@CreepCraft For percentages or relative values you can do value:+/-/% (like the example below).
Armour isn't possible yet, although it's on the list.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@CosmicVoyager There's so much on my list left to do :)
You can also use %, so 5:%, 5:+%, etc.
The dies event works for players as well.
-
View User Profile
-
Send Message
Posted Jan 11, 2013I've been looking through the tutorial information and trying to skim through the comments here but I can't quite find any info. Have you added a way to spawn mobs with specific equipment or can I somehow have equipment drop for them to pick up when they spawn? Thanks! :D
-
View User Profile
-
Send Message
Posted Jan 10, 2013This mod seems very powerful and complex. I have a question I have been unable to find the answer to on my own so I will post it here hoping its not been duplicated elsewhere.
I would like to broadcast to the server any time someone discovers diamonds. I assume i will need to put the in the pick_up_item but i could not find how to write to condition to basically say if player picks up a diamond tell everyone. then some sort of delay to avoid spaming if they pick up several in a row and in a perfect world a way to tell between freshly mined diamonds and dropped diamonds to avoid players trolling each other with the same diamond over and over haha.
thanks ahead of time for any help you can provide.
-
View User Profile
-
Send Message
Posted Jan 10, 2013Hey! First of all, awesome plugin.
I was just wondering, right now I'm only trying to increase every monsters health and damage. Instead of checking and setting each monsters hp/damage individually, I was wondering if I could just use percentage or do something like +5? Something like this:
Would that work? I'm trying not to go all complicated here :P
Also, before I try and be disappointed, can you give monster armor with this plugin? (Don't tell me how, just if it's possible :P I'll figure it out myself :D )
-
View User Profile
-
Send Message
Posted Jan 9, 2013Is there an event for when a player dies? I want the dragon to gain health when a player dies. Thanks.
-
View User Profile
-
Send Message
Posted Jan 9, 2013@coldandtired
"As for dragons gaining back health, you could use the hour change event, for example, and add some health back to all dragons. <set_hp>5:+</set_hp> would add 5 HP back, for example."
That is what I needed to know. The set_hp description does not show that you can add and remove points like that. The description for Amount in subelements should include + and - there. Thanks.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@LeTruent You need to update Extra Events to the latest version.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@CosmicVoyager set_can_heal determines whether a mob can gain back HP. I don't really play Minecraft so I have no idea when and how mobs can heal themselves (I'm guessing it might be undead mobs and certain potions, but that's only from experience with other games).
However, it's in the Bukkit API so I added it.
As for dragons gaining back health, you could use the hour change event, for example, and add some health back to all dragons. <set_hp>5:+</set_hp> would add 5 HP back, for example.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@Flenix1 Damage can be set in the damages event, so it's calculated there and then.
Skins are more difficult. They could be set in the near event but that might get expensive. I'll have a look at persistence pretty soon.
-
View User Profile
-
Send Message
Posted Jan 7, 2013with the Beta21 : http://pastebin.com/raw.php?i=YPG3v7cR