Guns&Stuff banner
Guns&Stuff icon

Guns&Stuff

Add Fabric mod for Minecraft 1.21 that adds guns with attachments, first- and third-person animations, reloadable ammunition, compatible with 1.21.5

10
fabricServer1.21mod

Guns&Stuff Summary

  • Added a server-side guns mod (mod id gunsstuff) for Minecraft 1.21.x with dependency range set up to 1.21.5.
  • Core gear: service_rifle (mag-fed hitscan rifle) and light_rounds ammo. The rifle auto-loads to a full magazine on first use, consumes ammo per shot, and respects item cooldowns to pace firing.
  • Attachments you can slot while sneaking: precision_scope (tighter spread, more range, slight damage bump), stabilizing_stock (faster follow-up shots, smoother handling), barrel_extension (straighter shots with a small damage boost), and extended_mag (larger magazines with a longer reload). Only one of each type fits at a time; sneak with an empty offhand to drop them back as items.
  • Controls and flow: right-click to fire; sneak + right-click to reload from carried light_rounds; sneak + right-click with an attachment in your offhand to install it. If out of ammo, the gun tries to reload before firing. Creative mode bypasses ammo consumption.
  • Combat/feel: firing and reloading broadcast swing animations and vanilla sounds so both first- and third-person views show the action. Shots are server-run hitscan traces with spread, range, and damage influenced by attachments, with crit particles on impact.
  • Data is stored via item components so ammo counts and attachments persist safely on the stack without relying on legacy NBT access.

Server Validation

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