Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Lets you change the radius and intensity of lights and turn them on and off all on-the-fly, as well as lets you add custom light sources to existing object types.

Requirements
Permissions and credits
Changelogs
Donations
Light Manipulation

To adjust the intensity of an object's light source, hover over its base tile and use the scroll wheel. For smaller incremental changes, hold down Left Shift or for even smaller changes Left Control. This also works for ambient light glows (sunlight, etc.).

To adjust the radius of an object's light, hover over its base tile and use the scroll wheel while holding down Left Alt. For smaller incremental changes, hold down Left Shift or for even smaller changes Left Control.

To turn a light on or off manually, hover over its base tile and press the middle mouse button. Note that lights will not turn on during the day time.


Custom Light Sources

You can use Content Patcher to add a custom light source that uses either one of the game's 9 built-in light textures, or create your own png file to use as a light texture.

Here is an example of both:

{
"Format": "1.23.0",
"Changes": [
{
"Action": "EditData",
"Target": "aedenthorn.LightMod/dictionary",
"Entries": {
"Plush Bunny": {
"color": {
"R": 150,
"G": 50,
"B": 50,
"A": 255
},
"textureIndex": 4,
"radius": 1,
"offset": {
"X": 32,
"Y": 0
},
"isLamp": true
},
"Wicked Statue": {
"color": {
"R": 255,
"G": 255,
"B": 255,
"A": 255
},
"texturePath": "CLSWickedStatueLight",
"textureFrames": 20,
"frameWidth": 240,
"frameSeconds": 0.1,
"radius": 2,
"offset": {
"X": 32,
"Y": 0
},
"isLamp": true
}

}
},
{
"Action": "Load",
"Target": "CLSWickedStatueLight",
"FromFile": "assets/purple.png"
}
]
}


If you specify a texture path, it will ignore textureIndex. Valid texture indexes (for lights without custom texture files) are:

  • 1 (lantern)
  • 2 (window)
  • 4 (sconce)
  • 5 (cauldron)
  • 6 (indoor window)
  • 7 (projector)
  • 8 (fish tank)


Animated textures can use the following extra fields:

textureFrames
refers to how many frames animated textures have. Place frames horizontally in a single row on the graphics file.
frameWidth is how many pixels wide each frame is on the sheet.
frameSeconds is how many seconds each frame should last.


Config

You can edit the config.json file that is created when first running the game or use GMCM.


Technical

Requires SMAPI.

Implements a Generic Mod Config Menu interface to change config settings in-game.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.