NightSensor / Reverse Daylight Sensor
Notice
Vanilla Minecraft 1.8 includes switchable sensors, yay.
NightSensor
NightSensor allows you to turn a regular Daylight Sensor into a Night Sensor which acts the opposite way as the old one did.
The transformed sensors won't be powered between tick 13700 and 22310, other than that (at night) they are going to be fully powered (15 redstone strength).
Commands
Enter this command to transform a sensor (you have to right click on a sensor
afterwards):
/nightsensor
To remove a sensor just destroy it with a punch.
Permissions
nightsensor.admin
description: Allows you to create and destroy Night Sensors.
default: op
Config
work without command: false (if true right clicking a sensor will register it
anytime)
display messages: true (wether you get messages after registering and destroying
sensors)
admin destroy only: true (if true players without permission are prevented from
destroying nightsensors)
Planned features
- configurable dawn and dusk ticks
- configurable check interval (?)
- command to remove registered but not present sensors (cleanup)
- command to list sensors
- more accurate opposition of the original signal strength (maybe configurable)
Thanks to
- yurisuika for suggesting new features
-
View User Profile
-
Send Message
Posted Sep 25, 2013Can you make this plugin without commands, just make a nightsensor renaming a daysensor or something like that.
-
View User Profile
-
Send Message
Posted Sep 9, 2013Nice plugin thanks :D
-
View User Profile
-
Send Message
Posted Sep 2, 2013@fungreenfox
Thanks for the support, I'm glad you like it :)
-
View User Profile
-
Send Message
Posted Sep 2, 2013I have found great use for this plugin, and recommended it to another friend.
-
View User Profile
-
Send Message
Posted Sep 2, 2013@UnUltima23
This is the 3rd comment about regular redstone, please understand what the plugin does and that not everyone needs it.
-
View User Profile
-
Send Message
Posted Sep 1, 2013Or, you can just use an inverter with your redstone...
-
View User Profile
-
Send Message
Posted Sep 1, 2013@adventuretc
thanks :) !
-
View User Profile
-
Send Message
Posted Sep 1, 2013@ExTestEx
This has already been discussed, this way you can do the job with no extra blocks. (of course for street lamps, there are plugins which don't even need a light sensor)
-
View User Profile
-
Send Message
Posted Sep 1, 2013Nice plugin, but you can do this with regular redstone.
-
View User Profile
-
Send Message
Posted Sep 1, 2013@fungreenfox
Sorry for my late response, I've fixed it and uploaded 0.2, it will be available in a day or so.
-
View User Profile
-
Send Message
Posted Aug 29, 2013When a nightsensor is placed underneith a brick stairs roof, it turns the stairs around.
http://www.mcraft.dk/images/2013-08-30_06.38.10.png
-
View User Profile
-
Send Message
Posted Jul 1, 2013@The_Nut
Please check your PMs
-
View User Profile
-
Send Message
Posted Jun 27, 2013I too was sick of the limitation of just a daylight sensor and was about to write one as well. Glad you beat me to it. Are you going to post the source at github? If you do, I have some suggestions for it and will try to contribute to the development of it as well.
Suggestion 1: Have night sensor mappings: mappings.txt file with each line in the file in the format of "name:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" where the each position (0-15) represents the adjusted redstone power level based on where the original one would have been. example: default:15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
extreme:0,0,0,0,0,0,0,0,0,15,15,15,15,15
original:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
The default line would be an exact inverse of the daylight sensor in redstone output. The original line would be a zero change from the daylight sensor. The extreme line would give full redstone power for most of the day and turn completely off when the original level is at a 9 or lower.
The mappings in the file could be tied to a specific sensor that is stored in the sensors.txt file by appending the name at the end of the line. This could be accomplished by adding the name of the mapping at the end of /nightsensor command. (leaving it off for the default one) "/nightsensor extreme" sensors.txt
world,114,71,-78,default
world,114,75,-18,extreme
just my thoughts..... sorry if the suggestion is too much or unwanted.
Nut
-
View User Profile
-
Send Message
Posted Jun 16, 2013Heh, I just started planning this out myself (as I recently built a house where I wanted lampposts with lightsensors on top) - saves me some work :)
-
View User Profile
-
Send Message
Posted Jun 15, 2013you could do this with vanilla redstone although this is more compact
-
View User Profile
-
Send Message
Posted Jun 15, 2013thx for making this i have actually been looking for a plugin like this
-
View User Profile
-
Send Message
Posted Jun 15, 2013It is now available, I hope someone makes use of it :)
btw, actually this was a requested plugin
http://forums.bukkit.org/threads/light-sensor-toggle.153081/
-
View User Profile
-
Send Message
Posted Jun 15, 2013I do see one use for this, on outdoor street lamps where you place the redstone lamp on to of a fence pole and you only have to put the sensor on top of that again. The old way this would only result in those light to be on at day, with this they work at night and be off at day.
-
View User Profile
-
Send Message
Posted Jun 14, 2013Hmm, This plugin seems useless since redstone solves it all.
-
View User Profile
-
Send Message
Posted Jun 14, 2013good idea but as poonjab said just invert using redstone :S