
需求
功能
-
盔甲与 TACZ 枪械的渲染和使用 - NPC 会像玩家一样使用来自任何附加包的 TACZ 枪械,包括火箭发射器、榴弹发射器和火焰喷射器等。
-
完整的 PlayerAnimator 和玩家皮肤支持 - NPC 将使用 PlayerAnimator 的动画,并可以配置玩家名称和皮肤
-
配置 - 提供广泛的配置文件,可用于创建具有不同关系、纹理和装备的全新 NPC。
-
阵营与关系 - 配置 tacznpc_factions.json 文件以设置各种团队,并观看它们进行实时战斗。
使用方法
请参阅下方的配置部分以了解如何修改模组。
- 你可以使用
/summon tacznpcs:npc {"template":""} 召唤 NPC,如果不添加模板 NBT:({"template":""}),将使用 "default" 模板;否则,你可以根据 npc_loadouts.json 配置文件指定一个模板名称。
配置
NPC 通过模组的配置文件进行配置。
自定义战利品表或标签应使用数据包以 Minecraft 常规方式添加。ID 随后可在配置中引用。
tacznpc_factions.json
将实体 ID 映射到阵营名称。
{
"villagers": [
"minecraft:villager",
"minecraft:iron_golem"
],
"illagers": [
"minecraft:pillager",
"minecraft:evoker"
]
}
tacznpc_loadouts.json
定义 NPC 装备、武器、阵营和纹理。
{
"illagers": { <-- 装备配置名称
"aligned": [
"illagers", <-- 盟友阵营
"monster"
],
"opposed": [
"villagers" <-- 要攻击的阵营
],
"equipment": {
"table": "tacznpcs:npc/illager", <-- 用于装备的战利品表,如果只想修改掉落概率则为可选
"dropChances": { <-- dropChances 是可选的
"mainhand": 1, <-- dropChances 中的每个字段都是可选的
"head": 0.2,
"chest": 0.2,
"legs": 0.2,
"feet": 0.2
}
},
"skin": [
{"id": "tacznpcs:entity/illager1.png", "slim": true}, <-- id=纹理位置,slim=窄体(true)或宽体(false)皮肤,默认为 false
{"id": "tacznpcs:entity/illager2.png"} <-- id 是必需的,slim 是可选的
]
},
"names": ["Bobert", "Robert"] <-- 随机选择的名称,将显示在名称标签上,可选(如果未使用该字段,则不会显示名称标签,并使用默认实体名称)
}
额外字段
| 字段 |
描述 |
primary |
NPC 的主要武器或物品。 |
helmet |
头盔物品(可选)。 |
chestplate |
胸甲物品(可选)。 |
leggings |
护腿物品(可选)。 |
boots |
靴子物品(可选)。 |
额外字段的 ID 前缀
多个字段使用前缀接受不同类型的 ID:
| 前缀 |
含义 |
示例 |
| (无) |
Minecraft 物品 ID |
minecraft:iron_sword |
% |
TACZ 枪械 ID |
%tacz:glock_17 |
# |
物品标签 |
#c:swords |
$ |
战利品表 ID |
$minecraft:chests/simple_dungeon |
建议使用 default 装备配置,当没有其他装备配置适用时使用。
内置阵营
以下阵营名称始终可用(不区分大小写):
monster
creature
ambient
axolotls
underground_water_creature
water_creature
water_ambient
misc
你也可以引用在 npc_factions.json 中定义的任何自定义阵营。
tacznpcs_structures.json
定义特定装备配置生成的结构。
{
"minecraft:mansion": [ <-- 结构 ID
{ <-- 对象
"entities": [
"minecraft:pillager",
"minecraft:vindicator"
],
"loadout": "illagers",
"chance": 0.25
}
],
"minecraft:village_plains": [
{ <-- 每个结构可以有多个生成对象
"entities": [
"minecraft:villager" <-- 可替换的实体 ID 列表
],
"loadout": "villagers", <-- 用于替换实体的装备配置
"chance": 0.05 <-- 生成时实体被替换的概率
},
{
"entities": [
"minecraft:iron_golem"
],
"loadout": "villagers",
"chance": 0.5
}
]
}
我接受 Discord 上的委托或提问 @ jeducklet. (私信开放)

Requirements
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)
评论 0
登录后参与评分
还没有评论,来抢沙发吧