Glitches out of pens and gates. But will stay put if you put it in a 1x2 room. Put trapdoor in ceiling and ladder inside and out so you can get in to feed it. Mine has been on wander in 1x2x1 room attached to my dodo hut since tame. Hasn't gotten loose.