The Meaning of Life, the Universe, and Everything.
You can't. There is no AI for mobs. No PE/BE (Pocket Edition / Bedrock Edition) servers can support roaming and working mobs. You have to deal without it. If you really want mobs in your server, the only solution are Realms, which are supported on PE/BE.