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 Aug 24, 2013How do i make the sentries re-spawn to their first spawn point, after dying they keep respawnning to where they died. Also how do i make them stop chasing you after a certain block radius
-
View User Profile
-
Send Message
Posted Aug 24, 2013@BucketFreak
Hey, it seems they lost the wiki domain so who knows when it will be back. here is what i have figured out so far from youtube tutorials:
(/npc create (name)) to make the npcc then (/trait sentry) to make it a sentry (/sentry retaliate) to stop from retailating or reenable it (/sentry health (value)) for health, (/sentry strength (value)) for power (/sentry target add entity:monster) to make it attack mobs (/npc equip) to equip stuff, bow makes archer, sword melee, blazerod mage. (/npc path) to allow paths to be made
-
View User Profile
-
Send Message
Posted Aug 24, 2013Hi guys! YOUR SITE IS DOWN??? It's weekend, I wanna get into this ingenious plugin and now I can't get the infos to do it? NOOOOOOOOO!
Serious: I'd be terribly happy if you could fix this really soon!
Congrats for this excellent piece of work!
-
View User Profile
-
Send Message
Posted Aug 22, 2013Hey there, I love this First of all, but i have a question. How do you make them see farther? i put an archer on a wall and he wont fire at ground level mobs. The wiki seems to have been closed down so i have been learning this plugin via tutorials on youtube but this is one aspect i have had no luck in. Thanks!
-
View User Profile
-
Send Message
Posted Aug 22, 2013But my problem isn't solved. The mount doesnt move when it is a horse but at all other types it does.
-
View User Profile
-
Send Message
Posted Aug 21, 2013@Kyfwana
1) yup that's what the follow distance is there for. 2) yup, and that's not going to change. 3) I might be able to turn off lookclose while attacking.... 4) No, cause maybe you want to intentionally make sentries that fight each other. 5) I think citizens has a 'random' waypoint mode 6) they do, /npc speed is for non-combat, /sentry speed is for combat.
@Thechegga
Remove the mount and re-make it without the saddle, saddles are bugged.
-
View User Profile
-
Send Message
Posted Aug 21, 20131) Multiple bodyguards following a player will occupy the same space if they have the same follow distance. 2) archers will not shoot high enough to clear foreground objects. For example when shooting at a target on the other side of a fence. 3) sentries set to look at players continue to do so while attacking other enemies. 4) sentries should not attack other sentries owned by the same player. Plus there should be a way to tell all sentires under your ownership to stop attacking their current target... just for those kind of situations where someone accidentally hits something the sentries are guarding. 5) How about a patrol-mode that makes sentires randomly walk around within a certain radius of their first waypoint? 6) And finally, different speeds for combat and non-combat.
-
View User Profile
-
Send Message
Posted Aug 21, 2013Hm ... I did /npc equip and give the horse a saddle but I kant see the Saddle at the horse and the horse is still freezed
-
View User Profile
-
Send Message
Posted Aug 19, 2013Is there any way to equip a sentry's mount with armour?
-
View User Profile
-
Send Message
Posted Aug 19, 2013um, does this still work for 1.5.2? Can somebody give a direct link to 1.5.2's download of this plugin? i thought i did, but it keeps not working.
-
View User Profile
-
Send Message
Posted Aug 19, 2013sentry won't attack targets after respawn.. any fix? thanks
-
View User Profile
-
Send Message
Posted Aug 19, 2013@Thechegga
Did you somehow manage to put a saddle on it? that makes them stop... I dunno any other reasons.
-
View User Profile
-
Send Message
Posted Aug 19, 2013I did. When I set the type of the mout to a Spider or an other type he moves
-
View User Profile
-
Send Message
Posted Aug 19, 2013@Kirstiana
some versions of ModifyWorld have been known to prevent Sentry mounting.... might wanna try updating and/or removing that plugin if you have it.
@Thechegga
Set the waypoints on the horse, not the Sentry.
-
View User Profile
-
Send Message
Posted Aug 19, 2013Hm... when the mount is a horse and I set a path the npc doesn't move, but he moves at all other types. Whats wrong???
-
View User Profile
-
Send Message
Posted Aug 19, 2013@jrbudda
Thanks for your quick response. Yeah I tried /sentry drops false as soon as I realized I was using the wrong command, but I also changed it manually in the config file, Still drops stuff :( But if it's on their end, I went ahead and sent them a message about it too. Luckily they were quick to respond to and will be looking into it. Thanks so much!!!!
(Oh and before I forget, I tried to mount my sentry on a horse... while the horse spawned, he wasn't riding it. Just standing inside of him. I have a feeling it's because he's set on a way point? I'll attempt to remove the waypoint first, mount him, then use a waypoint on the horse instead. I didn't see anything about it in the Sentry configuration document, so I wasn't sure. If I don't post again, it means it worked, haha.)
-
View User Profile
-
Send Message
Posted Aug 18, 2013@MarnixxTS
Update Citizens and please use pastebin for stacktraces in the future.
@GROMkill
Try setting the horse as your bodyguard temporarily, it should then let you right-click. Still deciding how I want to handle that better... cause right now if you put a saddle on a Horse NPC it stops moving completely.
@Kirstiana
Sounds like Demigods is handling the damage and killing the sentry off, instead of just modifying the damage and passing it along to Sentry, so that would have to be fixed on their end. That's also why it's dropping things.... Sentry isn't handling the death. Also fyi using /sentry equip doesn't prevent dropping items , " /sentry drops false" does.
-
View User Profile
-
Send Message
Posted Aug 18, 2013Hello! I don't know if this goes to you or not, but I'm using the plugin Demigods. I noticed that even though my sentries are invincible to normal attacks, it doesn't seem to stop those who are using their high damaging attacks on the npcs and one-shotting them. I also used /sentry equip on the npcs and they're still dropping their armor, even though it says in the wiki that if I use /sentry equip, they won't drop equipment. I have even gone into the config file to turn off Drops and KillDrops just in case, and they still drop equipment. I love both of these plugins, so I was just curious if there was a way around this (as people can farm the equipment by just one-shotting him and letting him respawn). But if not, no worries, I'll just make him armorless.
I'll also post this on the demigods plugin section just in case it's something that must be fixed on their end. Thanks so much!
-
View User Profile
-
Send Message
Posted Aug 18, 2013@WhiteAllen
i have ths exact same problem. Will someone please help
-
View User Profile
-
Send Message
Posted Aug 18, 2013I love this plugin! The new sentry mounts are awesome. I used /sentry mount to give my sentry a horse, but when I select the horse and do /npc equip, it won't let me right click it to give it horse armor. Is there a way to give your mounted sentries horse armor?