NaKeR's Bedrock Camera Lib
No reviews yet
A library replicating Minecraft Bedrock's ScriptAPI Camera APIs
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
NaKeR's Bedrock Camera Lib is a library for Minecraft Java (Fabric), which replicates Minecraft Bedrock's Script API Camera APIs
This mod is a library. It does not add/do anything on it's own.
This library adds similar camera APIs to the ones in bedrock!
Currently, supports setCamera and fade.
This library was written in Kotlin, so FLK is a dependency. The library contains a bunch of easings for you to make transitions!
Installation (for developers)
Add JitPack to your repositories:
maven { url 'https://jitpack.io' }
And add Bedrock Camera Lib to your dependencies:
modImplementation 'com.github.NaKeRNarolino:BECamera:<LIB_VERSION>-<MINECRAFT_VERSION>r'
Examples in both languages(Java and Kotlin).
Java
CameraManager.INSTANCE.setCamera(
new CameraData(
new Vec3d(30, 30, 30), // Camera location
new Vec3d(15, 15, 15), // The position the camera will be looking at
new EaseOptions(
Easings.INSTANCE::easeInOutBack, // Easing function for the transition
2500 // duration in ms
)
)
); // Setting a custom camera
CameraManager.INSTANCE.fade(new CameraFadeOptions(
Colors.WHITE, // Color (ARGB)
1500, // Fade in time, ms
2000, // Hold time, ms
1500 // Fade out time, ms
)); // Fading the camera
Kotlin
CameraManager.setCamera(
CameraData(
location = Vec3d(30.0, 30.0, 30.0),
targetLocation = Vec3d(15.0, 15.0, 15.0),
easeOptions = EaseOptions(
easing = Easings::easeInOutBack,
duration = 2500
)
)
) // Setting a custom camera
CameraManager.fade(
CameraFadeOptions(
fadeColor = Colors.WHITE,
fadeInTime = 1500,
holdTime = 2000,
fadeOutTime = 1500
)
) // Fading the camera
You can also use
CameraManager.clear()orCameraManager.INSTANCE.clear()to bring back player's camera state to the default one. Note that this does not affect fades.
Here's a video showcasing setCamera and fade.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers