

向 TACZ 的枪械发射子弹的炮塔。为炮塔装上 TACZ 枪械和一些弹药,它就会向敌人开火。
依赖项
控制操作
- 放置:右键点击方块进行放置。使用方块的底部可以将炮塔倒挂在天花板上,或使用方块的侧面将其安装在墙壁上。
- 打开:右键点击炮塔即可打开界面。将枪械放入枪械槽,弹药放入其下方的槽位,并在枪械槽旁边放入一个 TACZ 激光瞄准器。
- 拾取:潜行并右键点击即可拾取。你会收回炮塔以及它所附着的枪械、激光瞄准器和弹药。
- 涂装:潜行并手持染料或旗帜右键点击即可涂装。染料会重新着色炮塔的面板,而旗帜会将旗帜图案印在每个面板上。拾取炮塔时涂装会保留。手持斧头潜行并右键点击可以刮除涂装。
- 伪装:同样通过潜行并右键点击来使用来自炮台工作台“伪装”标签页中的迷彩进行伪装。迷彩会覆盖整个炮塔,除了状态指示灯。手持斧头可以刮除伪装。
- 修复:手持铁栏杆右键点击即可修复。
当炮塔站在箱子、桶或其他任何物品存储设备上且弹药耗尽时,它会从该设备中获取匹配的弹药。
GUI(图形用户界面)
- 电源:常开、红石开启、红石关闭或常关。
- 模式:激进模式以枪械允许的最快速度射击;保守模式间隔射击以节省弹药;自适应模式在远距离节省弹药,并在目标靠近时切换为激进模式。
- 玩家:从不攻击、反击(仅攻击伤害它的玩家)或始终攻击。盟友永远不会被攻击。
- 盟友:在列表中点击在线玩家可将其设为所有者的盟友,再次点击则移除其盟友身份。
状态指示灯显示炮塔当前的状态:
| 灯光颜色 |
含义 |
| 绿色 |
就绪 |
| 黄色 |
正在装填 |
| 亮红色 |
弹药耗尽 |
| 暗红色 |
没有枪械 |
| 灰色 |
已关闭 |
盟友
炮塔不会攻击其所有者或其盟友。盟友来源包括:
- 炮塔屏幕中的盟友列表
/turret trust <players>、/turret untrust <players> 和 /turret trusted 命令
- 原版队伍(Teams)
- FTB Teams 小队及盟友
- Open Parties 和 Claims 的小队及结盟小队
- 村民招募派系及结盟派系(1.20.1)。炮塔不会攻击你的招募村民。
盟友也可以打开和管理你的炮塔。可以通过 alliesHavePerms 配置项关闭此权限。
炮塔类型
炮塔在炮台工作台中制作。
狙击枪会使炮塔的范围加倍。
黄铜炮塔专为 Create 模组设计,需要旋转动力。在低转速下射速较慢,达到 64 RPM 时达到最大射速。
钢制炮塔专为 Immersive Engineering 模组设计。
基础、高级、精英和终极炮塔专为 Mekanism 模组设计。
Oritech 炮塔专为 NeoForge 1.21.1 上的 Oritech 模组设计。
每种炮塔都使用以下属性。默认情况下射速属性是关闭的,需要启用 fireRateStats。启用 identicalTurrets 将使它们全部拥有现代炮塔的属性及合成配方。
| 炮塔类型 |
生命值 |
护甲 |
射程 |
装填速度 |
射速 |
| 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 |
| Oritech |
200 |
6 |
64 |
1x |
1x |
哨兵炮塔
哨兵炮塔没有所有者,主要用于防御结构。生成时,它会随机选择一套装备,包括炮塔类型、枪械、激光瞄准器、迷彩和弹药。敌对哨兵看到玩家就会射击,而中立哨兵仅在受到攻击时反击。
- 只有操作员和创造模式玩家可以打开、拾取、涂装或修复哨兵炮塔。
- 哨兵不需要电力,且在和平模式下不会射击玩家。
- 被摧毁的哨兵会掉落少量其炮塔类型的合成材料、剩余的弹药,有时还会掉落其枪械。
哨兵炮塔装备表
装备表是位于 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)、oritech(Oritech)。仅当 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,这对理解各项功能的工作原理提供了极大的帮助。
黄铜炮塔的齿轮模型和纹理来自 Create。
钢制炮塔的纹理来自 Immersive Engineering。
Mekanism 炮塔的纹理来自 Mekanism。
Oritech 炮塔的纹理来自 Oritech。


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.
The Oritech turret is for the Oritech mod on NeoForge 1.21.1.
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 |
| Oritech |
200 |
6 |
64 |
1x |
1x |
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), oritech (Oritech). 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.
The Oritech turret's textures are from Oritech.
评论 0
登录后参与评分
还没有评论,来抢沙发吧