

能够发射 TACZ 中枪械的炮塔。给炮塔配备一把 TACZ 枪械和一些弹药,它就能向敌人开火。
依赖项
操作指南
- 放置:右键点击方块进行放置。使用方块的底部可以将炮塔倒挂在天花板上,或使用方块的侧面将其安装在墙壁上。
- 打开界面:右键点击炮塔。在枪械槽放入枪械,在其下方的槽位放入弹药,并在枪械槽旁边放入 TACZ 激光瞄准镜。
- 拾取:潜行并右键点击即可收回。你会连同其枪械、激光瞄准器和弹药一起收回炮塔。
- 涂装:潜行并手持染料或旗帜右键点击炮塔。染料会重新着色炮塔的面板,而旗帜会将旗帜图案印在每个面板上。拾取炮塔时涂装会保留。潜行并手持斧头右键点击可以刮除涂装。
- 迷彩:通过同样的方式(使用 Turret Workbench 的 Camos 标签页中的迷彩)进行操作。迷彩会覆盖整个炮塔(除了状态指示灯)。用斧头刮除可以移除迷彩。
- 修复:手持铁栏杆右键点击即可修复。
当炮塔下方有箱子、桶或其他任何物品存储设备时,如果弹药耗尽,它会从中自动补充匹配的弹药。
图形用户界面 (GUI)
- 电源模式:始终开启、红石信号开启、红石信号关闭或始终关闭。
- 模式:
- Aggressive(激进):以枪械允许的最快速度持续射击。
- Conservative(保守):间隔射击以节省弹药。
- Adaptive(自适应):在远距离节省弹药,当目标接近时切换为 Aggressive(激进)模式。
- 玩家目标:从不攻击、反击(仅攻击伤害过它的玩家)或始终攻击。盟友永远不会被锁定为目标。
- 盟友:点击列表中的在线玩家可将其设为机主的盟友,再次点击则取消该设定。
状态指示灯显示炮塔当前的状态:
| 灯光颜色 |
含义 |
| 绿色 |
就绪 |
| 黄色 |
正在装填 |
| 亮红色 |
弹药耗尽 |
| 暗红色 |
未安装枪械 |
| 灰色 |
已关闭 |
盟友
炮塔不会攻击机主或其盟友。盟友来源包括:
- 炮塔界面中的盟友列表
/turret trust <players>、/turret untrust <players> 和 /turret trusted 命令
- 原版队伍 (teams)
- FTB Teams 的组队 (parties) 及其盟友
- Open Parties 的组队 (parties) 及其结盟队伍
- Villager Recruits 的派系 (factions) 及其结盟派系(仅限 1.20.1 版本)。炮塔不会攻击你的招募村民。
盟友也可以打开和管理你的炮塔。可以通过配置 alliesHavePerms 来禁用此功能。
炮塔类型
炮塔需在 Turret Workbench 中制作。
狙击枪可将炮塔的有效射程翻倍。
Brass(黄铜)炮塔适用于 Create 模组,需要旋转动力。在低转速下射速较慢,达到 64 RPM 时才能达到全速射速。
Steel(钢制)炮塔适用于 Immersive Engineering 模组。
Basic(基础)、Advanced(高级)、Elite(精英)和 Ultimate(终极)炮塔适用于 Mekanism 模组。
每种炮塔均使用以下属性。默认情况下不显示射速属性,需启用 fireRateStats。启用 identicalTurrets 后,所有炮塔将拥有与 Modern(现代)炮塔相同的属性和配方。
| 炮塔类型 |
生命值 |
护甲 |
射程 |
装填速度 |
射速 |
| Scrap(废料) |
120 |
2 |
48 |
1x |
0.8x |
| Modern(现代) |
200 |
6 |
64 |
1x |
1x |
| Industrial(工业) |
300 |
10 |
56 |
1.1x |
0.9x |
| Tactical(战术) |
220 |
8 |
72 |
1.25x |
1.15x |
| Brass(黄铜) |
200 |
6 |
64 |
1x |
1x |
| Steel(钢制) |
200 |
6 |
64 |
1x |
1x |
| Basic(基础) |
200 |
6 |
64 |
1x |
1x |
| Advanced(高级) |
250 |
8 |
72 |
1.1x |
1.05x |
| Elite(精英) |
300 |
10 |
80 |
1.2x |
1.1x |
| Ultimate(终极) |
400 |
14 |
96 |
1.35x |
1.2x |
哨兵炮塔
哨兵炮塔没有所有者,主要用于防御建筑。生成时,它会随机选择一套装备,包括炮塔类型、枪械、激光瞄准器、迷彩和弹药。敌对哨兵会看到玩家就立即开火,而中立哨兵仅在受到攻击时反击。
- 只有操作员和创造模式玩家可以打开、拾取、涂装或修复哨兵炮塔。
- 哨兵不需要电力,且在和平难度下不会攻击玩家。
- 被摧毁的哨兵会掉落少量其炮塔类型的制作材料、剩余的弹药,有时还会掉落其枪械。
哨兵炮塔装备表
装备表是位于 data/<namespace>/sentry_loadouts/ 的数据包文件。没有装备表或装备表不存在的哨兵将使用 tacz_turrets:default:
{
"hostile": true,
"guns": [
{"type": "rifle", "weight": 4},
{"type": "smg", "weight": 3},
{"type": "shotgun", "weight": 2},
{"type": "mg", "weight": 1}
],
"laser_chance": 0.25,
"paint_chance": 0.6,
"range": 32,
"gun_drop_chance": 0.1
}
| 字段 |
默认值 |
含义 |
types |
all |
可选的炮塔类型:modern、industrial、scrap、tactical、brass(Create)、steel(Immersive Engineering)、basic、advanced、elite、ultimate(Mekanism)。模组附加包炮塔仅在 moddedSentryTurrets 开启时生成。 |
hostile |
true |
true 见玩家即射击,false 仅反击。 |
guns |
required |
加权列表。条目可指定一把枪(如 "gun": "tacz:ak47")、一种 TACZ 枪械类型(如 "type": "rifle"),或留空以使用任意枪械。 |
ammo |
infinite |
初始携带的弹药数量,格式为 {"min": 60, "max": 180}。省略此项表示无限弹药。 |
laser_chance |
0 |
生成随机 TACZ 激光器的概率。 |
paint_chance |
0 |
生成迷彩、染料或旗帜的概率。 |
paints |
biome |
迷彩、染料或旗帜。每个哨兵会随机获得其中一种。省略此项则根据生物群系选择迷彩,使用生物群系标签 tacz_turrets:camo/<camo>。 |
range |
32 |
射程,单位为方块。 |
gun_drop_chance |
0.1 |
玩家摧毁哨兵时掉落枪械的概率。 |
laser_drop_chance |
0 |
玩家摧毁哨兵时掉落激光器的概率。 |
TACZ 的默认枪械类型为 pistol、smg、rifle、shotgun、sniper、mg 和 rpg。
每个哨兵会从 paints 中随机获取一项。该项可以是一个物品 ID,例如 "tacz_turrets:desert_camo" 或 "minecraft:yellow_dye",也可以是一面带有图案的旗帜:
"paints": [
{"banner": "black", "patterns": [{"pattern": "minecraft:skull", "color": "white"}]}
]
哨兵炮塔生成
生成规则是位于 data/<namespace>/sentry_spawns/ 中的数据包文件。生成规则可将哨兵放置在结构中、地面上或洞穴内。地面和洞穴生成默认关闭,可通过配置项 surfaceSentrySpawns 和 caveSentrySpawns 开启。
{
"where": "structure",
"structures": ["minecraft:pillager_outpost"],
"loadout": "tacz_turrets:default",
"count": {"min": 2, "max": 4},
"ceiling_chance": 0.2,
"wall_chance": 0.2
}
| 字段 |
默认值 |
含义 |
where |
required |
structure(结构)、surface(地面)或 cave(洞穴)。 |
structures |
all |
规则适用的结构 ID 或 #tags。仅适用于 structure。 |
biomes |
all |
哨兵可以生成的生物群系 ID 或 #tags。 |
loadout |
tacz_turrets:default |
哨兵生成时所携带的配置。 |
chance |
1 |
每个结构的生成概率,对于 surface 和 cave 则是每个区块的概率。 |
count |
1 |
每个结构或区块内的哨兵数量,格式为 {"min": 1, "max": 3}。 |
ceiling_chance |
0 |
哨兵悬挂在天花板上的概率。仅适用于 structure 和 cave。 |
wall_chance |
0 |
哨兵安装在墙上的概率。仅适用于 structure 和 cave。两项概率之和不能超过 1,其余情况在地面生成。 |
配置
- 服务器端:控制炮塔和哨兵炮塔如何锁定目标、战斗、使用弹药以及受到伤害,以及每种炮塔类型的属性。可以通过
requirePower 设置每种炮塔类型是否需要电力。
- 客户端:控制炮塔在屏幕上的显示效果,例如生命条的样式和颜色。
可以使用实体标签 tacz_turrets:turret_targets 和 tacz_turrets:turret_ignored 来定义炮塔会攻击或忽略的目标。
致谢
非常感谢 Corrinedev 制作了 TACZ NPCs,这对理解工作原理提供了极大帮助。
Brass 炮塔的齿轮模型和纹理来自 Create。
Steel 炮塔的纹理来自 Immersive Engineering。
Mekanism 炮塔的纹理来自 Mekanism。


