This project is abandoned.

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

Day and night

With LightDetector you can create very simple light detectors which you can use in your redstone circuits!

This plugin is a rewrite of Rahazan's LightSensor. He couldn't update his plugin any more so I offered to take over the plugin :)


LightDetector uses the same setup as Rahazan's LightDetector. Lever as the switch with a glass block on top, as seen in this picture.

A picture showing the setup for a detector.

Check out the forums! You can find many more designs there.


  • Very simple detector setup - See pictures above.
  • Efficient - Only detectors in loaded chunks are activated.
  • Configurable - See the configuration settings.


  • None!


  • lightlevel: [0-15] - The light level needed to turn the power on.
  • skylightonly: [true/false] - Only detect light form the sun or all light (only in version 1.2 and later)
  • lightcheckinterval: [ticks] - The interval in which the detectors check if the light level changed. (20 ticks = 1 second)
  • invert: [true/false] - Inverts the detector meaning it will switch on when below set light level

To do list:

Let me know! :) I would like to keep this plugin simple though.

If you like what I'm doing. Consider donating :) Please use the donate button in the top right.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of josvth josvth Oct 10, 2012 at 21:16 UTC - 0 likes

    @TomyLobo: Go


    I'm sorry but I lost the source of the current uploaded version of this plugin some time ago. Since then I was working on a rewrite which is unfinished at its current state. You might be able to decompile the current .jar and work your way from that. If you get stuck somewhere or don't understand something send me a PM and I'll see if I can help you. In the mean time I'll dig up the rewrite of this plugin and try to make a working version.

    Greetings Josvth

  • Avatar of TomyLobo TomyLobo Oct 10, 2012 at 14:38 UTC - 0 likes

    The license says "GPLv3", but I see no source link. Could you post one please?

  • Avatar of darkdir darkdir Aug 24, 2012 at 09:38 UTC - 0 likes

    hello the sensor operates in unload chunk with wireless sign nearby magnificent sensorlight v2 of ethoslab not compete with your

    noter:wirelessredstone operates the Redstone 4 chunk(Adjustable) around the wireless sign even though i no player nearby

    sorry for bad english i'm french

  • Avatar of NewMilenium NewMilenium Jul 08, 2012 at 09:42 UTC - 0 likes

    Sorry for double post, but i found out more about the mechanic this bug is happening; it happens when a player disconnects then reconnects (cannot test with more than 1 player at the moment, so it can be linked with only disconnecting or only reconnecting). My McMyAdmin logs says abolutely nothing about it :

    " 11:46:55 CONSOLE: [INFOS] Connection reset

    11:46:55 CONSOLE: (hereismynickname) has left.

    11:46:55 CONSOLE:[INFOS] (hereismynickname) lost connection: disconnect.quitting

    11:46:59 CONSOLE:(hereismynickname) has logged in.

    11:46:59 CONSOLE:[INFOS] (hereismynickname) [/(hereismyIPandthePorticonnecton)] logged in with entity id 11698 at ([world] -680.7957793024652, 73.0, 1317.0585741263603)

    11:46:59 CONSOLE:[INFOS] (hereismynickname) joined with: [MinecraftForge, IC2 v1.97]

    11:46:59 moi:-> (hereismynickname)] Salut (hereismynickname)! "

    Thank you for any help you could provide. :-)

  • Avatar of NewMilenium NewMilenium Jul 08, 2012 at 09:26 UTC - 0 likes


    first, thank you for that wonderful plugin. The most updated one for bukkit, it seems.

    I have an issue with it though. I can't find why, but sometimes, after leaving an area with a light detector and coming back in later on, the lever won't react at all (stays in its state and will never changes it). It seems not to be related with the server automatic reboot everyday, neither with unloading the chunks and reloading them... I tried to "manually" fix it by adding a piston pushing and pulling the related glass block, but it's not making any difference.

    If i can help you fixing that, just tell me how, i'll be glad to help.

    I'm using the ported craftbukkit build 1.2.5-R4.0-SNAPSHOT-136 found on MinecraftPortCentral, their Industrial Craft ² mod ported build, plugins : Monster Apocalypse, Ptweaks, Bkcommonlib, essentials, essentialsspawn, mobtoggle, nolaggitemstacker and permissionsbukkit.

  • Avatar of Nomanoclass Nomanoclass Jun 10, 2012 at 14:47 UTC - 0 likes

    To create the light detector, one could simply tap the lever, because the glass block is not necessarily well in the landscape, thank you.

    (sorry for my english)

  • Avatar of paikurosaki paikurosaki May 29, 2012 at 22:16 UTC - 0 likes

    I cant seem to invert the light detector to get a day night timer for my redstone fact i cant seem to get the detector to work at all it says it was made then i try to hook up a lamp and it doesnt change at all from night to day it just constantly stays on

    Last edited May 29, 2012 by paikurosaki
  • Avatar of josvth josvth May 15, 2012 at 19:19 UTC - 0 likes

    @alexbrock: Go

    My honest apology for not responding to your comment. My finals are taking a way all my spare time! Here, have a special build made just for you! :P


  • Avatar of alexbrock alexbrock May 15, 2012 at 18:20 UTC - 0 likes

    Have to uninstall this. Shame really.

  • Avatar of alexbrock alexbrock May 08, 2012 at 21:52 UTC - 1 like

    Thank you so much for bringing this plugin back to its former glory - the new config is really nice, too :D

    I did find one problem though.. Setting the lever on a block that has a damage value (new style wood, colours of wool etc) will change the damage value of that block when the switch turns on! :( For example, light blue wool will turn in to dark blue and dark wood will turn in to regular light wood. You can bring back the right block if you take away and replace the lever.

    This is my config:

    debug: false
    invert: true
    lightlevel: 9
    skylightonly: false
    lightcheckinterval: 120

Should we change the detector setup?

  1. Choice:

  1. Results
  2. 1 comment


Date created
Apr 13, 2012
Last update
May 29, 2012
Development stage
  • enUS
GNU General Public License version 3 (GPLv3)
Recent files