promotional bannermobile promotional banner

Camera Shake Lib

A library that lets devs add smooth camera shake effects with a single line of code.
Back to Files

camera-shake-lib-1.1.0.jar

File namecamera-shake-lib-1.1.0.jar
Uploader
RijzRijz
Uploaded
Nov 11, 2026
Downloads
3
Size
30.4 KB
Mod Loaders
Fabric
File ID
9554976
Type
R
Release
Supported game versions
  • 26.3
  • 26.2
  • 26.1.2
  • 26.1.1
  • 26.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:camera-shake-lib-1784802:9554976"

Learn more about Curse Maven

What's new

Added

  • Added ShakeInstance.copy() to copy a shake's settings and remaining time.

Changed

  • Applied existing 1200 tick command limit to API shakes using shared ShakeInstance.MAX_TICKS constant.
  • Limited each client to 64 active shakes. New requests are skipped while the limit is reached.
  • Added checks for NaN and infinity in shake strength, frequency, and the radius passed to sendNearby(). Invalid requests are skipped. Creating a ShakeInstance with invalid strength or frequency, or passing an invalid frequency to freq(), throws an error.

Fixed

  • Active shakes now clear when you disconnect.
  • Each shake plays from its own copy, so you can reuse a ShakeInstance without affecting playback. Finished instances are skipped.
  • Client now clears shakes only when it receives explicit stop message from the server.
  • Used more precise math when combining the angles of multiple shakes.

Full Changelog: https://github.com/Rijzzz/camera-shake-lib/compare/v1.0.0...v1.1.0

This mod has no additional files