Перейти к содержимому
Mineforgian

[TACZ] NPCs

Fully animated neutral and enemy NPCs with loot tables and proper player-like TACZ shooting.

Загрузки
136K
Подписчики
70
Обновлён
12 июля 2026 г.
Лицензия
MIT

Опубликован 30 декабря 2024 г.

Requirements

  • TACZ

Features

  • Rendering and use of armors and TACZ guns - NPCs will use TACZ guns from any addon pack just like a player would, including rocket launchers, grenade launchers and flamethrowers, to name a few.

  • Full PlayerAnimator and Player skin support - NPCs will use animations from PlayerAnimator and can be configured with Player names and skins

  • Configuration - Extensive configuration files which can be used to create entirely new NPCs with different relationships, textures and equipment.

  • Factions and Relationships - Configure the tacznpc_factions.json file to set up various teams and watch them fight out real time battles.

How to Use

See Configuration below on how to modify the mod.

  • You can summon npcs with /summon tacznpcs:npc {"template":""}, not adding the template nbt: ({"template":""}) will use the "default" template, otherwise you specify a template name based on the npc_loadouts.json config file.

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"
  ]
}
  • Keys are faction names.
  • Values are lists of entity IDs.

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):

  • monster
  • creature
  • ambient
  • axolotls
  • underground_water_creature
  • water_creature
  • water_ambient
  • misc

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)

Ченджлог

2.1.0Релиз1.20.1 · 12 июля 2026 г.
  • Adds a config for spawning npcs in structures @ npc_structures.json
  • Adds an equipment field to npc loadouts allowing for one loot table to define an entire loadout, plus allowing for configuration of loot drop chances.
  • npc templates now autocomplete when running /summon tacznpcs:npc
  • default configs are now 100% survival friendly, npcs will spawn in Pillager Outposts, Mansions and all Village types by default, with appropriate loadouts per structure.
  • default loadouts now have compatibility with TACZ Durability
  • more than one skin can now be applied to loadouts
  • config names changed to tacznpcs_*, deleting previous configs is not required for the update to function
2.1.0Релиз1.21.1 · 12 июля 2026 г.
  • Adds a config for spawning npcs in structures @ npc_structures.json
  • Adds an equipment field to npc loadouts allowing for one loot table to define an entire loadout, plus allowing for configuration of loot drop chances.
  • npc templates now autocomplete when running /summon tacznpcs:npc
  • default configs are now 100% survival friendly, npcs will spawn in Pillager Outposts, Mansions and all Village types by default, with appropriate loadouts per structure.
  • default loadouts now have compatibility with TACZ Durability
  • more than one skin can now be applied to loadouts
  • config names changed to tacznpcs_*, deleting previous configs is not required for the update to function
2.0.0Релиз1.21.1 · 25 июня 2026 г.

It's the third complete rewrite of the mod

Major Features:

  • Factions and allies system
  • Physics mod support
  • PlayerAnimator support
  • Improved AI
  • Usage of all TACZ features (they can aim, melee, reload, etc)
  • Loadout system that lets you make different NPC presets
2.0.0Релиз1.20.1 · 25 июня 2026 г.

It's the third complete rewrite of the mod

Major Features:

  • Factions and allies system
  • Physics mod support
  • PlayerAnimator support
  • Improved AI
  • Usage of all TACZ features (they can aim, melee, reload, etc)
  • Loadout system that lets you make different NPC presets
1.2.0Релиз1.20.1 · 6 января 2025 г.

-Update to TACZ 1.1.4 -Small AI fixes, mostly pathfinding -Beta for patrols system (only /summon rn)

1.1.1Релиз1.20.1 · 30 декабря 2024 г.

[FIRST OFFICIAL MODRINTH VERSION] -Fixed crash issue caused by depreceated method in GeckoLib

Комментарии

Загружаем…