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 Feb 22, 20121.9.8 b4 is up - direct link
Important update!
Changes
-
View User Profile
-
Send Message
Posted Feb 22, 2012@watdidyusaey Both burn: no and spawn: no are working fine with and without conditions. The only issue, which I'm working on at the moment is regions with multiverse not being properly recognised.
There is currently no condition like you posted, but there will be soon.
-
View User Profile
-
Send Message
Posted Feb 22, 2012Does this plugin work?
I can't get a single "spawn:no unless with a condition of a player in a 20 block radius" to work at all, better yet I can't even get "spawn:no" working without any conditions. Also I can't get burn rules working either. I want all skeleton mobs to burn when there are no players in a 60 block radius, but skeletons still burn in the sun and won't burn regardless of player position.
Also anyway we can have a condition for "if number of mobs 10 blocks from the region is more than x"? So far there are no ways to control when mobs start deleting themselves when they're not in use causing massive server lag. I have 70 skeleton regions, but none of the conditions are being followed :(
-
View User Profile
-
Send Message
Posted Feb 21, 2012So. I'm trying to get this to work: I've got this as my mobs config and this as my Worldguard config. I keep getting this on startup.
After a /rm mobs recognizes that there are indeed the regions.
Also there's an issue that mobs are occasionally burning and others aren't.
Also this is with latest build of mobs.
EDIT: Seems like the player nearby condition isn't being registered though since skeletons are still spawning even when players aren't nearby.
-
View User Profile
-
Send Message
Posted Feb 21, 2012@dBi1K This should be fixed in b3. Also, the plugin won't recognise mobs with a hyphen so you need to change your config to cavespider instead of cave_spider, etc.
-
View User Profile
-
Send Message
Posted Feb 21, 20121.9.8 b3 is up - direct link
Fixes the error posted by dBi1K below and ticket #20.
-
View User Profile
-
Send Message
Posted Feb 21, 2012@coldandtired
coldandtired: Thanks, I appreciate the help. Here's some additional information if it helps.
With no other plugins loaded, I can run your version b2 for the first time so it generates a bare config. This still throws an error which is slightly different then my previous post (I think because it stops mobs). I pasted it below.
With this new config file, I can add just a single mob entry for the chicken (from my posted config) and it still gives the null error which is identical to what I posted before.
Also, I can run the previously posted config using version b1 and it loads fine.
Hope this helps. :-)
[Mobs] Loading Mobs v1.9 8 b2.
2012-02-21 13:09:38 [INFO] [Mobs] No config found - created!
2012-02-21 13:09:38 [INFO] [Mobs] No mobs found in the config - stopping!
2012-02-21 13:09:38 [SEVERE] Error occurred while enabling Mobs v1.9 8 b2 (Is it up to date?): Plugin attempted to register null while not enabled
org.bukkit.plugin.IllegalPluginAccessException Plugin attempted to register null while not enabled
at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:536)
at me.coldandtired.mobs.Main.onEnable(Main.java:97)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:199)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:182)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
-
View User Profile
-
Send Message
Posted Feb 21, 2012@ImaginativeMinecraft The tutorial should be pretty much up to date.
-
View User Profile
-
Send Message
Posted Feb 21, 2012@dBi1K I'll look into that tonight.
-
View User Profile
-
Send Message
Posted Feb 21, 2012@MysticRealms Something very odd with your WorldGuard - can you send me the startup log (from the time Mobs starts, not just the errors)?
-
View User Profile
-
Send Message
Posted Feb 21, 2012No luck on latest version. Console claims that "The world called mr has no region called (every region we have)" and it removes tons of "faulty auto_spawns" (it appears to remove every single spawn). Using same config as when we did our serious debug session :)
And your hair was just starting to grow back too!
-Your favorite plugin user
-
View User Profile
-
Send Message
Posted Feb 20, 2012Does anybody know were I can find a guide on how to set up the plugin?
-
View User Profile
-
Send Message
Posted Feb 20, 2012@coldandtired
coldandtired: Here is the config. Again, I hope it formats ok. :-)
spawn_interval: 600
auto_spawn_min_player_count: 1
debug_mode: no
overrule:
damaging: no
burning: no
spawning: no
targeting: no
exploding: no
enderman_moving_blocks: no
creating_portal: no
splitting: no
regrowing_wool: no
dying_wool: no
shearing: no
changing_block: no
taming: no
becoming_powered_creeper: no
becoming_pig_zombie: no
cave_spider:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [1]
if:
- condition_group:
world_names: [telthar]
- action:
replace_exp: no
replace_items: yes
will_drop:
- item:
names: [nothing]
- action:
replace_exp: no
replace_items: no
will_drop:
- item:
names: [spider_eye]
if:
- condition_group:
percent: [above 90]
chicken:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_items: yes
replace_exp: yes
will_drop:
- item:
names: [feather]
quantities: [2]
will_give_exp: [0]
cow:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_items: yes
replace_exp: yes
will_drop:
- item:
names: [leather]
quantities: [3]
- item:
names: [raw_beef]
quantities: [2]
will_give_exp: [0]
creeper:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [1]
if:
- condition_group:
world_names: [telthar]
- action:
replace_items: yes
replace_exp: no
will_drop:
- item:
names: [sulphur, glowstone_dust]
giant:
general:
auto_spawn:
- spawn_event:
manual: yes
where_to_spawn:
- location:
worlds: [test]
base: {x: 205, y: 65, z: 403}
range: {x: 10, y: 10, z: 10}
quantities: [1]
general:
hp: [20]
damages: [3]
shortcut: giant
- spawn_event:
where_to_spawn:
- location:
worlds: [telthar]
base: {x: -110, y: 64, z: 58}
range: {x: 5, y: 3, z: 5}
quantities: [1]
general:
hp: [20]
damages: [3]
shortcut: g1
spawn_rules:
death_rules:
pig:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_items: yes
replace_exp: yes
will_drop:
- item:
names: [pork]
will_give_exp: [0]
sheep:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_items: yes
replace_exp: yes
will_drop:
- item:
names: [pork]
will_give_exp: [0]
skeleton:
general:
auto_spawn:
spawn_rules:
burn_rules:
burn: no
unless:
- condition_group:
world_names: [telthar]
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
if:
- condition_group:
world_names: [telthar]
- action:
replace_exp: no
replace_items: yes
will_drop:
- item:
names: [arrow, arrow]
- action:
replace_exp: no
replace_items: no
will_drop:
- item:
names: [bone]
if:
- condition_group:
percent: [above 90]
slime:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
if:
- condition_group:
world_names: [telthar]
spider:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
if:
- condition_group:
world_names: [telthar]
- action:
replace_exp: no
replace_items: yes
will_drop:
- item:
names: [string]
- action:
replace_exp: no
replace_items: no
will_drop:
- item:
names: [spider_eye]
if:
- condition_group:
percent: [above 90]
squid:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
- action:
replace_exp: no
replace_items: yes
will_drop:
- item:
names: [nothing]
- action:
replace_exp: no
replace_items: no
will_drop:
- item:
names: [ink_sack]
if:
- condition_group:
percent: [above 50]
villager:
general:
auto_spawn:
spawn_rules:
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
wolf:
general:
auto_spawn:
- spawn_event:
manual: yes
where_to_spawn:
- location:
worlds: [test]
base: {x: 200, y: 68, z: 376}
range: {x: 40, y: 5, z: 40}
quantities: [4]
general:
hp: [10]
damages: [5]
angry: yes
shortcut: wolf
- spawn_event:
spawn_rules:
spawn: yes
where_to_spawn:
- location:
worlds: [telthar]
base: {x: -4, y: 65, z: 228}
range: {x: 5, y: 3, z: 5}
quantities: [5]
general:
hp: [10]
damages: [5]
angry: yes
shortcut: w1
- spawn_event:
spawn_rules:
spawn: yes
where_to_spawn:
- location:
worlds: [telthar]
base: {x: -313, y: 68, z: 3}
range: {x: 5, y: 3, z: 5}
quantities: [5]
general:
hp: [10]
damages: [5]
angry: yes
shortcut: w2
spawn_rules:
spawn: yes
death_rules:
zombie:
general:
auto_spawn:
- spawn_event:
manual: yes
where_to_spawn:
- location:
worlds: [telthar]
base: {x: -30, y: 68, z: 467}
range: {x: 10, y: 5, z: 10}
quantities: [20]
death_rules:
- action:
replace_exp: yes
will_give_exp: [2]
if:
- condition_group:
death_causes: [entity_attack, magic, poison, projectile]
general:
hp: [10]
damages: [5]
shortcut: za1
spawn_rules:
burn_rules:
burn: no
unless:
- condition_group:
world_names: [telthar]
death_rules:
- action:
replace_exp: yes
will_give_exp: [0]
if:
- condition_group:
world_names: [telthar]
-
View User Profile
-
Send Message
Posted Feb 20, 2012@dBi1K Can you post your config somewhere? I think I know what the issue is but would like to confirm.
-
View User Profile
-
Send Message
Posted Feb 20, 2012@coldandtired
coldandtired: Sorry, here's the whole log for Mobs on startup. I hope it formats ok when I paste it in here.... I'm running CB b1938 1.1-R4. I've tried running mobs as the only plugin and get the same error. Also, I can run the same config with Mobs v1.9.8.b1
[INFO] [Mobs] Loading Mobs v1.9 8 b2.
2012-02-20 10:32:55 [INFO] [Mobs] Tracked mobs:
2012-02-20 10:32:55 [INFO] [Mobs] chicken
2012-02-20 10:32:55 [INFO] [Mobs] cow
2012-02-20 10:32:55 [INFO] [Mobs] creeper
2012-02-20 10:32:55 [INFO] [Mobs] giant (custom auto_spawn)
2012-02-20 10:32:55 [INFO] [Mobs] pig
2012-02-20 10:32:55 [INFO] [Mobs] sheep
2012-02-20 10:32:55 [INFO] [Mobs] skeleton
2012-02-20 10:32:55 [INFO] [Mobs] slime
2012-02-20 10:32:55 [INFO] [Mobs] spider
2012-02-20 10:32:55 [INFO] [Mobs] squid
2012-02-20 10:32:55 [INFO] [Mobs] villager
2012-02-20 10:32:55 [INFO] [Mobs] wolf (custom auto_spawn)
2012-02-20 10:32:55 [INFO] [Mobs] zombie (custom auto_spawn)
2012-02-20 10:32:55 [SEVERE] Error occurred while enabling Mobs v1.9 8 b2 (Is it up to date?): null
java.lang.NullPointerException
at me.coldandtired.mobs.Main.setup_spawns(Main.java:336)
at me.coldandtired.mobs.Main.setup(Main.java:392)
at me.coldandtired.mobs.Main.onEnable(Main.java:94)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:199)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:182)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
-
View User Profile
-
Send Message
Posted Feb 20, 2012@dexyh1234 Not yet. I have a few more conditions planned, and I started adding world_x_count and area_x_count, which would be for any individual mob or player.
-
View User Profile
-
Send Message
Posted Feb 20, 2012@dBi1K I need to see more of the log than that :)
-
View User Profile
-
Send Message
Posted Feb 20, 2012Scrolling through the condition page I don't see an area_player_count kind of condition. Is that correct?
-
View User Profile
-
Send Message
Posted Feb 19, 2012@coldandtired
Great plugin.
-
View User Profile
-
Send Message
Posted Feb 19, 2012coldandtired: Your new build v1.9.8.b2 doesn't seem to be working. I keep getting the following error at server start-up.
[SEVERE] Error occurred while enabling Mobs v1.9 8 b2 (Is it up to date?): null
java.lang.NullPointerException