Skip to content

Guard Villagers: Armory Expansion

Expands Guard Villagers with data-driven Veteran, Elite, and Royal armory tiers featuring enchanted loadouts, stat boosts, and full support for custom or modded equipment via datapacks and config files.

<1,000 downloads Updated
26.3

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Guard Villagers: Armory Expansion is an addon for Guard Villagers that introduces stronger, customizable guard tiers to village defenses.

Armory Expansion upgrades standard Guard Villagers directly using a flexible tier system. Every piece of equipment, enchantment level, attribute bonus, name tag color, and spawn weight can be customized or extended using either JSON files in your `config/` folder or datapacks, including full support for items and enchantments from other mods.


Features

  • 3 Built-In Armory Tiers: Newly spawned Guard Villagers have a configurable chance (default `35%`) to spawn as a Veteran, Elite, or Royal Guard.
  • Guard Villagers Compatible: Tiered guards are genuine `guardvillagers:guard` entities—they keep full support for Guard Villagers' inventory GUI, patrolling, following, reputation rules, and resource packs.
  • Modded Items & Enchantments Support: Loadouts accept any registered item ID, enchantment ID, and attribute ID from other mods. Missing optional mod IDs are safely skipped without crashing.
  • No Datapack Required for Server Admins: Drop or edit JSON files directly inside `config/guardarmory/tiers/` and run `/guardarmory reload` in-game to apply changes immediately.
  • Vanilla-Compatible or Unrestricted Enchanting: Choose whether rolled enchantments strictly follow vanilla incompatibility rules (e.g., preventing *Multishot* + *Piercing* on the same crossbow) or allow unrestricted combinations and over-max enchantment levels.
  • Customizable Name Tags & Colors: Toggle tier name tags on/off, force them to always display, or override colors globally or per-tier using `#RRGGBB` hex codes or color names.

Creating Custom Tiers & Adding Modded Gear

You can add new tiers or override existing ones in two ways:

  1. Config Folder (Easiest): Place JSON files in `config/guardarmory/tiers/<name>.json` (loads as `guardarmory:<name>`) or `config/guardarmory/tiers/<namespace>/<name>.json` (loads as `<namespace>:<name>`). An example file (`_example_custom_tier.json.disabled`) is generated automatically on first launch.
  2. Datapacks: Place JSON files in `data/<namespace>/guard_armory/tiers/<name>.json`.

 

Example Tier JSON (`config/guardarmory/tiers/champion.json`)

{
  "enabled": true,
  "display_name": "Champion Guard",
  "name_color": "#FF55FF",
  "always_show_name": false,
  "spawn_weight": 10,
  "biomes": [],
  "dimensions": [
    "minecraft:overworld"
  ],
  "clear_existing_equipment": true,
  "attributes": {
    "minecraft:generic.max_health": {
      "amount": 16.0,
      "operation": "add_value"
    },
    "minecraft:generic.attack_damage": {
      "amount": 2.5,
      "operation": "add_value"
    }
  },
  "equipment": {
    "head": [
      {
        "item": "minecraft:netherite_helmet",
        "weight": 10,
        "chance": 1.0,
        "drop_chance": 0.02,
        "unbreakable": false,
        "enchantments": [
          { "id": "minecraft:protection", "min_level": 4, "max_level": 4, "chance": 1.0 }
        ]
      }
    ],
    "mainhand": [
      {
        "item": "minecraft:diamond_axe",
        "weight": 10,
        "chance": 1.0,
        "drop_chance": 0.02,
        "enchantments": [
          { "id": "minecraft:sharpness", "min_level": 5, "max_level": 5, "chance": 1.0 },
          { "id": "minecraft:unbreaking", "min_level": 3, "max_level": 3, "chance": 1.0 }
        ]
      }
    ]
  }
}

Attribute IDs written as `minecraft:generic.max_health` (1.21.1 format) or `minecraft:max_health` (26.3 format) are automatically translated on both Minecraft 1.21.1 and 26.3, so the exact same tier JSON files work across both versions.


Feel free to leave a comment with any feedback or suggestions.