Skip to content

Cinescopes

Warning

Not available in LabyMod 4! Only available for LabyMod 3 users with version greater than 3.7.7

Overview

It is possible to use Cinescopes (Black bars) for gamemode cinematics.

Requirements

Example code

/**
 * Just send this packet to set the cinescope coverage
 *  0% - Disabled
 * 50% - Fully blind
 */
public void sendCineScope( Player player, int coveragePercent, long duration ) {
    JsonObject object = new JsonObject();

    // Cinescope height (0% - 50%)
    object.addProperty( "coverage", coveragePercent );

    // Duration
    object.addProperty( "duration", duration );

    // Send to LabyMod using the API
    LabyModProtocol.sendLabyModMessage( player, "cinescopes", object );
}

Warning

Make sure that the player has no items in the inventory.