Back to mods
i113w's Camera Lib project artwork

CurseForge · Minecraft mod

i113w's Camera Lib

A Lib that provides the RTS Style Camera System which is used by Better Mine Team.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which i113w's Camera Lib release should I use?

Updated 4 days ago
Latest stable file i113w_camera_lib-1.20.1-0.0.4.jar
Game version 1.20.1
Loader Forge

i113w's Camera Lib i113w_camera_lib-1.20.1-0.0.4.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is i113w's Camera Lib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does i113w's Camera Lib i113w_camera_lib-1.20.1-0.0.4.jar need?

i113w_camera_lib-1.20.1-0.0.4.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add i113w's Camera Lib without breaking your instance.

Built for i113w's Camera Lib i113w_camera_lib-1.20.1-0.0.4.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use i113w_camera_lib-1.20.1-0.0.4.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside i113w_camera_lib-1.20.1-0.0.4.jar. It opens that exact file at the source.

About this project

What does i113w's Camera Lib add?

i113w's Camera Lib

A NeoForge 1.21.1 client-side library that provides a complete RTS-style camera system — including camera movement, entity box-selection, right-click command zones, ray casting, and highlight rendering.

Designed to be consumed by other mods (e.g., Better Mine Team) via a thin API layer.


Requirements

Item Version
Minecraft 1.21.1
NeoForge 21.1.209+
Java 21
Side Client-only

Importing the Library

Local JAR (place the JAR in your mod's libs/ directory):

dependencies {
    implementation files('libs/i113w_camera_lib-0.0.1.jar')
}

Declare the dependency in META-INF/neoforge.mods.toml:

[[dependencies."your_mod_id"]]
    modId = "i113w_camera_lib"
    type = "required"
    versionRange = "[0.0.1,)"
    ordering = "BEFORE"
    side = "CLIENT"

Key Interfaces & Classes

CameraLibAPI — singleton entry point

CameraLibAPI api = CameraLibAPI.get();

// Register your delegate
api.setInteractionDelegate(new MyDelegate());

// Sync selected entity IDs to the library (drives outline rendering)
api.setSelectedEntities(Set<Integer> ids);

// Query hovered entity (-1 if none)
int id = api.getHoveredEntityId();

// Clear selection and hover state
api.clearSelection();

IRTSInteractionDelegate — inject business logic

public interface IRTSInteractionDelegate {
    boolean isSelectable(Entity entity);
    ResourceLocation getCursorIcon(@Nullable Entity hoveredEntity, boolean isAttackDragging);
}

Register via CameraLibAPI.get().setInteractionDelegate(impl).


Events (fired on NeoForge.EVENT_BUS)

RTSBoxSelectEvent — left-click or drag-box completed

@SubscribeEvent
public static void onSelect(RTSBoxSelectEvent event) {
    List<Entity> candidates = event.getCandidates(); // pre-filtered by isSelectable()
}

RTSRightClickEvent — right-click or right-drag completed

@SubscribeEvent
public static void onRightClick(RTSRightClickEvent event) {
    if (event.isDrag()) {
        List<Entity> targets = event.getDragTargets();
    } else {
        HitResult hit = event.getSingleHitResult(); // BlockHitResult or EntityHitResult
    }
}

RTSCameraController — camera state

RTSCameraController cam = RTSCameraController.get();

cam.toggleRTSMode();      // activate / deactivate
cam.toggleCameraStyle();  // switch RTS <-> FREE (while active)
cam.isActive();           // boolean
cam.reset();              // force-exit, use on logout / level unload

Camera Modes

Mode FOV Zoom Yaw Rotation
RTS 25° (fixed) Scroll wheel Hold Left Ctrl + drag (snaps by rtsSnapAngle)
FREE Standard Scroll wheel (moves forward) Hold Left Ctrl + drag (continuous)

Highlight Rendering

The library automatically draws entity outlines when the camera is active. No rendering code is needed in the consumer mod — just keep CameraLibAPI.setSelectedEntities(...) in sync.

Color Condition
White Entity ID is in the selected set
Yellow Hovered entity (not in selected set)

Configuration

Player-adjustable values in .minecraft/config/i113w_camera_lib-client.toml:

Key Default Description
rtsPitchMin / Max 35 / 45 Pitch clamp range in RTS mode
freePitchMin / Max 10 / 90 Pitch clamp range in FREE mode
rtsZoomMin / Max 10 / 80 Zoom distance clamp in RTS mode
rtsZoomSpeedMultiplier 3.5 Scroll wheel zoom sensitivity
rtsSnapAngle 90 Degrees per yaw snap step
freeRotationSpeed 5.0 Mouse yaw sensitivity in FREE mode
thresholdPx 20 Edge-pan trigger distance (pixels from screen edge)
baseSpeed 1.0 WASD movement speed
sprintMultiplier 2.0 Speed multiplier when sprint key is held

License

MIT — see LICENSE

Author: i113w

Project description from CurseForge.

Pick your setup

i113w's Camera Lib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

3 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

i113w's Camera Lib versions and loaders

10 of 10 releases match

Looking for an older file? The official CurseForge project page is in Resources.