The magic was just an illusion created by giant cranes, pieces of heavy machinary, and edgey cloaked wood hermits that, due to the entire town having a poisoned water supply, were percieved to be invisible and could manipulate time by ringing bells that could knock people out.