Setting light level of blocks (1.7+)

Discussion in 'Plugin Development' started by CaLxCyMru, Feb 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    CaLxCyMru

    Hello there, is it possible to "create/generate" light on request? If so, how would this be achieved? I have looked through some old resources for 1.4, but the appear to be VERY broken. If anyone knows how to do this it would be great.
     
  2. I believe this is out of the capabilities of bukkit, cant find anything about it on the apidocs. Would most likely need a mod for this instead of a plugin
     
  3. Offline

    CaLxCyMru

    Nor could I.
    I have tried using this lib;
    http://forums.bukkit.org/threads/resource-server-side-lighting-no-it-isnt-just-client-side.154503/
    with no luck. It keeps saying "Bad compressed data" or something like. I mean, the creating works ( just throws that error off the the other players, the deleting; doesn't.
     
  4. Offline

    NathanWolf

    I use code from that thread. It doesn't throw an error for me, but also seems flaky and only works occasionally in 1.7

    I want to look into it more, but haven't had the chance.
     
  5. Offline

    CaLxCyMru

    Try it with multiple players, weird things start happening.
     
  6. Offline

    NathanWolf

    Yeah, I have had it randomly unload chunks for some players. It's definitely flaky, at best, in 1.7
     
  7. Offline

    CaLxCyMru

    So you don't think there is any other way of doing it?
     
  8. Offline

    NathanWolf

    I'm hoping there is, but honestly this is a little out of my league.

    I have a "light" spell that uses similar code, I'd like to get it functional at some point, but I don't really know.

    I've also seen it do some scary stuff like wipe sign text in the area... Not for the feint of heart, but here's my code. It's basically just a reflectionized version of the code from that thread (and in retrospect, doing this with reflection is probably a bad idea in this case!)

    https://github.com/elBukkit/MagicPl...makers/mine/bukkit/utilities/LightSource.java
     
  9. Offline

    CaLxCyMru

    Thanks Nathan. I'll take a look at it :)
     
    NathanWolf likes this.
  10. Offline

    NathanWolf

    Please let me know if you're able to fix it :)

    It's some pretty deep magic there....
     
Thread Status:
Not open for further replies.

Share This Page