介绍
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
常见问题
MaceBot 支持哪些 Minecraft 版本?
MaceBot 支持 Minecraft Java 版 1.21.8。下载时注意选择和你游戏版本一致的文件。
MaceBot 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
评论
登录后评论和评分