Description
This is an admin-only addon!
Need something indestructible to guard your admin builds? Like Spawn or the main castle?
If a player breaks a block inside the set zone, they are placed on the guard's kill list. The guard will actively chase them inside the zone until they kill them. This will happen each time the player enters that zone until an admin clears the player's name off the guard's list. The guards will patrol the area, pausing every now and then, but they will not travel outside of their designated zone. You cannot push a guard around, but you can move them with a boat/lead.
How to set up
1. Give yourself the admin tag
/tag YourName add admin
2. Create the zone
Stand at one corner and run
/scriptevent guard:corner spawn zone_spawn 1
Go to the opposide corner and run
/scriptevent guard:corner spawn zone_spawn 2
NOTES: The zone's y level (height) is determined by where you're positioned.
Make sure you are at the lowest point at one corner and the highest point at the other!
You can substitute "spawn" for whatever zone name you'd like.
3. Spawn the guard
While inside the zone, run
/summon guard:security_guard
4. Link the guard
Link the guard to that zone by running
/tag @e[type=guard:security_guard,c=1] add zone_spawn
Other commands
Clear a player from the list /scriptevent guard:clear PlayerName
View who has been flagged /scriptevent guard:list
Remove a guard /scriptevent guard:remove zone_spawn
To remove all guards in the world /scriptevent guard:remove all
To see the list of zones /scriptevent guard:listzones
To delete a zone /scriptevent guard:deletezone spawn
Enable Beta APIs



