此数据包源自该视频。
我只是重新制作了该机器人,以便将其作为数据包在其他世界中使用。
安装
只需将数据包放入世界的 datapacks 文件夹中,并使用 /reload 命令重载即可。数据包将自动初始化。
命令
召唤机器人
/function macebot:action/summon
在你的位置生成 MaceBot。
获取工具书
/function macebot:give_book
给予你一本交互式书籍,其中包含用于控制机器人和各种实用功能的可点击命令。
配置命令(触发器)
所有玩家都可以访问这些触发器命令。如有需要,请使用 /scoreboard players enable @a <trigger_name> 启用触发器。
AI 控制
/trigger useAI set 1
启用机器人的 AI。
/trigger useAI set 0
禁用机器人的 AI。
盾牌使用
/trigger useShield set 1
启用机器人使用盾牌。
/trigger useShield set 0
禁用机器人的盾牌。
移动模式
/trigger movementMode
循环切换移动模式:
- 无 - 机器人不移动
- 最小 - 机器人最小限度移动
- 大量 - 机器人频繁移动
击退模式
/trigger knockbackMode
循环切换击退抗性模式:
- 低 - 低击退抗性
- 正常 - 正常击退抗性
- 高 - 高击退抗性
风弹模式
/trigger windChargesMode
循环切换风弹使用模式:
- 无 - 不使用风弹
- 偶尔 - 偶尔使用风弹
- 大量 - 频繁使用风弹
反应模式
/trigger reactionMode
循环切换反应速度模式:
- 即时 - 即时反应
- 正常 - 正常反应速度
- 缓慢 - 较慢的反应
其他命令
杀死机器人
/kill @e[tag=macebot,limit=1]
从世界中移除 MaceBot。
卸载
/function macebot:uninstall
卸载数据包(注意:目前不执行任何清理操作)。
提示
- 使用工具书(
/function macebot:give_book)可以通过可点击按钮轻松访问所有命令
- 通过组合不同的模式来调整机器人的难度(例如,高击退抗性 + 即时反应 = 更难)
- 机器人在头顶上方显示生命值,便于在战斗中追踪
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