Data Packs Mob

Stationed Guards

  • Functions
  • 7,846 views • 3 today
  • 707 downloads • 0 today
  • 27
  • 26
  • 18
Oriooon
Level 43 : Master Whale
28
Assign a mob to guard an area mostly from players.

Type "/function stationedguard:uninstall" to uninstall datapack from your world.

" /datapack enable "file/stationedguard" " to reinstall datapack to your world.



How to use datapack:

1. Prepare a nametag renamed as "guard"
2. Lure a mob to its station
3. Use nametag on mob
4. Customize the guard (Optional)

5. Configure its setting (Optional)
6. Rename the guard to avoid it despawning.

Type "/trigger setting" to turn setting on. Use the same command to turn setting off.
Get near the guard to display its setting. You cannot configure guards you do not own.


Mobs that can become guards:
    
- Drowned
- Evoker
- Husk
- Piglin Brute
- Piglin
- Pillager
- Skeleton
- Stray
- Vindicator
- Witch
- Wither Skeleton
- Zombie
- Zombie Villager

- Iron Golem



Unique Guard Features:

- The guard is customizable. You can equip it with armor and weapons, or apply potion effects.
- It will remain standing on one block if no enemy within its area
- It will pathfind to its station if...
  - no enemy found within its area
  - it is outside its boundary
- It will not occupy other guard's station no matter their distance.
- It will not attack the enemy if the owner, in survival, is also within its area.
CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

  Have something to say?

cloudyloaf
11/23/2021 10:50 pm
Level 1 : New Miner
Hi, is there a way to let your friends have access to also be the owner of the mob?
1
cloudyloaf
11/23/2021 10:51 pm
Level 1 : New Miner
edit: forgot that there was another comment like this. thanks
1
Buster895
11/19/2021 6:42 am
Level 1 : New Miner
To those who are wandering how to modify mobs stuff here is the command " /item replace entity @e[type=husk] weapon.mainhand with iron_sword "

Replace the [type= to any mob you want to modify. and the weapon.mainhand to anything that shows up.
1
Roguelikepaladin21
10/05/2021 12:02 pm
Level 1 : New Crafter
could this be combine with teams of some kind? like ranks?
1
RabidCello
09/24/2021 3:49 pm
Level 1 : New Miner
Is there any way to make the guards attack custom or modded mobs?
1
User3717915F
07/19/2021 9:26 am
Level 1 : New Miner
Datapack not work :(
2
GiantPenguin2
09/11/2021 7:07 pm
Level 1 : New Miner
if it works you just need to extract it and re-compress it well
1
MrIlluminati
07/08/2021 7:33 pm
Level 1 : New Miner
history
Would there be any way to make it so only iron golems had this effect. That way it would make more sense in a vanilla feeling server, (if it's not to much of a hassle could I please have a seperate download link to this version)



Thanks a bunch!
3
rykea
07/04/2021 8:44 am
Level 55 : Grandmaster Vampire
history
is there a way to whitelist specific players if on a multiplayer server?
1
Oriooon
07/06/2021 8:27 pm
Level 43 : Master Whale
No, you can't. The only way to prevent the guard from attacking your friend is to stay close with them in survival.
2

Welcome