Stone shape

From Ardrana

By means of the stone shape spell, the caster can form an existing piece of stone into any shape that suits his purposes. For example, he can make a stone weapon, a special trapdoor, or a crude idol. By the same token, it enables the spellcaster to shape a stone door, perhaps so as to escape imprisonment, providing the volume of stone involved is within the limits of the area of effect. While stone coffers can be thus formed, stone doors made, etc., the fineness of detail is not great. If the shaping has moving parts, there is a chance they do not work.

Note: This spell originally appeared in this form in the 2nd Edition Player's Handbook for Advanced Dungeons & Dragons from TSR. Its use here is for the purposes of providing context for the campaign only.