Create a simple Minecraft Bedrock Edition (MCPE) Bodyguard Add-On as an MVP.
Bodyguard
Add a recruitable NPC called Bodyguard. It should have a tactical appearance and use a P90-style fictional Minecraft weapon to attack hostile entities.
Commands
When the player interacts with the Bodyguard, provide these commands:
- Follow Me — Bodyguard follows the player.
- Stay Here — Bodyguard stays at its current location.
- Attack — Bodyguard attacks a nearby hostile entity.
- Don't Attack — Bodyguard stops attacking.
- Defend Me — Bodyguard attacks hostile entities that attack the player.
Basic AI
- Follow the player when ordered.
- Attack hostile mobs when ordered or when defending the player.
- Never attack the player.
- Do not attack passive/friendly mobs.
- Have reasonable health and attack cooldown.
- If the Bodyguard becomes stuck or extremely far away, return it near the player.
Technical Requirements
Make this a proper Bedrock Add-On using a Behavior Pack and Resource Pack.
Keep it:
- Lightweight
- Mobile/MCPE friendly
- Simple to install
- Compatible with as many Bedrock versions as realistically possible
- Free of unnecessary features
First create the minimum working version with the Bodyguard, basic AI, commands, and attack system. Do not add advanced UI, ammunition systems, complex animations, or extra features yet.
Provide the required folder structure and complete files/code needed to test the MVP.