GithubHelp home page GithubHelp logo

michukcz / eternal-light Goto Github PK

View Code? Open in Web Editor NEW

This project forked from masstrix/eternal-light

0.0 0.0 0.0 28 KB

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

Java 100.00%

eternal-light's Introduction

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_"
}

eternal-light's People

Contributors

masstrix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.