This story set in a medieval world, where necromancy is forbidden by law, but openly deployed by the church to simulate hell.
There is a dedicated pool of fire just below the church of this kingdom, where criminals who are judged guilty (by the law) are executed and animated again and again to be tortured under various methods. Those criminals are animated with their flesh bodies and capable of suffering both mentally and physically. The flesh is capable of dying, of which they immediately reanimated again with new body. They are tortured under cycles of reanimation, according to their punishment, before they finally be allowed to rest eternally.
A murderer with mutilation may be subject to 10 cycles of continuous life of mutilation. Depending on the number victims, this may be increased indefinitely. Of course, afterward he will face other tortures if he is found guilty in other crimes.
Basic principal laws:
No killing (other human)
No stealing
No lying No adultery
A bit similar to the Ten Commandments
Small crimes
A shoplifter may only live 1 cycle of his hands chopped, but not executed immediately. The punishment will be carried out when he's dead.
Once you die, you will always be judged by the crimes you've committed, so there's no escaping the punishment.
Other vague crimes will be judged justly by the court of the church. The enforcement is a group of inquisitors. These people are unable to go against the law.
Given that the church preaches about the real hell, and anyone who is skeptic is invited to come and see for themselves the hell (anyone), and the repercussions for breaking the law, will this finally be the end of crime? If not, how can we slightly alter the system to achieve that?
Let's assume that the process is just, and the law itself is not corrupt. There is no god, and there is no misjudgement. There is also no pardon. There is no afterlife.