Replacement Series
6-level Conjuration
You create a holy sanctuary dedicated to a specific deity at an empty point on the ground you can see within range. The temple occupies a cube up to 60 feet on each side.
The temple has at least one door and is enclosed by wood and stone floors, walls, and a roof. You determine all other aspects of its appearance (as long as it conforms to the worship of the deity to which it is devoted) such as altars, idols, illumination, rooms, scent, temperature, and windows.
Divination spells of 6th level and below can't target creatures within the temple or create sensors inside of it.
When you cast the spell, choose one or more of the following creature types for the temple to oppose: aberrations, celestials, elementals, fey, fiends, or undead. If such a creature attempts to enter the temple, it must make a Charisma saving throw. On a failure, it can't enter the temple for 24 hours. On a success, whenever it makes an attack roll, ability check, or saving throw inside the temple, it must roll a d4 and subtract the number rolled from the d20 roll.
Casting this spell on the same spot every day for a year makes the temple permanent.
At higher levels: When you cast this spell 7th level or higher, the casting time increases by 1 hour and the temple's size increases by 60 feet on each side for each spell level above 6th. The temple counters divination spells of a level less than or equal to the level used.