Guard Dogs
This plugin allows players to create guard dogs from tamed dogs. These will attack other players and hostile mobs.
Features
- Easily create guard dogs from tamed dogs
- Guard dogs attack other players and hostile mobs in a radius of 15 blocks (except Creepers, as Minecraft dogs will never attack them no matter what)
- Have certain guard dogs ignore certain players
Installation
- Download the .jar and drop it in your server's plugins folder
- Start your server
- Done!
Usage
- To create a new guard dog, right click one of your tamed dogs with pumpkin seeds. Please make sure the guard dog is where you want it to be, as it will be sitting there, guarding that area (it can't follow you around).
- To disable one of your guard dogs, right click it with a stick. It will be converted back to a normal tamed dog.
- To make a guard dog ignore a player, first right click the dog with a gold nugget. Afterwards, type the name of the player you wish to ignore into the chat. (A guard dog will never attack its owner, obviously)
- To edit the mentioned items, see Commands & Permissions section below.
Commands & Permissions
As of version 0.6, you can change the items mentioned in the Usage section above using the following command: /guarddogs [type] [material].
[Type] means the item you wish to change, options are create (for guard dog creation), disable (for guard dog disabling) and ignore (to make a guard dog ignore a player). [Material] is the item you wish to use for the specified action.
This is not a numeric item ID like 352 for a bone, instead it would be BONE (yup, all caps). How to get these? Easiest way is via chat command: For all Minecraft server versions prior to 1.8, when typing /give [player] 352, the output would be "Gave [player] some 352 (BONE)". It's in the parenthesis. For Minecraft 1.8+, you would do /give [player] minecraft:bone, with output: "Given [Bone] * 1 to [player]". Take what's in brackets ("Bone", in this case) and put it in all caps, replacing spaces with underscores (they look like this: _ ) and you should be good to go (if it doen't work for some item, leave a comment below). If all else fails, I plan on putting a huge list of these non-numeric IDs on a subpage here sometime soon. Note that Metadata isn't supported at the moment (so no creating guard dogs with green wool, sorry)
To be able to use the /guarddogs command, you need the guarddogs.admin permission (server OPs have this permission by default). Users with this permission will also be notified of available update when they join the server.
Bugs, Errors, Feature Requests?
Cool! Please drop them by at my BitBucket issue tracker. Also, please look through the open issues before creating a new one, to make sure there are no duplicates.
Credits
Some code was copied over from ArchmageInc's skeleton which I stumbled across while searching for a plugin like this.
Metrics
This plugin uses Hidendra's PluginMetrics system, meaning that it will submit the following data to mcstats.org
- a unique server identifier
- the plugin and server versions, and whether your server is in online or offline mode
- the online player count
- your server's OS as well as the OS architecture (32-bit, 64-bit, ...) and the OS version
- your Java version
You can fully opt-out of metrics by changing "opt-out: false" to "opt-out: true" in your server's plugins/PluginMetrics/config.yml (note that this will disable sending metrics data for all plugins on your server)
TODOs and upcoming features
- Specal abilities for guard dogs (like extra strength or a possibility of setting an enemy on fire) if the dog is provided with the corresponding item
Thank you guys for more than 400 downloads!!
Completely non-functional. Generates loads of Java exceptions. The code is unmaintained and too old. Sadly, this plugin appears to be dead.
Wonderful plugin!
Can you make ocelots guards also?
Thank you!!!
@stormchaser206
Yes, guard dogs will stay at the location you created them, attacking hostile mobs in a 15-block radius (except for creepers, as vanilla dogs never attack them, and I haven't yet found a way to overgo that restriction). They will not follow you anywhere (they shouldn't do so, at least ;) )
Does this mod make guard dogs stay in one area instead of following the player around? Because I'm pretty sure vanilla wolves attack players and mobs. Like you could have a horde of them guarding a base and they just swarm in on this one creeper while you're thousands of blocks away?
I just uploaded version 0.6.5, a rather minor update to include Plugin Metrics (mcstats.org) and an automatic update checker. It is currently awaiting approval.
EDIT: The update was approved :)
@cc58c58
Concerning mcbbs.net: Yeah, why not. But what is mcbbs.net anyway? A chinese Minecraft forum?
Concerning pictures: Yes, I thought about pictures already, but I was quite busy coding, and school also eats up a lot of time currently. But pictures will be coming.
And i want to reprint it to mcbbs. Do you agree?
[www.mcbbs.net]
Why not add some pictures?
I have basically finished coding the update which will include configurable items. Tomorrow (it's already past 11pm here in Germany ;) ) I will test it thoroughly and then (hopefully) release it.
EDIT: I just uploaded the update allowing for change of items. It is currently awaiting approval.
EDIT 2: The Update was approved. I'm currently at school, but I will update the description and instructions in a few hours.
EDIT 3 (yes, I like edits): All is done. Happy item configuring!
@sama2010
1. Good idea, was thinking about something like that already, but wasn't sure whether it was necessary
2. Wow. Will take a moment to do that, but definitely good proposals! (Would never have thought of that myself :) )
1.can u add a config for the item required to turn a tamed wolf into a guard dog and to turn a guard dog back to a tamed wolf?
2. can u add a something to make the dog stronger? ex. right click with diamond to make dog have +0.5 hearts of damage. max 2 diamonds. AND. right click with blaze powder to add a 10% chance for the dog to ignite his enemy on fire, max of 6 blaze powder. right click with ender peral to allow dog to teleport back to its home poisiton when its low on health. no max, ender peal gets used every time he teleports back.