Lua calling a nil value
===

This is in minecraft specifically so some of this code may not make sense. 

when ran it says line 77 is calling a nil value

http://pastebin.com/RqWDpVqD

(sorry pastebin but the codes rather big for here)