GrowLights
Building v1.3.0

GrowLights

by bmgjet · updated 24 days ago · 7 downloads · ☆☆☆☆☆ no reviews
GrowLights banner

Allows a wide range of Rust light sources to provide artificial light for growing plants, rather than limiting plant growth to the standard supported light sources.

# GrowLights

Allows a wide range of Rust light sources to provide artificial light for growing plants, rather than limiting plant growth to the standard supported light sources.

Features

* Supports multiple light types including:

* Ceiling Lights
* Industrial Wall Lamps
* Search Lights
* Simple Lights
* Siren Lights
* Spotlights
* Fluorescent Lights
* Chandelier Lights
* Table Lamps
* Fairy Lights
* Bulb String Lights
* Flasher Lights
* Gambling Lights
* Xmas Lights
* Automatically detects supported light sources near growables.
* Works with powered and switched-on lights.
* Automatically refreshes plant lighting when supported lights change state.
* Supports planter boxes and automatically recalculates plant qualities.
* Uses Harmony patches to extend Rust's native artificial-light calculations.
* Configurable light detection height and scan radius.
* Optional debug logging.
* Automatically validates and updates the configuration.

Configuration

{
  "Prefab IDs Uints": [
    1179002613,
    3414812695,
    790776081,
    13233315
  ],
  "Height Offset (0.5 = 50% of height offset)": 0.5,
  "Scan Radius Offset (1.5 = 150% of scan radius)": 1.5,
  "Enable Debug Logging": false
}

Settings

| Setting | Description |
| ---------------------- | --------------------------------------------------------------------- |
| Prefab IDs Uints | List of light prefab IDs that can provide artificial light to plants. |
| Height Offset | Adjusts the vertical position used when checking for nearby lights. |
| Scan Radius Offset | Multiplies the game's normal growable light detection range. |
| Enable Debug Logging | Enables error logging for troubleshooting. |

How It Works

GrowLights hooks into Rust's artificial light calculations. When a plant receives no normal artificial light, the plugin searches for configured light sources nearby. If a supported light is powered or switched on, the plant is treated as receiving artificial light.

The plugin also refreshes nearby growables when supported lights change state, allowing plants to immediately respond when lights are switched on or off.

Installation

1. Download GrowLights.cs.
2. Place it in your server's oxide/plugins folder.
3. Reload the plugin or restart the server.
4. Configuration is automatically generated in oxide/config/GrowLights.json.

Notes

The plugin is designed to extend Rust's existing growable lighting system without replacing it. It only applies its additional light detection when the game's normal artificial-light calculation does not already detect light.