Sveark's Lua mod for 1.2+