Robot Shark

The Robot Shark was a villain from James and the Giant Peach.

Movie
In the movie, The Robot Shark appears from the ocean and attacks the Peach. It fires multiple harpoons which penetrate the peach and cut the threads that connected the stem to the seagulls that were carrying the peach.

The Centipede loses his balance due to the shaking of the peach and falls. He grabs one of the wires of the harpoons and slips down into the machine's mouth.

After the Centipede is rescued, one of the harpoons gets stuck inside the spinning turbines of teeth the machine has. With the turbine clogged, the machine's inner mechanisms clash with each other and it explodes.