Перейти к содержимому
Mineforgian

Free camera API

Free camera mode and modify camera state flexible

Загрузки
32K
Подписчики
31
Обновлён
6 мая 2026 г.
Лицензия
GPL-3.0-or-later

Опубликован 26 августа 2024 г.

Free camera API V5

Logo

Free camera mode

Since version 3.2.0, the mod has included a built-in free camera feature, as many players were attracted by the mod's name only to discover that such functionality was not actually present.

By default, this feature is not bound to a key mapping and requires manual setup. Block collision detection is enabled by default and can be disabled via the configuration interface. If the mod is not installed on the server, it will be force-enabled; otherwise, it will follow the server's settings.

What are the advantages?

  • Decouples from camera internals, reducing complexity.
  • Simple and flexible usage.
  • Supports loading chunks beyond the player's view range (with expansion).​

How to Register and Use the Plugin

  1. Create the plugin class

    @Plugin(value = "example", priority = ModifierPriority.LOWEST)
    public class ExamplePlugin implements CameraPlugin {
        // ...
    }
    

    value: Plugin unique identifier (string)
    priority: Priority setting (ModifierPriority.HIGH/LOWEST etc.)

  2. Initialization

    public ExamplePlugin(CameraModifier modifier) {
        modifier.disable()
                .enablePos()
                .enableFov()
                .enableGlobalMode();
    }
    
  3. Update camera data every frame

    modifier
                .enablePos() // Enable position modification
                .enableRotation() // Enable rotation modification
                .enableFov() // Enable FOV modification
                .setPos(1, 2, 3) // Set camera position to (1,2,3), default is local coordinates centered on player
                .addPos(1, 2, 3)
                .setRotationYXZ(90f, 15f, 25f) // Set camera rotation to (90f, 15f, 25f)
                .move(0, 0, -5) // Move camera based on current rotation
                .enableGlobalMode() // Enable global mode, all coordinates and rotations will be modified according to world coordinates
                .enableChunkLoader() // Enable chunk loader, load chunks around the camera. An additional Free Camera API Addition mod needs to be installed to enable this feature, otherwise it will have no effect
                .enableObstacle() // Enable collision detection
    

Gallery

Dolly zoom Roll

Ченджлог

5.1.1-betaБета26.1.2 · 6 мая 2026 г.

Fix can't create camera data type

5.1.0-betaБета26.1.2 · 5 мая 2026 г.

Add data attach for camera modifier

5.0.0-betaБета26.1.2 · 4 мая 2026 г.

Update to 26.1.2. Fix some bug.

4.0.0-betaБета1.21.11 · 13 декабря 2025 г.

Optimized the file structure, modified class names to more reasonable ones, and completely moved all content related to extension features to the auxiliary module.

3.2.0Релиз1.21.1 · 12 ноября 2025 г.

Port V3 to 1.21.1

3.2.1Релиз1.21.7, 1.21.8 · 9 ноября 2025 г.

Fix the issue where movement continues after pausing and resuming the game during flight when using zoom.

3.2.0Релиз1.21.9, 1.21.10 · 9 ноября 2025 г.

Port to 1.21.9-1.21.10

3.2.0Релиз1.21.7, 1.21.8 · 8 ноября 2025 г.

Built-in Free Camera Mode "Zoom"

Комментарии

Загружаем…