Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Light level

Comments in 'Plugin Development' started by Svile, Feb 18, 2016.

  1. Svile
    Offline

    Svile Active Member

    Joined:
    Mar 30, 2015
    Posts:
    239
    Minecraft User:
    svile
    [​IMG]

    when i place a torch:

    [​IMG]

    if i stop the server , the torch is saved but the light level isn't.

    How can i set and save a block light level ?
    PHP:
    /** var \pocketmine\level\Level */
    $level;
    /** var int */
    $x;
    /** var int */
    $y;
    /** var int */
    $z;

    $level->setBlockLightAt($x$y$z);
    Thanks :D
  2. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    It is. Snow+ice will melt, Mushrooms are only placeable when light level is low enough.

    And lightlevels must be send by server to client. Useless in my oppinion, due to it being something like graphic rendering etc.

    You can force a light level update. I'll check some code and send you the function @Svile
    False, try PocketMine, same bug, since 0.11
    Svile likes this.
  3. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan

Share This Page

Advertisement