Yea, but that is a glitchy way.
Also, how to get a brick's ID? is it getid();?
You can look at any existing object (other than a corpse since I can't figure out yet) with /getID, it tells the object ID, player class and distance from you. I think it is super admin only, or admin only, I don't remember which.