Skip to content

Cinescopes

Info

Available for LabyMod users with version greater than 3.7.7

Overview

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

Requirements

Example code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/**
 * 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
    LabyModPlugin.getInstance().sendServerMessage( player, "cinescopes", object );
}

Warning

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