Faction Mobs
Command a mob army to fight for your team
Want some guards to defend your territory? Faction Mobs allows you to spawn mobs aligned to your team! They'll attack enemy players and monsters! You can even order your mobs around. Make them follow you or patrol an area.
Supports:
- Factions (Including Factions UUID)
- Towny
- SimpleClans
- Kingdoms
- Feudal
Mob Types:
There are 5 mob types:Swordsman
- Sword wielding
- Base class: Skeleton with sword
- Archer
- Bow wielding
- Base class: Skeleton with bow
- Mage
- Potion throwing
- Base class: Witch
- Titan
- Base class: Iron Golem
- SpiritBear
- Base class: Polar Bear
The swordsman and archer will equip full leather armor dyed to a color of your choice.
You can modify mob attributes in the config, and you may disable them selectively if you wish.
If Lib's Disguises is used, the swordsman, archer, and mage will use player skins.
Behavior:
Your faction mobs will automatically categorize any units it meets as enemy, friendly, or neutral.
Players and faction mobs from enemy factions will be considered enemies. If set in the options, hostile mobs will also be considered enemies, with the exception of the creeper, which it will never attack. Players and faction mobs from your own and allied factions will be considered friendly. All other units are neutral.
Your faction mobs will automatically attack hostile units. It will defend itself when attacked by neutral units. It will never attack friendly units.
Note that the Mage and Archer have some rather bad aim, and may accidentally attack friendly units. You can prevent damage from friendly fire by setting noFriendlyFire to true in the config.
The config file contains many options to set various attributes to the mobs. Please look through it.
Additional Information:
- Mobs still use their original AI, just slightly modified. This means they will use the same movement patterns when attacking as they normally do.
- I used some of the obfuscated functions from Craftbukkit. This means that the plugin will only work for the version it was released for.
- The mobs are saved in file separate from the rest of the world. If you change the name of your world, the faction mobs will not transfer with it.
- If your server is prone to crashing, it is recommended you turn on the autoSave function in the config file.
- This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- The Factions version
- Note to other devs: Faction Mobs custom entities have "CustomEntity" and "FactionMob" metadata tags
Reporting a Bug:
- Server type and version
- "Factions" plugin and version
- FactionMobs version
- error.log file if relevant
- Steps to reproduce the problem
Fan-Made Tutorial Video:
@jinglehimersmith
You're right clicking mobs that you spawn yourself right?
@ripac99
Actually, could you upload your data file to pastebin or dropbox? I'm just wondering if something's up with it.
i cant right click mobs. do i need to update factions and faction mobs
@ripac99
I'm honestly not sure what is causing your problem. I uploaded v1.7 yesterday and added a check for this kind of thing, but I just don't see how it's possible to have a mob with no faction in my code. Quite puzzling.
@Scyntrus
I'm using Faction Mobs v. 1.6 beta with Craftbukkit 1.5.1 R0.1. When I enter the server it crash and I can't use it since the restart, when happens the same thing. If I delete the data file, the server start normally. I tried to spawn a mob, and it worked. I restarted the server and it was working. I spawned another mob and it crashed. When I restarted there were an error but it worked normally. At the third mob, he crashed again. How can I fix?
@ripac99
What version of my plugin are you using? I've encountered this error in previous versions but I thought I fixed it. What's happening is you have a faction mob with no faction associated with it. Usually, restarting the server should fix that. If that doesn't work, you'll have to delete the "plugins/FactionMobs/data.dat" file.
When a player connect to my server, I get an error and the server crash. This is the error:
@Mansonjr
My plugin requires Factions 1.6.9.4. It's not compatible with the dev version of Factions on Github. For some reason they renamed Relation to Rel.
Error when triying to spawn archers.
any servers where i can test it?
@Scyntrus
That would be great! Any way to make them spawn at specific coordinates would help tremendously with the project I'm working on.
Could you please make a 1.2.5 version for tekkit
@parrothead1337
There's no way to do that right now. I was thinking of adding a command that can be used by command blocks, so servers can set up their own kind of spawning system.
@Trydgis
I don't have enough information to tell you what's going wrong. It's possible my plugin is conflicting with one of your other ones. What happens if you try typing a command?
@Scyntrus
There are no error messages. I am using quite a few different plugins, including Factions.
Is there a way to make these mobs automatically spawn in faction-enabled areas without having to make players type out commands?
@Trydgis
Are there any error messages? What other plugins are you using?
@Oberdiah
There's already moveToPoint, why would you need go to coordinates?
I can't get this plugin to work either. I have the correct version, but it will not load .
Could you make a command, go to coordinates?
@dilphan
Right, I hadn't thought of that. I'll add that to the things to fix. The mobs really know how to hold a grudge eh?
just letting you know, there's a bug where the mobs will attack neutral players if provoked, that's fine, but the mobs will continually attack them forever if they come close, even if they join the faction the mobs belong to! we've tested it out on 5 separate occasions, if you'd like i can show you the bug. just PM me on here please and i can show you.
@jellyfr
It needs Factions.
btw, are you using the right version of my plugin?