/Eternal-Light

Adds the ability to show the light-levels of blocks around you.

Primary LanguageJava

Banner Adds the ability to show the light-levels of blocks around you.

Modes & Commands

Eternal Light is built to be simple and light weight while adding a useful feature, to keep it this way all the commands are kept basic and easy to learn and remember.

Commands

/eternallight reload Reloads the plugins config file.
/eternallight version Checks the plugins version.
/showlight or /ll Toggles the light level display.
/showlight mode Toggles between the active modes for the light level display.

Display Methods

  • Normal Displays red and yellow particles to show where hotile entities can spawn.
  • Inclusive Displays the same as normal but with green particles for where hostile entities cannot spawn.
  • Smooth Displays the same as inclusive but with a smooth gradient between each change.

API Usage

Theres not much of a point accessing any of this plugin but if you did want to you can do so using the shown ways.

public LightVisual getPlayersVisual(Player player) {
    return EternalLight.getInstance().getProjector().getVisual(player);
}

Adding and removing block tags to the API is simple.

public void exampleTagUsage() {
    EternalLightAPI api = EternalLight.getInstance().getAPI();
    api.setTag("stone", 0); // Sets stone to be opaque.
    api.setTag("long_grass", 1); // Sets long grass to be transparent.
    api.setTag("wood_stair", 2); // Set the tag for "wood_" to be transparent & solid.
    api.removeTag("wood_(.*)"); // Removes all entries that start with "wood_"
}