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:
would you add a cooldown after each spawn?
thanks
In reply to resoluciones:
In reply to Scyntrus:
Now I want to have the commands in the inventory, so people won't have to remember the commands, and that cooldown plugin does not work for this case, I've tried around 5 o 6 more options, but no one seems to work.
So, after working for a lot of hours trying to find a solutions, I decided to ask you for that at here.
Let me know!
Thanks.
In reply to resoluciones:
In reply to Scyntrus:
java.lang.Throwable: Improperly detected double chunk add. Was not actually in this chunk.
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.Chunk.a(Chunk.java:651)
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.World.addEntity(World.java:1099)
[00:05:28] [Server thread/WARN]: at com.gmail.scyntrus.fmob.ChunkMobLoader.run(ChunkMobLoader.java:22)
[00:05:28] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_9_R2.scheduler.CraftTask.run(CraftTask.java:58)
[00:05:28] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_9_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352)
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:795)
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:403)
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:723)
[00:05:28] [Server thread/WARN]: at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:622)
Where did you get your jar? That error doesn't show up in any of the ones I use.
Selections are working perfect, you are a genius. The only thing (it's not too important) is that when you set/select 1, the pluginset/selects 0 (it's always one number below the selection).
The disguise setting IS working!
Is it possible that each faction chooses its own skin?
Also is it possible to disable that fm soldiers shows the armors? (so they just show the skins). I've been checking the lib disguise config but I don't want to do a mess with it.
Thank you!
I fixed the number offset thing.
Also added an option to not use armor.
However, having each faction choose its own skin might be a problem. The Lib's Disguise library is already somewhat flakey with loading use profiles, having each faction choose its own skin might create problems.
Nice!
Regarding having each faction choose its own skin, I can try it by my own risk if you wish and then I'll let you know how it works, in case it's OK with you.
Thank you very much!
@delsolsi213
It looks like I'm just using an old version of Metrics. Error should go away when I update it.
@Scyntrus
can you add paperspigot support?
using paperspigot 1.10.2 heres the error spamming console http://pastebin.com/KmFxi21h
MCPC/Cauldron is not supported since it is on Minecraft version 1.7. If they ever update to latest I'd consider supporting them.
@Scyntrus
Thank you so much for putting in towny support :)
Having epic nation battles
Such a good plugin
The default config.yml of the previous version had a capitalization error.
Please change "spiritbear" to "SpiritBear" in your config.yml.
@Synctrus - You are THE MAN dude. :) I appreciate this IMMENSELY. :)
@NightHavoc
I'm actually going to add the polar bears, I'm naming them Spirit Bears though. Unfortunately they can't wear armor.
I was ok with that, I understand you are content with it, I accepted that and can be too.. but then... POLAR BEARS!! Not even for POLAR BEARS?!?! :(((((( Imagine an armor polar bear defending faction lands.. it would be like something out of a movie or Volibear from league of legends lol.. the potential.. :O @Scyntrus If not, I completely understand and I apologize if another request after being told you wouldn't offended you, but it was unexpected that such a cool mob would EVER be added at least not at any point in the near future. Thank you again for taking the time to read this and still a wonderful plugin, thank you for the compatibility updates!
It's been brought to my attention that the latest update is not compatible with Spigot. If you are using Spigot, download the compatible version at https://www.spigotmc.org/resources/faction-mobs.15803/