HomeJavaModsTACZ: Npcs
TACZ: Npcs
ModsJava

TACZ: Npcs

by jeducklet · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.20.1 · NeoForge⬇ Download for 1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
TACZ: Npcs — screenshot 1TACZ: Npcs — screenshot 2

Requirements

    Features

How to Use

See Configuration below on how to modify the mod.

Configuration

NPCs are configured using the mod's config files.

Custom loot tables or tags should be added the normal Minecraft way using datapacks. IDs can then be referenced by the config.


tacznpc_factions.json

Maps entity IDs to faction names.

{
  "villagers": [
    "minecraft:villager",
    "minecraft:iron_golem"
  ],
  "illagers": [
    "minecraft:pillager",
    "minecraft:evoker"
  ]
}

tacznpc_loadouts.json

Defines NPC equipment, weapons, factions, and textures.

{
  "illagers": { <-- name of loadout
    "aligned": [
      "illagers", <-- Allied factions
      "monster"
    ],
    "opposed": [
      "villagers" <-- factions to attack
    ],
    "equipment": {
      "table": "tacznpcs:npc/illager", <-- the loot table to use for equipment, optional if you just want to modify dropChances
      "dropChances": { <-- dropChances is optional
        "mainhand": 1, <-- each field is optional in dropChances
        "head": 0.2,
        "chest": 0.2,
        "legs": 0.2,
        "feet": 0.2
      }
    },
    "skin": [
      {"id": "tacznpcs:entity/illager1.png", "slim": true}, <-- id=texture location, slim= slim(true) or wide(false) skin, default is false
      {"id": "tacznpcs:entity/illager2.png"} <-- id is required, slim is optional
    ]
  },
  "names": ["Bobert", "Robert"] <-- random names to choose, will show in the nametag, optional (if the field is not used, then no nametag will show and the default entity name will be used)
}

Extra Fields

Field Description
primary The NPC's primary weapon or item.
helmet Helmet item (optional).
chestplate Chestplate item (optional).
leggings Leggings item (optional).
boots Boots item (optional).

ID Prefixes for Extra Fields

Several fields accept different ID types using prefixes:

Prefix Meaning Example
(none) Minecraft item ID minecraft:iron_sword
% TACZ gun ID %tacz:glock_17
# Item tag #c:swords
$ Loot table ID $minecraft:chests/simple_dungeon

A default loadout is recommended and is used whenever no other loadout applies.


Built-in Factions

These faction names are always available (case-insensitive):

You may also reference any custom faction defined in npc_factions.json.


tacznpcs_structures.json

Defines structures for specific loadouts to spawn in.

{
 "minecraft:mansion": [ <-- structure id
   { <-- object
     "entities": [
       "minecraft:pillager",
       "minecraft:vindicator"
     ],
     "loadout": "illagers",
     "chance": 0.25
   }
 ],
 "minecraft:village_plains": [
   { <-- there can be more than one spawning object per structure
     "entities": [
       "minecraft:villager" <-- list of entity ids that can be replaced
     ],
     "loadout": "villagers", <-- loadout to replace entities with
     "chance": 0.05 <-- chance for entity to be replaced on spawn
   },
   {
     "entities": [
       "minecraft:iron_golem"
     ],
     "loadout": "villagers",
     "chance": 0.5
   }
 ]
}

I accept commisions or questions on discord @ jeducklet. (DMs open)

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more