Look at the default chest?
Just finished it/submitted it today
see, when I first tested the setDatablock script, it didn't change the bricks datablock = ""; variable, so I was using a check to see if it was still the same datablock as before, and instead using an Open = 0/1; variable with the setDatablock function
needless to say, it only opened and never closed