NaKeR's Bedrock Camera Lib

NaKeR's Bedrock Camera Lib

A library replicating Minecraft Bedrock's ScriptAPI Camera APIs

by
155 Downloads
fabriclibrary
Rent Server with this Mod

About this Mod

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() or CameraManager.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.

Available Versions

NaKeR's Bedrock Camera Lib 1.0.0(R)release
MC 1.20.1fabric
March 12, 2025

How to Install NaKeR's Bedrock Camera Lib on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "NaKeR's Bedrock Camera Lib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.1

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

NaKeR's Bedrock Camera Lib server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is NaKeR's Bedrock Camera Lib compatible with fabric?

NaKeR's Bedrock Camera Lib officially supports fabric for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with NaKeR's Bedrock Camera Lib – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if NaKeR's Bedrock Camera Lib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install NaKeR's Bedrock Camera Lib with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Zero v1.0 Universal
Server-side
Unsupported

Supported Versions

1.20.1