Author: Ash Blast
AI PvP Bot provides an opponent for practicing combat in a Bedrock world. Its advertised fighting style includes mace attacks, Elytra movement, spear attacks and healing, giving you a training target beyond ordinary hostile mobs.

Spawn and start
Use /scriptevent pvpbot:spawn to create the default bot. For a custom position and name, use /scriptevent pvpbot:spawn <x> <y> <z> <name>, replacing the placeholders with coordinates and your chosen name. Then start that opponent with /scriptevent pvpbot:start <name>. For the example name AshBlast0P_BOT_, the start command is /scriptevent pvpbot:start AshBlast0P_BOT_.
The supplied V2.1 update fixes movement, attack and combat issues. Bot creation and activation are separate steps: spawning an opponent alone is not the same as starting its AI. You need access to the listed commands in the world. Enable Beta APIs: the supplied file depends on the beta GameTest API.