We used to be given lines as pupils when we did something wrong, during a detention- so silly.
I always used to ask students to write an account of what they'd done wrong, and why they'd done it - then they had to read it aloud to me, next I'd go through it for errors, then they had to write out a fair copy (allegedly "For my files")..... that worked!
After all that palaver, rarely had to do it a second time with any child - from the same family, even.
Quite a while back I made a durable Dunce's Cap from buckram, for a friend, for an "Olden Days" school day. It was still kicking about last year! Pupils loved wearing it ... think we got something wrong there?
TY