Complete field-by-field reference for data/<ns>/data/guns/<id>_data.json covering ammo, bolt types, bullet physics, extra_damage, reload timings, heat and recoil.
File Location and Complete Skeleton
Every TaCZ firearm's server-side gameplay behavior lives in data/<namespace>/data/guns/<id>_data.json, linked from the gun index file ("data": "<namespace>:<id>_data"). Because this file runs on the server, every change to damage, RPM, ammo capacity, penetration or recoil applies cleanly in multiplayer without desyncing clients.
Below is a clean, production-ready template modeled on TaCZ 1.1+ conventions showing the essential top-level keys:
{
"ammo": "tacz:762x39",
"ammo_amount": 30,
"extended_mag_ammo_amount": [34, 37, 40],
"bolt": "closed_bolt",
"rpm": 600,
"bullet": {
"life": 0.8,
"bullet_amount": 1,
"damage": 9,
"speed": 250,
"gravity": 0.15,
"knockback": 0,
"friction": 0.02,
"ignite": {"entity": false, "block": false},
"ignite_entity_time": 2,
"pierce": 1,
"tracer_count_interval": 0,
"extra_damage": {
"armor_ignore": 0.25,
"head_shot_multiplier": 1.5,
"damage_adjust": [
{"distance": 30, "damage": 9},
{"distance": 60, "damage": 7.5},
{"distance": "infinite", "damage": 6}
]
}
},
"reload": {
"type": "magazine",
"infinite": false,
"feed": {"empty": 2.25, "tactical": 1.55},
"cooldown": {"empty": 2.60, "tactical": 2.00}
},
"draw_time": 0.35,
"put_away_time": 0.57,
"aim_time": 0.2,
"sprint_time": 0.2,
"weight": 3.5,
"movement_speed": {"base": 0.0, "aim": -0.2, "reload": -0.15},
"fire_mode": ["auto", "semi"],
"allow_attachment_types": ["scope", "stock", "muzzle", "extended_mag"]
}Ammo, Bolt Mechanics, RPM and Fire Modes
The firing cycle is governed by bolt, rpm, fire_mode, and optional burst_data or fire_mode_adjust overrides. Choosing the right bolt value changes both magazine capacity behavior (+1 in the chamber) and post-shot cycling:
| JSON Key | Valid Values / Type | Gameplay Effect |
|---|---|---|
ammo | "ns:ammo_id" | Calibre item ID consumed on reload (e.g. tacz:556x45). |
ammo_amount | Positive integer | Base magazine capacity before extended mags. |
extended_mag_ammo_amount | 3-integer array [L1, L2, L3] | Total magazine capacity for Extended Mag Levels 1, 2, and 3. |
bolt | closed_bolt, open_bolt, manual_action | closed_bolt keeps +1 round chambered on tactical reload; open_bolt has no +1 chamber; manual_action cycles the bolt after every shot using bolt_action_time. |
rpm | Integer (<= 1200) | Cyclic fire rate in rounds per minute (max 1200 for 20 TPS tick pacing). |
fire_mode | Array of auto, semi, burst | Selectable fire modes cycled with the fire-select key (first entry is default). |
burst_data | {continuous_shoot, count, bpm, min_interval} | Configures burst count, intra-burst RPM (bpm), pause between bursts in seconds, and hold-to-repeat. |
fire_mode_adjust | Per-mode additive object | Adds flat offsets to damage, rpm, speed, knockback, armor_ignore, head_shot_multiplier, aim_inaccuracy, and other_inaccuracy per fire mode. |
Bullet Physics, Extra Damage and Special Effects
Everything that happens after the projectile leaves the muzzle lives inside bullet. Remember that bullet.damage is whole-shot damage: if bullet_amount is 8 on a shotgun, each pellet receives damage / 8. Setting tracer_count_interval to 0 makes every round a tracer, 3 makes every fourth round a tracer, and omitting it disables tracers entirely.
Inside bullet.extra_damage, armor_ignore (0.0 to 1.0) lets that fraction of damage bypass armor points (not enchantments), head_shot_multiplier scales head hits, and damage_adjust defines a piecewise distance table where each distance is the upper edge of that damage band. You MUST end damage_adjust with {"distance": "infinite", "damage": ...} or targets beyond the final distance receive zero damage. Optional bullet.explosion supports explode, delay (seconds), radius (blocks), damage, knockback, and destroy_block (subject to server config).
- Trajectory physics:
speed(m/s),gravity(vertical drop per tick),friction(air drag 0..1), andlife(lifespan in seconds) automatically determine maximum range via(speed / 20) * (1 - (1 - friction)^(life * 20)) / friction. - Penetration & fire:
piercesets the maximum entities one projectile can pass through (1= stops on first target), whileignite: {"entity": true, "block": false}withignite_entity_timelights targets on fire. - Sound radius: Top-level
fire_sound(fire_multiplier,silence_multiplier) scales how far gunshots carry in world space.
Reload Modes, Handling Timers, Weight, Overheat and Logic Scripts
Reload behavior uses reload.type (magazine standard mag swap, fuel single-item full refill, inventory direct draw from inventory stacks with no magazine, or manual for custom script-driven shell-by-shell loading). Setting reload.infinite: true gives infinite reserve ammo (incompatible with inventory mode). Always guarantee feed.empty <= cooldown.empty and feed.tactical <= cooldown.tactical.
Handling timers are declared in seconds: draw_time, put_away_time, aim_time, sprint_time, and bolt_action_time (only when bolt is manual_action). Mobility uses weight (kg, default -1.5% move speed per kg) plus movement_speed (base, aim, reload) applied as MULTIPLY_TOTAL modifiers. Optional heat adds an overheat gauge (max, per_shot, cooling_multiplier, cooling_delay, over_heat_time, plus linear scaling bounds min_inaccuracy/max_inaccuracy and min_rpm_mod/max_rpm_mod). Advanced packs can also attach a server logic script via script (e.g. "tacz:xmag_reload_logic") and script_param to give extended mags custom reload timings.
Recoil, Inaccuracy, Melee and Attachment Slots
Finish every gun data file by defining its handling feel and customization boundaries:
- Create your data file under
data/<namespace>/data/guns/<gun>_data.jsonand link it from the matchingindex/guns/<gun>.jsonentry. - Define core combat fields first:
ammo,ammo_amount,rpm,bolt,fire_mode, andbullet.damage. - Add realistic handling curves with
reload,recoil.pitch,recoil.yaw, andinaccuracyvalues for standing and aiming. - Validate JSON syntax and numeric bounds in
/tools/validator/before reloading the pack in-game with/tacz reload.
recoil&crawl_recoil_multiplier:pitchandyawarrays of at least two{"time", "value": [min, max]}keyframes ending at[0, 0], plus prone recoil scaling (default1.0, commonly0.5) and optionalrecoil_pushknockback.inaccuracy&hurt_bob_tweak_multiplier: Mutually exclusive spread cones in degrees (stand,move,sneak,lie,aim), plus damage camera flinch dampening (default0.05).melee: Sets gun meleedistanceandcooldown(added to bayonet stats) plusdefault(animation_type:melee_pushormelee_stock,distance,range_angle,cooldown,damage,knockback,prep).allow_attachment_types&builtin_attachments: Opens slots (scope,stock,muzzle,grip,laser,extended_mag).builtin_attachmentsrenders cosmetic default parts when a slot is empty without applying their stat data.
Common Mistakes & Fixes
- Setting reload.feed higher than reload.cooldown: If
feedexceedscooldown, the reload state finishes before the server ever feeds ammo, leaving the gun stuck unable to reload cleanly. Always makefeed <= cooldownfor bothemptyandtactical. - Leaving out the infinite tail inside bullet.extra_damage.damage_adjust: Add
{"distance": "infinite", "damage": <floor>}as the final entry in everydamage_adjustarray; otherwise hits beyond the last distance step deal 0 damage. - Combining reload.type: "inventory" with reload.infinite: true: TaCZ explicitly flags
infinite: trueas incompatible withinventorydirect-feed mode. Usemagazinewithinfinite: trueinstead if you want unlimited reserve ammo. - Forgetting bolt_action_time when bolt is set to manual_action: Manual-action bolt rifles and pump shotguns need
bolt_action_time(in seconds, synced to yourboltanimation) so the cycling delay and animation play properly.
Frequently Asked Questions
What is the practical gameplay difference between closed_bolt, open_bolt, and manual_action?
closed_bolt rifles retain one chambered round on tactical reloads (allowing 30+1 rounds), open_bolt SMGs and LMGs feed straight from the magazine with no +1 chambered round, and manual_action forces a bolt-cycle pause (bolt_action_time) after every shot.
How do I disable crawling or sliding tilt on a heavy minigun or launcher?
Set "can_crawl": false and "can_slide": false at the top level of the gun's _data.json file.
Why does my shotgun's tooltip divide my bullet.damage number by 8?
Because TaCZ treats bullet.damage as total shot damage across all pellets (bullet_amount). With damage_style: "per_projectile", the tooltip shows per_pellet x pellets (for example 4 x 8 when damage is 32 and bullet_amount is 8).
Can I edit and validate a TaCZ gun data file visually without memorizing every JSON key?
Yes. Load your pack into /tools/packmaker/ to edit common stats in a guided form or raw JSON tab, check recoil curves in /tools/recoil/, and verify every field in /tools/validator/.