Turrets that fire guns from TACZ. Give a turret a TACZ gun and some ammo, and it will fire at enemies.
Dependencies
Controls
- Place it by right-clicking a block. Use the bottom of a block to hang the turret upside down from the ceiling, or the side of a block to mount it on a wall.
- Open it by right-clicking the turret. Put a gun in the gun slot, ammo in the slots below it, and a TACZ laser sight next to the gun slot.
- Pick it up by crouching and right-clicking. You get the turret back with its gun, laser and ammo.
- Paint it by crouching and right-clicking with a dye or a banner. A dye recolors the turret's panels, and a banner puts its design on each panel. The paint stays on the turret when you pick it up. Crouch and right-click with an axe to scrape it off.
- Camo it the same way with a camo from the Camos tab of the Turret Workbench. A camo covers the whole turret except its status light. Scraping it off with an axe removes it.
- Repair it by right-clicking with iron bars.
A turret standing on a chest, barrel or any other item storage takes matching ammo from it when it runs out.
GUI
- Power: Always On, Redstone On, Redstone Off or Always Off.
- Mode: Aggressive fires as fast as the gun allows. Conservative spaces its shots out to save ammo. Adaptive saves ammo at range and switches to Aggressive when a target gets close.
- Players: Never Target, Retaliate (only players who hurt it) or Always Target. Allies are never targeted.
- Allies: click an online player in the list to make them an ally of the owner, and click again to remove them.
The status light shows what the turret is doing:
| Light |
Meaning |
| Green |
Ready |
| Yellow |
Reloading |
| Bright red |
Out of ammo |
| Dark red |
No gun |
| Gray |
Switched off |
Allies
Turrets do not target their owner or the owner's allies. Allies come from:
- the allies list in the turret screen
/turret trust <players>, /turret untrust <players> and /turret trusted
- vanilla teams
- FTB Teams parties and allies.
- Open Parties and Claims parties and allied parties.
- Villager Recruits factions and allied factions (1.20.1). Turrets will not target your recruits.
Allies can also open and manage your turrets. Turn that off with alliesHavePerms.
Turrets
Turrets are crafted at the Turret Workbench.
Sniper guns double a turret's range.
The Brass turret is for the Create mod and requires rotational power. It fires slower at low rotation speeds and reaches its full fire rate at 64 RPM.
The Steel turret is for the Immersive Engineering mod.
The Basic, Advanced, Elite and Ultimate turrets are for the Mekanism mod.
Each turret uses the stats below. Fire rate stats are off by default and need fireRateStats. Turn on identicalTurrets to give them all the Modern turret's stats and recipe.
| Turret |
Health |
Armor |
Range |
Reload |
Fire rate |
| Scrap |
120 |
2 |
48 |
1x |
0.8x |
| Modern |
200 |
6 |
64 |
1x |
1x |
| Industrial |
300 |
10 |
56 |
1.1x |
0.9x |
| Tactical |
220 |
8 |
72 |
1.25x |
1.15x |
| Brass |
200 |
6 |
64 |
1x |
1x |
| Steel |
200 |
6 |
64 |
1x |
1x |
| Basic |
200 |
6 |
64 |
1x |
1x |
| Advanced |
250 |
8 |
72 |
1.1x |
1.05x |
| Elite |
300 |
10 |
80 |
1.2x |
1.1x |
| Ultimate |
400 |
14 |
96 |
1.35x |
1.2x |
Sentry Turrets
Sentry turrets have no owner and are meant for structures. When one spawns, it rolls a loadout that picks its turret type, gun, laser, camo and ammo. Hostile sentries shoot players on sight, and neutral ones only shoot back.
- Only operators and creative players can open, pick up, paint or repair a sentry.
- Sentries don't need power and don't shoot players on Peaceful.
- A destroyed sentry drops a few of its turret's crafting materials, any ammo it had left, and sometimes its gun.
Sentry Turret Loadouts
Loadouts are datapack files in data/<namespace>/sentry_loadouts/. A sentry with no loadout, or one that doesn't exist, uses tacz_turrets:default:
{
"hostile": true,
"guns": [
{"type": "rifle", "weight": 4},
{"type": "smg", "weight": 3},
{"type": "shotgun", "weight": 2},
{"type": "mg", "weight": 1}
],
"laser_chance": 0.25,
"paint_chance": 0.6,
"range": 32,
"gun_drop_chance": 0.1
}
| Field |
Default |
Meaning |
types |
all |
Turret types to pick from: modern, industrial, scrap, tactical, brass (Create), steel (Immersive Engineering), basic, advanced, elite, ultimate (Mekanism). Mod addon turrets only spawn when moddedSentryTurrets is on. |
hostile |
true |
true shoots players on sight, false only shoots back. |
guns |
required |
Weighted list. An entry names a gun ("gun": "tacz:ak47"), a TACZ gun type ("type": "rifle"), or neither for any gun. |
ammo |
infinite |
Rounds it spawns with, as {"min": 60, "max": 180}. Leave it out for infinite ammo. |
laser_chance |
0 |
Chance of a random TACZ laser. |
paint_chance |
0 |
Chance of a camo, dye or banner. |
paints |
biome |
Camos, dyes or banners. Each sentry gets one of them. Leave it out to pick a camo for the biome, using the biome tags tacz_turrets:camo/<camo>. |
range |
32 |
Range in blocks. |
gun_drop_chance |
0.1 |
Chance the gun drops when a player destroys the sentry. |
laser_drop_chance |
0 |
Chance the laser drops when a player destroys the sentry. |
TACZ's default gun types are pistol, smg, rifle, shotgun, sniper, mg and rpg.
Each sentry gets one entry from paints, picked at random. An entry is an item id, like "tacz_turrets:desert_camo" or "minecraft:yellow_dye", or a banner with patterns:
"paints": [
{"banner": "black", "patterns": [{"pattern": "minecraft:skull", "color": "white"}]}
]
Sentry Turret Spawns
Spawn rules are datapack files in data/<namespace>/sentry_spawns/. A spawn rule places sentries in structures, on the surface, or in caves. Surface and cave spawns are off by default and can be turned on with the surfaceSentrySpawns and caveSentrySpawns configs.
{
"where": "structure",
"structures": ["minecraft:pillager_outpost"],
"loadout": "tacz_turrets:default",
"count": {"min": 2, "max": 4},
"ceiling_chance": 0.2,
"wall_chance": 0.2
}
| Field |
Default |
Meaning |
where |
required |
structure, surface or cave. |
structures |
all |
Structure ids or #tags the rule applies to. Only for structure. |
biomes |
all |
Biome ids or #tags sentries can spawn in. |
loadout |
tacz_turrets:default |
The loadout the sentries spawn with. |
chance |
1 |
Chance per structure, or per chunk for surface and cave. |
count |
1 |
Sentries per structure or chunk, as {"min": 1, "max": 3}. |
ceiling_chance |
0 |
Chance a sentry hangs from a ceiling. Only for structure and cave. |
wall_chance |
0 |
Chance a sentry is mounted on a wall. Only for structure and cave. The two chances together can't go over 1, the rest spawn on the floor. |
Config
- Server: How turrets and sentry turrets target, fight, use ammo and take damage, plus each turret type's stats. Each turret type can be set to need power with
requirePower.
- Client: How turrets look on your screen, such as health bar style and color.
The entity tags tacz_turrets:turret_targets and tacz_turrets:turret_ignored can be used for what turrets will or will not target.
Credits
Huge thanks to Corrinedev for making TACZ NPCs, which was a big help for seeing how things work.
The Brass turret's cogwheel model and texture are from Create.
The Steel turret's textures are from Immersive Engineering.
The Mekanism turrets' textures are from Mekanism.
评论 0
登录后参与评分
还没有评论,来抢沙发吧