tModLoader Time Limit - Apply game-altering effects after a set duration



Note: Requires Mod Helpers

Time Limit does what it says on the tin. Worlds can now be set with time limits to have configurable events take place. For example, to run a timer for 5 minutes that exits the game on completion, type this into the chat or server console:

/timer-start 300 exit false

List of commands:
  • timer-start <seconds> <action> <repeat> - Begins the timer with the given number of seconds before the given action is executed.
  • timer-stop <action> - Stops all timers of a given action.
  • timer-pause <action> - Pauses all timers of a given action.
  • timer-resume <action> - Resumes all paused timers of a given action.
  • timer-stop-all - Aborts all currently running timers.
  • timer-pause-all - Pauses all timers.
  • timer-resume-all - Resumes all paused timers.
List of actions:
  • none - No action. Timer exists for show only.
  • exit - Exits the server/returns to menu.
  • kill - All players die.
  • hardkill - All players die as if in hardcore mode (i.e. permadeath).
  • afflict - All players receive a permanent affliction as specified in the config file's 'Afflictions' (de)buff list.
  • unafflict - All players recover from permanent afflictions in the 'Afflicitions' list.
  • (custom action name) - Same as none, unless another mod implements the named action via. API.
See the Mod Helpers Control Panel for configuration options.

Source code now available. API now available (now featuring Mod.Call() bindings).


Requires tModLoader (+0.11). Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play.


Last edited:
  • Updated for TML11.5
  • Added ranges to some config settings
  • Fixed missing config Clone
  • Fixed expired timer for serverclose lingering for repeat sessions
  • Fixed 'unafflict' action
  • Updated to Mod Helpers v2.0.2
  • Renamed chat commands for readability
  • Fixed MP player load bug failsafe
  • Added debug messages for network packets
  • Added debug messages for commands and API calls
  • Added debug outputs for timer actions
  • Minor internal restructuring
  • Migrated to Mod Helpers v1.6.3
  • Migrated to C# 6
  • Fixed console commands
  • Dependency update; no changes
  • Added 'serverclose' action
  • Fixed some API errors
  • Added timer commands for adjusting timers of a given action (with API bindings)
  • Fixed API for custom actions
  • Internal refactoring
  • Revised net protocol (experimental)
  • Added API function GetTimersOf(string)
  • Minor bug fixes
  • Changed commands to World (single player) or Console (multiplayer)
  • Added Mod.Call() bindings for API
  • Added SaveModSettingsChanges, RunTimesUpAction, TimerStart, TimerAllStop, TimerAllPause, and TimerAllResume API functions
  • Changed old begin and end commands to 'timerstart' and 'timerallstop'
  • Added 'timerallpause' and 'timerallresume' commands
  • Added an 'unafflict' action option for the 'timerstart' command
  • Fixed multiplayer issues with commands
  • Internal refactoring
  • Tweaked timer display
  • Fixed repeating timers multiplayer desync issue
  • Fixed multiplayer
  • Fixed 'exit' command
  • Initial release.


  • TimeLimit
    33.3 KB · Views: 253
  • TimeLimit
    45.7 KB · Views: 239
  • TimeLimit
    45.8 KB · Views: 208
  • TimeLimit
    51.8 KB · Views: 208
  • TimeLimit
    54.6 KB · Views: 212
  • TimeLimit
    56.6 KB · Views: 189
  • TimeLimit
    61.6 KB · Views: 229
  • TimeLimit
    61.5 KB · Views: 199
  • TimeLimit
    58.8 KB · Views: 191
  • TimeLimit
    62.2 KB · Views: 187
  • TimeLimit
    41.2 KB · Views: 188
  • TimeLimit
    41.3 KB · Views: 219
  • TimeLimit
    41.7 KB · Views: 196
  • TimeLimit
    79.9 KB · Views: 158
  • TimeLimit
    80.2 KB · Views: 182
Last edited:
I'm not sure if I'm just not doing it right, but the Blackout debuff doesn't seem to apply correctly when using the afflict timer..
For the Afflictions config option, I have "Slow""Blackout", slow works but Blackout does not.
Well, I tried that, and the timer said i had Blackout, but the debuff wasn't applied (again, slow worked fine.)
EDIT: tried it again, and the debuff was applied..
Top Bottom