Lua is a lightweight scripting language that is used by the game engine which runs Don't Starve. The core game is written in C++, although all game prefabs and modifications for the game are written in Lua. Lua is free to download and is released under the MIT license. To learn more about Lua, visit the official website at This typed scripting language is compact enough to fit on a variety of platforms. It supports only a small number of data structures such as boolean values, numbers, and strings. Lua implements a small set of advanced features such as first-class functions, garbage collection, closures, proper tail calls, coercion (automatic conversion between string and number values at run time), coroutines (cooperative multitasking) and dynamic module loading.

Don't Starve and Don't Starve Together use a slightly modified version of Lua 5.1.4.[1]

Placeholder TriviaEdit

  • "Lua" is not an acronym; it is the Portuguese word for "moon".
  • Lua is used in other games for content creation such as Garry's Mod and Empire: Total War.


Community content is available under CC-BY-SA unless otherwise noted.