Tick functions

This is a very Minecraft-esque file...