WeaponMechanics | Guns in Minecraft

WeaponMechanics | Guns in Minecraft 4.1.5

  • Dropped support for anything below 1.21.4
  • Added 1.21.4 support
  • New Recoil system
    • This works off of "forces" instead of static increments
    • The experience is much smoother, and prevents infinite climb
    • Mimics how AAA FPS handle recoil
  • New Durability system
    • Works off of the durability item component now
    • Shows durability bar
    • Automatically removes durability from the weapon after shooting
  • Dropped support for ProtocolLib... Use PacketEvents instead.



Here is an example of that new Recoil system:
YAML:
    Recoil:
      Mean_X: 0.3            # Slight horizontal pull
      Mean_Y: 1.6            # Stronger vertical recoil
      Variance_X: 0.3        # Some randomness left/right
      Variance_Y: 0.3        # Some randomness up/down
      Speed: 3.0             # Fairly snappy kick
      Damping: 0.1           # Prevents infinite climb
      Damping_Recovery: 0.15 # Steady recover toward center
      Smoothing: 0.4         # Smooth out big jolts
      Max_Accumulation: 15.0 # Caps max climb