Sentry for Citizens2
![]() | ![]() |
|---|
Sentry is a character plugin for the NPC plugin Citizens2. With Sentry, NPC's can be set to guard areas or act as bodyguards. Hostile targeting, retaliation, and a variety of options and stats allow a Sentry NPC to be customized to almost any guarding or combat situation.
Features
Sentries Can:
- Attack monsters, players, and groups automatically. Sentry also has built-in support for Factions, Towny, War and SimpleClans
- Kill, and be killed by, players, monsters, and the environment.
- Guard locations, paths, players, or other NPCs.
- Use ranged or melee weapons. Shoot arrows, fireballs, snowballs, eggs, lightning, and potions with deadly accuracy.
- Be configured with stats such as Strength, Health, Armor, Speed, Range and even Night Vision!
- Ride mounts!
- Work with Denizen to become Bosses and Quest NPCs that run scripts upon death.
Installation
- Install Citizens2 You must use the correct version for your version of Bukkit
- Download the correct Sentry from the Citizens Wiki. You must use the correct version for your version of Bukkit
- Place Sentry.jar in your minecraft /plugins/ directory. Start your server.
- Create a NPC with Citizens and give it the 'sentry' trait.
/npc create Town Guard --trait sentry
- Customize your Sentry's stats and options and you're ready to go.
A full list of commands and options is available on the Citizens 2 Wiki
Configuration
Sentry makes a config.yml in the plugins/Sentry folder on first load. Use this to tailor Sentry to your server. You can:
- Set defaults for new sentries
- Change or disable the item used for various attack types
- Add potion effects like slow or blindness to certain Sentry weapons.
- Add armor, strength and speed buffs to armor and weapons for Sentries.
- Set critical hit chances and messages.
The config.yml is commented with instructions.
![]()


-
View User Profile
-
Send Message
Posted Sep 13, 2013Why is this happening? This happened when I upgraded to 1.6.2. Any help is greatly appreciated. Thanks in advanced!
Click here for pastebin details
-
View User Profile
-
Send Message
Posted Sep 10, 2013@Daisy_Power@Daisy_Power
It works like a charm ! Thank you very much my undead minions will be taken seriously when plowing the other players.
-
View User Profile
-
Send Message
Posted Sep 10, 2013@shanrider <<reply 1762940>>
I would like to know this as well. I have tried multiple ways of specifying a color or style for horse npcs and none seem to work.
*edit I think I've figured it out and it was in the /npc help 6 page at the bottom, so I feel kinda dumb now.
First - Create the Npc horse /npc create Bones --type Horse
Next - With the Npc selected, alter the color, style, type of horse with the following format:
/npc horse (--color color) (--type type) (--style style) (-cb)
Using this format, I entered this to get a black horse:
/npc horse --color black
And this to get a skelly horse:
/npc horse --type skeleton
-
View User Profile
-
Send Message
Posted Sep 9, 2013@contributecraft
you can type '/npc select' then '/npc equip' then get the items and right click on the sentry and they should equip the items in your hand then after your done just type '/npc equip' again to exit out and the npc can have any armor wepons etc. i did it on mine and they worked just fine... idk what people are reporting bugs because on my server they run just fine even on there paths and everything
-
View User Profile
-
Send Message
Posted Sep 9, 2013@contributecraft
sentry damage is configured via '/sentry strength X'
The item names are in the bukkit Material enum http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
-
View User Profile
-
Send Message
Posted Sep 7, 2013When my sentry attacks it only does 1/2 heart damage to players, though i gave it and iron sword and configured it to take more hearts. anyone know what the problem might be?
Also.. anyone know where a list of item names we can use to give sentries is? example: IRON_SWORD, DIAMOND_CHESTPLATE, etc... for instance, is a wooden sword WOODEN_SWORD, WOOD_SWORD or what?
-
View User Profile
-
Send Message
Posted Sep 7, 2013Is there a chart out there with the proper number/syntax to use for the horse modifiers ? (/npc horse (
color color) etc...)I have been desperately trying to give my sentries a black horse or a skeleton horse as a mount for a few days but I cannot find any help on internet ! A guide on that would be extremely useful !
-
View User Profile
-
Send Message
Posted Sep 7, 2013There are just too many problems with Sentry, that make it practically useless for my purposes. From npcs being drawn in the wrong place, to sentries randmly teleporting and falling through floors, to archers being physically incapable of hitting anything behind even a 1 block high obsticle, and more.
I really want to use this on my server, so I'll check back to see if any of these critical errors ever get resolved.
-
View User Profile
-
Send Message
Posted Sep 6, 2013When I want a NPC who be a far fighter, he only figth the enemys directly, and not far. What do I wrong? Please
-
View User Profile
-
Send Message
Posted Sep 4, 2013My sentry will not deal damage to players or mobs how can i fix it
-
View User Profile
-
Send Message
Posted Sep 4, 2013Sorry
' it's /sentry guard for it ..., I'm sorry-
View User Profile
-
Send Message
Posted Sep 4, 2013/sentry follow player,
An internal error occured while attemping to perform this command
WHAT ? Don't work now but between worked
-
View User Profile
-
Send Message
Posted Sep 3, 2013@neoteknic
Yep. I've already posted this. It's not a problem in sentry. It's a bug in Bukkit. And sofar bukkit devs have ignored it.. This bug actualy killed my server.
-
View User Profile
-
Send Message
Posted Sep 1, 2013Is there a way to make it where creepers don't cause terrain damage on Sentries?
-
View User Profile
-
Send Message
Posted Aug 27, 2013When someone kills a sentry the items who drop from it never getting removed,is there any fix for it?
-
View User Profile
-
Send Message
Posted Aug 27, 2013Wiki links have changed, please update your bookmarks.
-
View User Profile
-
Send Message
Posted Aug 27, 2013Hello, there is a small bug :
sometimes with a target: entity:players, sentries dont shot
-
View User Profile
-
Send Message
Posted Aug 26, 2013I know the site is down, I have nothing to do with the hosting, I hope they fix it soon. If it's not back by tomorrow I will update the page here with all the relevant information.
-
View User Profile
-
Send Message
Posted Aug 25, 2013Citizens 2 Wiki domain name needs renewing. Awkward.
-
View User Profile
-
Send Message
Posted Aug 24, 2013The website is down...