GUN banner
GUN icon

GUN

Create a detailed Minecraft mod featuring realistic firearms and melee weapons with the following specifications: - Weapon Types: - Revolvers - AK-47...

00
fabricServer1.20.1mod

GUN mod overview

What was built

  • Added a server-focused firearms and melee arsenal (revolver, AK-47, bolt/semi rifles, tactical SMG, light/heavy machine guns, grenade, five knife variants) plus craftable cobblestone bullets.
  • Implemented magazines with category-appropriate capacities (pistol 12, rifles 5/8, fast-fire 35–40, machine guns 200/270) and per-weapon damage/spread/cooldown tuning.
  • Added grenade entity with a short fuse, configurable block damage, and throwable grenade item.
  • Created status-effect knives with faster attack speeds and varied on-hit effects.

How it works

  • Ammo: craft bullets via 1 cobblestone shapeless recipe; guns consume bullets and will not fire when empty.
  • Reloading: sneak + right-click (or right-click when empty) to pull bullets from inventory into the magazine; action bar and sounds confirm reloads or empty clicks.
  • HUD: while holding a firearm, the action bar shows current ammo/magazine every few ticks.
  • Firing: right-click to shoot; shots spawn fast projectiles with light smoke and appropriate cooldowns; machine guns allow near-continuous fire.
  • Grenades: right-click throws a primed grenade (short fuse) that explodes; block damage toggled via gamerule gunGrenadeBlockDamage (default true).
  • Loot & crafting: all weapons/knives/grenades have recipes and are injected into shipwreck, pillager, desert temple, ancient city, village weaponsmith, and bastion loot tables alongside bullet bundles.
  • Knives: combat (weakness), hunting (self-regen), serrated (poison), tactical (slowness + knockback), dagger (light fatigue) with fast swing speeds.

Usage tips & notes

  • Keep bullets on hand; guns start empty and must be reloaded before first use.
  • Action bar ammo readout turns red at 0 and yellow when low to prompt reloads.
  • Switch gamerule gunGrenadeBlockDamage false if you want grenade blasts to spare terrain while keeping entity damage.
  • Items appear in the combat/ingredients creative tabs for testing or admin provisioning.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.