I vaguely remember this steampunk movie I saw once when I was younger.
I remember there was a tower or tall building on an island in it.
There was also a foggy forest which contained a field with holes in it where tractor things would kill people.
The movie was about this teenage boy and his friends, a girl and another boy.
I remember his male friend got trapped in the field and the main boy had to go save him. The friend was chained by his legs to one of the holes in the ground and kept getting pulled back into it.
PS: It was live-action, in English, and in color. I remember it looking modern and I saw it as a kid so I think it was from the 2000s.