Light Levels allows commands, or damage to be applied after a given time in various light level ranges. For a better idea of what you can do, check the config at the bottom of this post. By default this mod will apply 1 damage each second after 30 seconds in the light level range 0-5. If you step outside that light range, the 30 second timer will begin ticking down to 0. Meaning you need to spend 30 seconds outside light range 0-5 to be able to spend 30 seconds in it. This is a very similar functionality to what happens in the Deep Dark.
This mod is in an Alpha state meaning it is not feature complete, and it is possible there are bugs. The mod hasn't been tested on servers yet, and while it should still work fine you should be aware it may not. It doesn't do anything that should corrupt saves, or cause conflicts with other mods, but just in-case it is recommended to make a backup before installation.
Note: This will pick up light from placed blocks, it won't get light from dropped items, or held items (ie. Dynamic Light mod).
If you have any suggestions, or issues, you can contact me easiest via twitter @defiantdaniel. You might also visit my stream .
Modpacks
You are welcome to include this mod in a private or public modpack, as long as you give credit to: "twitch.tv/defiantdaniel", and do not have any form of monetization. By using the mod in a modpack, you agree that you will stop using it immediately if so requested by the mod author. [I really can't imagine this happening... but just in-case.]
Spotlights/Videos
None as of yet. It's really a serverside mod in its current state (that is to say, it takes place behind the scenes), so not the flashiest thing to put in a video. If you do make one and want it up here, contact me on twitter.
Future Plans
What I will work on next is a Gui Hud for light levels, one version will show the current light level 1-15, and another will display the current light range you are in, configurable in the options (or you can turn off the hud completely). This hud will be more accurate than your f3 light level, which lies to you. Eventually it is planned to extend the functionality of the mod to be able to have a custom set of actions for each dimension, be able to include other conditions such as height range, and be able to have an unlimited number of light ranges. It is even possible I will make a separate module that will harness darkness (or light depending on settings) for power generation, have dark/light items, and even dark/light mobs (Possibly only visible to practitioners of the opposite. So only wearing dark armor could you see light mobs, etc.). All depends on the support I receive for this mod.
Default Config
I include this because it's the most important part for modpack creators; What can you customize? It's important to note that the first range is 0-5 because being outside at night is actually light level 5, despite what it shows on the f3 display. Type command line actions exactly as you would in the game (eg. /effect @p 1 10). The commands will be executed by the server... It has not yet been tested how @p will work on servers with multiple players. Works fine in SP. Please note that timers decrease 1 per second when you are outside that light range, they don't immediately set to 0.
# Configuration file general { # Dimensions defined by id (ex. Overworld is 0) that this mod will act (or not act) in depending on whether it's a whitelist or blacklist. I:Dims < > # If true, vars in the "Dims" list will act as a white list. Otherwise dimension ids put there will turn the mod off in those dimensions. [Default = false] B:DimsWhiteList=false # If true, the mod will pause when the player enters water. Otherwise the mod will keep tracking light levels as normal. So the player will need to place light sources. [Default = false] B:WaterFlag=false }
"light 1" { # The items in "light 1" will effect the player only in this light range. The mod will take effect when the players light level is greater than the first number, and less than the second (MUST be smaller number first, and greater number second). You should be careful overlapping these. [Accepted values 0-15. Anything else will break the mod] I:LightRange1 < 0 5 > # Command line command to execute. S:LightRangeCmd1= # Damage to do to the player. [Default = 1.0] D:LightRangeDmg1=1.0 # The amount of time (in Seconds) the player must spend in this light level to initiate an action. (Set to -1 to disable actions for this light level) I:LightRangeTimer1=30 }
"light 2" { # The items in "light 2" will effect the player only in this light range. The mod will take effect when the players light level is greater than the first number, and less than the second (MUST be smaller number first, and greater number second). You should be careful overlapping these. [Accepted values 0-15. Anything else will break the mod] I:LightRange2 < 5 7 > # Command line command to execute. S:LightRangeCmd2= # Damage to do to the player. [Default = 1.0] D:LightRangeDmg2=1.0 # The amount of time (in Seconds) the player must spend in this light level to initiate an action. (Set to -1 to disable actions for this light level) I:LightRangeTimer2=-1 }
"light 3" { # The items in "light 3" will effect the player only in this light range. The mod will take effect when the players light level is greater than the first number, and less than the second (MUST be smaller number first, and greater number second). You should be careful overlapping these. [Accepted values 0-15. Anything else will break the mod] I:LightRange3 < 7 9 > # Command line command to execute. S:LightRangeCmd3= # Damage to do to the player. [Default = 1.0] D:LightRangeDmg3=1.0 # The amount of time (in Seconds) the player must spend in this light level to initiate an action. (Set to -1 to disable actions for this light level) I:LightRangeTimer3=-1 }
"light 4" { # The items in "light 4" will effect the player only in this light range. The mod will take effect when the players light level is greater than the first number, and less than the second (MUST be smaller number first, and greater number second). You should be careful overlapping these. [Accepted values 0-15. Anything else will break the mod] I:LightRange4 < 9 11 > # Command line command to execute. S:LightRangeCmd4= # Damage to do to the player. [Default = 1.0] D:LightRangeDmg4=1.0 # The amount of time (in Seconds) the player must spend in this light level to initiate an action. (Set to -1 to disable actions for this light level) I:LightRangeTimer4=-1 }
"light 5" { # The items in "light 5" will effect the player only in this light range. The mod will take effect when the players light level is greater than the first number, and less than the second (MUST be smaller number first, and greater number second). You should be careful overlapping these. [Accepted values 0-15. Anything else will break the mod] I:LightRange5 < 11 14 > # Command line command to execute. S:LightRangeCmd5= # Damage to do to the player. [Default = 1.0] D:LightRangeDmg5=1.0 # The amount of time (in Seconds) the player must spend in this light level to initiate an action. (Set to -1 to disable actions for this light level) I:LightRangeTimer5=-1 }
Light Levels allows commands, or damage to be applied after a given time in various light level ranges. For a better idea of what you can do, check the config at the bottom of this post. By default this mod will apply 1 damage each second after 30 seconds in the light level range 0-5. If you step outside that light range, the 30 second timer will begin ticking down to 0. Meaning you need to spend 30 seconds outside light range 0-5 to be able to spend 30 seconds in it. This is a very similar functionality to what happens in the Deep Dark.
This mod is in an Alpha state meaning it is not feature complete, and it is possible there are bugs. The mod hasn't been tested on servers yet, and while it should still work fine you should be aware it may not. It doesn't do anything that should corrupt saves, or cause conflicts with other mods, but just in-case it is recommended to make a backup before installation.
Note: This will pick up light from placed blocks, it won't get light from dropped items, or held items (ie. Dynamic Light mod).
_______________________________
Designed on stream by
Download
Forge 10.13.4.1448
Minecraft 1.7.10
Download from Curse Forge
Bugs/Contact
Please report bugs on the github here (under issues): https://github.com/defiantdaniel/lightlevels
If you have any suggestions, or issues, you can contact me easiest via twitter @defiantdaniel. You might also visit my stream .
Modpacks
You are welcome to include this mod in a private or public modpack, as long as you give credit to: "twitch.tv/defiantdaniel", and do not have any form of monetization. By using the mod in a modpack, you agree that you will stop using it immediately if so requested by the mod author. [I really can't imagine this happening... but just in-case.]
Spotlights/Videos
None as of yet. It's really a serverside mod in its current state (that is to say, it takes place behind the scenes), so not the flashiest thing to put in a video. If you do make one and want it up here, contact me on twitter.
Future Plans
What I will work on next is a Gui Hud for light levels, one version will show the current light level 1-15, and another will display the current light range you are in, configurable in the options (or you can turn off the hud completely). This hud will be more accurate than your f3 light level, which lies to you. Eventually it is planned to extend the functionality of the mod to be able to have a custom set of actions for each dimension, be able to include other conditions such as height range, and be able to have an unlimited number of light ranges. It is even possible I will make a separate module that will harness darkness (or light depending on settings) for power generation, have dark/light items, and even dark/light mobs (Possibly only visible to practitioners of the opposite. So only wearing dark armor could you see light mobs, etc.). All depends on the support I receive for this mod.
Default Config
I include this because it's the most important part for modpack creators; What can you customize? It's important to note that the first range is 0-5 because being outside at night is actually light level 5, despite what it shows on the f3 display. Type command line actions exactly as you would in the game (eg. /effect @p 1 10). The commands will be executed by the server... It has not yet been tested how @p will work on servers with multiple players. Works fine in SP. Please note that timers decrease 1 per second when you are outside that light range, they don't immediately set to 0.