Flagpoles, or Flags, are an entity used to easily end levels. It creates a trigger from 8 blocks above and everything below it. Everything else is an invisible wall.
The animation consists of the player sliding down the pole, bringing the flag with them. Once they reach the bottom, they start walking for 6 blocks or until they hit a solid object, where the player disappears. There is a delay while the timer counts down and fireworks are launched. If applicable, it then loads the next level, if not, the mappack is completed.