Terraria logic in a nutshell