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:
Faction Mobs v2.7.4 for CB 1.7.5 has been uploaded.
Update for CB 1.7.5 will be released after Factions updates.
@Exigopro
Can you explain exactly what command you used to spawn them and what permissions you have?
The mobs don't cost power and the maximum limit of mobs does not work on my server. Am I doing something wrong or is this a known bug?
@British89
I just tried running a server with spigot and I found the config file at /plugins/FactionMobs/config.yml. I'm not sure why it wouldn't be created.
Hiyah this plugin looks beautiful, It all works fine on my 1.7.2 R3 spigot server except the config file isn't being made? Its not in my plugin folder, its strange because everything in game is working as it should, i just need access to the config file to adjust a few settings, Any idea? Thanks.
@mike1360
I've already uploaded a fix yesterday but it's still waiting for approval.
Disbanding your faction with mobs still in it causes my server to crash
@Scyntrus
It did it again :3, I'll send you the crash logs in a PM. Hope it helps.
@McChickenPuncher
As of right now, you can use "/fm order selectall" to select all mobs on your faction on that world, and then "/fm order tphere" to then teleport them all to you, then you can decide what to do with each of them. Drop a lava bucket on them or whatever.
With the faction disband, it is possible that disbanding a faction may cause some exceptions, but nothing should crash your server, can you give me some more information about it?
Hi! Love the plugin, but there are a few things that i'd like to see added to this: A command to dismiss selected faction mobs(get rid of them) and for mobs a faction owns to be dismissed when a faction is disbanded (i believe the latter caused my server to crash, leading to a bit of downtime i needed to take to fix it). Both would be appriciated.
-McChickenPuncher, your new dark overlord :3
Wow! This is awesome, thanks! :)
@xXKeyleXx
I didn't know your pets had the MyPet metadata key, that will work.
@Scyntrus I don't know why you think that there is no way to figure out if a mob is a MyPet but that's not true. You can
As you can see I provided everything you need.
@Scyntrus
Citizens' sentries dont attack mypets, but attack other mobs. Not sure if sentry plugin supports mypet or vise versa.
Yeahh, but disabling attackMobs will make this plugin almost useless :(
@Redbu111
The only solution I can think of right now is to disable attackMobs in the config.yml. This is because the My Pet author did not give their mobs any metadata tag or any way for other plugins to differentiate between them and regular mobs, so it would be very difficult and inefficient for a plugin such as mine to figure out if a mob is a regular mob or a My Pet mob.
Please add mypet support, guardians kill mypet pets :(
Update: MCPC has finally released their 1.7 build, and it seems Faction Mobs should be compatible with MCPC as is. Factions 2.x might not be, but 1.6 should work. PM me if you have any issues.
@Hiddencloud
Did you rename or delete a faction? I've identified an error that could occur when a faction is renamed or deleted, I've fixed it in my development version that I should be uploading soon.
Hey, faction mobs crashed my server here's the log http://pastebin.com/C47zJndf.
Maybe you can take a look at it to improve the plugin, I use the older version of factions 1.6.*