make the cube a monster and when this monster dies the corpse dissappears and his weapon( the block) is dropped as if it is his weapon. when you pick it up with "f" u get a little block weapon, when u left click it places that monster in the place were you clicked.