Back to mods
LightAutomation project artwork

CurseForge · Hytale mod

LightAutomation

Automate your outdoors lighting! We're all very tired of having to go around the world, turning lights on and off at dusk and dawn ...

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which LightAutomation release should I use?

Updated last month
Latest stable file lightautomation-v1.2.1.jar
Game version 0.5
Mod system Built-in Hytale mod system

lightautomation-v1.2.1.jar targets 0.5. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should LightAutomation be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does lightautomation-v1.2.1.jar need?

lightautomation-v1.2.1.jar. Change the file and its required mods may change too.

No required dependencies listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add LightAutomation without breaking your instance.

Built for lightautomation-v1.2.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use lightautomation-v1.2.1.jar. It targets 0.5; another release may target a different game build or dependency set.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside lightautomation-v1.2.1.jar. It opens that exact file at the source.

About this project

What does LightAutomation add?

LightAutomation

A Hytale mod for automating lighting systems. We've all been there, having to go around the whole world at dawn and dusk just to turn lights on and off.

Features

  • Automatic Street Lights: Lights turn on at dusk and off at dawn
  • Smart Time Detection: Uses sunlight factor to detect precise dawn/dusk transitions
  • Player Light Tracking: Automatically tracks player-placed light sources
  • Persistence: Saves tracked lights across server restarts
  • Configurable Timing: Adjust when lights activate/deactivate
  • Easy Configuration: Simple configuration file with sensible defaults
  • Outdoor lights only: Lights placed indoors/in caves etc will not be automated

Installation

  1. Place the LightAutomation.jar file in your Hytale server's mods/ directory
  2. Start your server
  3. A configuration file will be automatically created
  4. Edit the configuration as needed

Player usage

Depending on the DefaultLogic configuration option all lights placed outdoors will either be automated by default, or not. A player can choose to interact with the light (turn it on, or off, depending on its state) once during the first 10 seconds it has been placed to either opt out of automation, or opt-in, again depending on what the default value is.

(This might seem complicated, but I found no way of detecting when a player changes the state of just any light in the current Hytale API)

Why are not all lights toggleable by default?

Most players probably assume torches won't go on and off, even if they're outdoors. Feedback on the mod will help decide what the configuration file default arrays will be here.

Configuration Options

The mod supports the following configuration options:

  • EnableLightAutomation: Enable/disable light automation functionality (true/false)
  • DefaultLogic: Whether placed lights are automated by default, or vice versa (on/off)
  • LoggingLevel: Level of logging detail (off, processing, debug)
  • DawnThreshold: Percentage of sunlight required to turn off lights (>0.000 and <1.000)
  • DuskThreshold: Percentage of sunlight required to turn on lights (>0.000 and <1.000)
  • ToggleableLightTypes: Array containing lights the mod should automate
  • StaticLightTypes: Array containing lights the mod should not automate

Caveat regarding dusk: Currently the Hytale API reports 0 sunlight well before the sun actually sets. I assume this to be a bug, but until it's fixed you'll likely want this to be 0.004 or something in that range.

Commands

  • /lightautomation - displays available commands
  • /lightautomation --version - displays version
  • /lightautomation --reload - reloads and applies updated configuration
  • /lightautomation --config - displays current configuration settings
  • /lightautomation --lights - shows tracked lights summary
  • /lightautomation --lights list - lists all tracked lights
  • /lightautomation --lights count - shows count of tracked lights
  • /lightautomation --lights types - lists trackable light types
  • /lightautomation --save - manually saves tracked lights
  • /lightautomation --clear - clears all tracked lights
  • /lightautomation --info - shows persistence information

License

Creative Commons Zero

Project description from CurseForge.

Pick your setup

LightAutomation releases for each Hytale build.

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

LightAutomation releases and Hytale builds

4 of 4 releases match

Looking for an older file? The official CurseForge project page is in Resources.