Description of Blackouts (Power Outages Mod)

The “Blackouts” mod adds a small chance of a power outage occurring at any time of the day, as well as the ability to automatically restore it after some time. All mod settings can be configured in the sandbox.

Features:

  1. Random power outages:
    • There is a possibility of random power outages at any time during the game.
    • Power may be restored automatically after some time.
  2. Settings in sandbox:
    • Ability to customize mod parameters in the sandbox according to your preferences.
  3. New trait with cost point:
    • Added a new trait that gives the player a lantern on their hand for illumination during a power outage.
  4. Permanent power outage:
    • The mod takes into account the standard date for the final power outage, but this date can be changed in the sandbox settings.
  5. Multiplayer Compatibility:
    • The mod is compatible with multiplayer game mode.

Debugging tools for modders and server administrators:

  • Ability to manually trigger power outage/restoration.
    • triggerEvent("BlackoutsForceShutoff")
    • triggerEvent("BlackoutsForceRestore")
  • Object for checking the status of the mod's server data.
    • BlackoutsEventHandler = require("BlackoutsEventHandler")
    • print(BlackoutsEventHandler.serverModData)
    • print(BlackoutsEventHandler.serverModData.cooldown)
    • print(BlackoutsEventHandler.serverModData.eventplaying)
    • print(BlackoutsEventHandler.serverModData.recoverytime)

Download Blackouts (Power Outages Mod)