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:
how can i choose a faction´s color?
Thanks dude
I just tryed this plugin, IT - IS - AWESOME ! I laughed so hard watching my pigs swordman killing every slimes in sigh xD But they don't kill the littles slimes (i supose it's because they are pasive).
I've some feature if you want some:
@OwClownfish
What version are you using? I know this bug existed in versions older than 1.81.
Hello,
Every time I place a mob in my faction area, and tp to an other spot, or fly away too far. All my mobs dissapear and only come backwhen I reload my server, is there anything I can do ?
@MarkiiIeJ
My plugin can't track how many mobs a specific person spawns because the mob becomes attached to the faction, not the specific person. If you're referring to the lack of a donation button... I'm not exactly sure why. Probably should add one.
@knightfallx66
I'm sorry for the inconvenience; this is the first time I've ever seen this error. I see in the code where it happens, but I have no idea why. Unfortunately, I doubt I'll be able to find a solution any time soon.
Hi there, I just received this error.
6:36:50 PM [INFO] [FactionMobs] Enabling FactionMobs v2.01_1.5.2R0.1 6:36:50 PM [SEVERE] [FactionMobs] [FactionMobs] [Fatal Error] Unable to register mobs 6:36:50 PM [INFO] [FactionMobs] Disabling FactionMobs v2.01_1.5.2R0.1
Running the current 2.01 version with the correct factions also.
Why dont you have one dude I swear I've been looking for a plugin like this because it's so much like the millenaire mod its not it but really close. Also if you play minecraft join my community I'll give you a rank for free if you want ip is myecraft.zapto.org more info: http://myecraft.enjin.com
@MarkiiIeJ
There's no way to limit how many mobs a single person can spawn, but you can limit how many mobs a faction can have.
Also, too bad I don't have any donation method, but thanks for the sentiment.
Also can there be like a limitation permission too, like the regular play in game can only spawn 1. -Thank you for your time and consideration
Thank you and when you do I'll definitely donate
@MarkiiIeJ
I'll add that in for next release, whenever that happens.
Is it possible to make it where different ranks can spawn different mobs using the permission fmob.spawn.titan , fmob.spawn.swordsman , fmob.spawn.mage , fmob.spawn.archer . If its not can you please add it, I will definitely donate to this. -Thank you for your time and consideration.
@jinglehimersmith
I don't understand what you mean.
@MrSerious808
This seems to be a problem with either your economy plugin or your mysql server. Unfortunately I can't do anything about it.
my factionmobs were working earlier, but now I get an internal error when trying to spawn another one. And this comes up in the server window:
/fm spawn swordsman 22:50:36 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'fm' in plugin FactionMobs v2.01_1.5.2R0.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523) at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:965) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:883) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840) at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.RuntimeException: java.sql.SQLException: [SQLITE_BUSY] The database file is locked (database is locked) at com.alta189.simplesave.sqlite.SQLiteDatabase.save(SQLiteDatabase.java:384) at com.alta189.simplesave.Database.save(Database.java:107) at com.greatmancode.craftconomy3.account.Account.withdraw(Account.java:270) at net.milkbowl.vault.economy.plugins.Economy_Craftconomy3.withdrawPlayer(Economy_Craftconomy3.java:304) at net.milkbowl.vault.economy.plugins.Economy_Craftconomy3.withdrawPlayer(Economy_Craftconomy3.java:128) at com.gmail.scyntrus.fmob.FmCommand.onCommand(FmCommand.java:179) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more Caused by: java.sql.SQLException: [SQLITE_BUSY] The database file is locked (database is locked) at org.sqlite.DB.newSQLException(DB.java:383) at org.sqlite.DB.newSQLException(DB.java:387) at org.sqlite.DB.execute(DB.java:339) at org.sqlite.DB.executeUpdate(DB.java:363) at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:85) at com.alta189.simplesave.sqlite.SQLiteDatabase.save(SQLiteDatabase.java:362) ... 21 more
How do I fix this?
would it be possible though to create a list for your mobs to attack that player? just wonderin thanks
@Typical_Name
The archer is considered a skeleton in the code. The swordsman is considered a pig zombie. I don't know if that plugin will affect mine, it depends on how they implement it.
Sorry for bugging you, but another thing just occurred to me:
Will these mobs be affected by other plugins that change mob attributes? For example, I use MonsterApocalypse, which gives zombies a bunch of cool abilities, like breaking down walls, and I can also make them stronger. Will FactionMobs be affected by a plugin that makes zombies stronger (since the mobs appear to be zombies), or are they considered separate from regular zombies?
@Typical_Name
I don't know of any plugin off the top of my head, but I'm sure its possible to set a player's faction when they join. Maybe make a plugin request in the forum. You'll also need to disable the "/f leave" command, which can be done via plugin.
@Scyntrus
The bandits are organized (or at least that was the impression I got from the plugin), and I figured it would be cool for different camps to fight each other like rival gangs.
Is there a way I can automatically sort players into the faction, without them having to do anything?