
This datapack is derivated from this video. I simply recreated the bot to be used as a datapack in other worlds.
Installation
Simply place the datapack in your world's datapacks folder and reload with /reload. The datapack will automatically initialize.
Commands
Summon the Bot
/function macebot:action/summon
Spawns a MaceBot at your location.
Get Utility Book
/function macebot:give_book
Gives you an interactive book with clickable commands for controlling the bot and various utilities.
Configuration Commands (Triggers)
All players have access to these trigger commands. Enable triggers with /scoreboard players enable @a <trigger_name> if needed.
AI Control
/trigger useAI set 1
Enables the bot's AI.
/trigger useAI set 0
Disables the bot's AI.
Shield Usage
/trigger useShield set 1
Enables the bot to use a shield.
/trigger useShield set 0
Disables the bot's shield.
Movement Mode
/trigger movementMode
Cycles through movement modes:
- None - Bot doesn't move
- Minimal - Bot moves minimally
- A Lot - Bot moves frequently
Knockback Mode
/trigger knockbackMode
Cycles through knockback resistance modes:
- Low - Low knockback resistance
- Normal - Normal knockback resistance
- High - High knockback resistance
Wind Charges Mode
/trigger windChargesMode
Cycles through wind charge usage modes:
- None - No wind charges
- Barely - Occasional wind charges
- A Lot - Frequent wind charges
Reaction Mode
/trigger reactionMode
Cycles through reaction speed modes:
- Instant - Instant reactions
- Normal - Normal reaction speed
- Slow - Slower reactions
Other Commands
Kill the Bot
/kill @e[tag=macebot,limit=1]
Removes the MaceBot from the world.
Uninstall
/function macebot:uninstall
Uninstalls the datapack (Note: Currently doesn't perform any cleanup).
Tips
- Use the utility book (
/function macebot:give_book) for easy access to all commands with clickable buttons - Adjust the bot's difficulty by combining different modes (e.g., high knockback + instant reactions = harder)
- The bot displays health above its head for easy tracking during combat
