Bandits are hostile mobs that spawn in a generated structure called a Bandit Camp. The Bandit Camp has tents made of staircases and beds, with chests, along with bandit spawners. Bandit Camps are generated in any biome as long as there is land. Bandits can also spawn naturally anywhere like hostile mobs. Bandits attacks does 3 hearts per hit and each hit they take an item from you. If they kill you, they take all your items (including what you wear) and make use of them. For example if they steal a potion or a sword, they will use them. If there is a bandit camp nearby, the items may get distributed between nearby bandits.