I was wondering if theres anyway to check if a user makes a redstone loop, and set it to air with code?
The only real way to do so, I think, would be tracing a redstone chain to see if it returned to its original location, I think probably putting it on a BlockPlaceEvent might be the best place if you were using this method. If you're looking for extremely short (1-tick) clocks and that kind of thing, it might be better to look for a RedstoneUpdateEvent and keep track of all the ones within your time-frame and see if the same location comes up a few times in a row in rapid succession.