Add AutoDig ChatBot

This commit is contained in:
BruceChen 2022-10-08 17:56:32 +08:00
parent 4cb95731bf
commit c57ac183d5
16 changed files with 579 additions and 64 deletions

View file

@ -495,6 +495,18 @@ bot.autoCraft.debug.no_config=No config found. Writing a new one.
bot.autocraft.invaild_slots=The number of slots does not match and has been adjusted automatically.
bot.autocraft.invaild_invaild_result=Invalid result item!
# AutoDig
bot.autodig.start_delay=Digging will start in {0:0.0} second(s).
bot.autodig.dig_timeout=Digging block timeout, retry.
bot.autodig.not_allow=The block currently pointed to is not in the allowed list.
bot.autodig.cmd=Auto-digging ChatBot command
bot.autodig.available_cmd=Available commands: {0}. Use /digbot help <cmd name> for more information.
bot.autodig.start=Automatic digging has started.
bot.autodig.stop=Auto-digging has been stopped.
bot.autodig.help.start=Start the automatic digging bot.
bot.autodig.help.stop=Deactivate the automatic digging bot.
bot.autodig.help.help=Get the command description. Usage: /digbot help <command name>
# AutoDrop
bot.autoDrop.cmd=AutoDrop ChatBot command
bot.autoDrop.alias=AutoDrop ChatBot command alias
@ -786,6 +798,18 @@ config.ChatBot.AutoCraft.CraftingTable=Location of the crafting table if you int
config.ChatBot.AutoCraft.OnFailure=What to do on crafting failure, "abort" or "wait".
config.ChatBot.AutoCraft.Recipes=Recipes.Name: The name can be whatever you like and it is used to represent the recipe.\n# Recipes.Type: crafting table type: "player" or "table"\n# Recipes.Result: the resulting item\n# Recipes.Slots: All slots, counting from left to right, top to bottom. Please fill in "Null" for empty slots.\n# For the naming of the items, please see:\n# https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
# AutoDig
config.ChatBot.AutoDig=Auto-digging blocks.\n# You can use "/digbot start" and "/digbot stop" to control the start and stop of AutoDig.\n# Since MCC does not yet support accurate calculation of the collision volume of blocks, all blocks are considered as complete cubes when obtaining the position of the lookahead.\n# For the naming of the block, please see https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs
config.ChatBot.AutoDig.Auto_Tool_Switch=Automatically switch to the appropriate tool.
config.ChatBot.AutoDig.Durability_Limit=Will not use tools with less durability than this. Set to zero to disable this feature.
config.ChatBot.AutoDig.Drop_Low_Durability_Tools=Whether to drop the current tool when its durability is too low.
config.ChatBot.AutoDig.Mode="lookat", "fixedpos" or "both". Digging the block being looked at, the block in a fixed position, or the block that needs to be all met.
config.ChatBot.AutoDig.Locations=The position of the blocks when using "fixedpos" or "both" mode.
config.ChatBot.AutoDig.Auto_Start_Delay=How many seconds to wait after entering the game to start digging automatically, set to -1 to disable automatic start.
config.ChatBot.AutoDig.Dig_Timeout=Mining a block for more than "Dig_Timeout" seconds will be considered a timeout.
config.ChatBot.AutoDig.Log_Block_Dig=Whether to output logs when digging blocks.
config.ChatBot.AutoDig.List_Type=Wether to treat the blocks list as a "whitelist" or as a "blacklist".
# ChatBot.AutoDrop
config.ChatBot.AutoDrop=Automatically drop items in inventory\n# You need to enable Inventory Handling to use this bot\n# See this file for an up-to-date list of item types you can use with this bot:\n# https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
config.ChatBot.AutoDrop.Mode="include", "exclude" or "everything". Include: drop item IN the list. Exclude: drop item NOT IN the list

View file

@ -478,7 +478,7 @@ bot.autoCraft.help.reload=重新加载配置文件。
bot.autoCraft.help.resetcfg=将默认示例配置写入默认位置。
bot.autoCraft.help.start=开始制作。用法:/autocraft start <配方名称>
bot.autoCraft.help.stop=停止当前正在进行的制作过程
bot.autoCraft.help.help=获取命令描述。用法: /autocraft help <命令名>
bot.autoCraft.help.help=获取命令描述。用法:/autocraft help <命令名>
bot.autoCraft.loaded=已成功加载
bot.autoCraft.start=AutoCraft启动中{0}
bot.autoCraft.start_fail=无法启动AutoCraft。请检查用于制作{0}的可用材料
@ -495,6 +495,18 @@ bot.autoCraft.debug.no_config=找不到配置。请新建一个。
bot.autocraft.invaild_slots=配方的物品数量不匹配,已自动调整。
bot.autocraft.invaild_invaild_result=无效的输出物品!
# AutoDig
bot.autodig.start_delay=将在 {0:0.0} 秒后开始自动挖掘。
bot.autodig.dig_timeout=挖掘方块超时,重试。
bot.autodig.not_allow=当前所看向的方块不在允许挖掘列表中。
bot.autodig.cmd=自动挖掘 ChatBot 命令
bot.autodig.available_cmd=可用命令:{0}。可使用 /digbot help <命令名> 了解更多信息。
bot.autodig.start=开始自动挖掘。
bot.autodig.stop=停止自动挖掘。
bot.autodig.help.start=开始运行自动挖掘。
bot.autodig.help.stop=停止运行自动挖掘。
bot.autodig.help.help=获取命令描述。用法:/digbot help <命令名>
# AutoDrop
bot.autoDrop.cmd=AutoDrop ChatBot命令
bot.autoDrop.alias=AutoDrop ChatBot命令别名
@ -786,6 +798,18 @@ config.ChatBot.AutoCraft.CraftingTable=如果你打算使用工作台,请填
config.ChatBot.AutoCraft.OnFailure=合成失败时应该怎么处理,"abort"(中止)或 "wait"(等待)。
config.ChatBot.AutoCraft.Recipes=Recipes.Name给该配方起一个独一无二的名字。不能包含空白字符Recipes.Type合成类型"player"背包2x2或 "table"工作台3x3\n# Recipes.Result合成的目标物品\n# Recipes.Slots合成的物品摆放方式以从左到右、从上到下的格式填写。需留空请填写"Null"。\n# 最新的物品命名请看https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
# AutoDig
config.ChatBot.AutoDig=自动挖掘方块。\n# 你可以使用 "/digbot start" 和 "/digbot stop" 指令来控制 AutoDig 的启停。\n# 由于MCC目前还不支持精确计算方块的碰撞体积在获取看向的方块时视线上所有的方块都被看作是完整的立方体。\n# 查询方块的名字,请访问 https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs
config.ChatBot.AutoDig.Auto_Tool_Switch=自动切换到合适的工具。
config.ChatBot.AutoDig.Durability_Limit=不会使用低于此耐久度的工具。(需要启用库存处理)
config.ChatBot.AutoDig.Drop_Low_Durability_Tools=在当前使用的工具耐久度过低后,是否丢掉它。
config.ChatBot.AutoDig.Mode="lookat""fixedpos" 或 "both"。挖掘看向的方块还是固定位置的方块,或者是两个条件都满足的方块。
config.ChatBot.AutoDig.Locations=使用 "fixedpos" 或 "both" 模式时,方块的坐标。
config.ChatBot.AutoDig.Auto_Start_Delay=进入游戏后等待多少秒后开始自动挖掘,设置为-1禁用自动开始。
config.ChatBot.AutoDig.Dig_Timeout=若挖掘一个方块用时超过这个值,将会重新获取目标进行挖掘。
config.ChatBot.AutoDig.Log_Block_Dig=是否输出挖掘方块的相关信息。
config.ChatBot.AutoDig.List_Type=将方块列表作为 "whitelist"(白名单)还是 "blacklist"(黑名单)。
# ChatBot.AutoDrop
config.ChatBot.AutoDrop=自动从背包/库存中丢弃指定的物品\n# 你需要启用库存处理来使用这个功能。\n# 可用物品请看 https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
config.ChatBot.AutoDrop.Mode="include"(丢弃列表中的物品),"exclude"(丢弃列表外的所有物品) 或 "everything"(丢弃所有物品)

View file

@ -495,6 +495,18 @@ bot.autoCraft.debug.no_config=找不到配置。請新建一個。
bot.autocraft.invaild_slots=配方的物品數量不匹配,已自動調整。
bot.autocraft.invaild_invaild_result=無效的輸出物品!
# AutoDig
bot.autodig.start_delay=將在 {0:0.0} 秒後開始自動挖掘。
bot.autodig.dig_timeout=挖掘方塊超時,重試。
bot.autodig.not_allow=當前所看向的方塊不在允許挖掘列表中。
bot.autodig.cmd=自動挖掘 ChatBot 命令
bot.autodig.available_cmd=可用命令:{0}。可使用 /digbot help <命令名> 瞭解更多資訊。
bot.autodig.start=開始自動挖掘。
bot.autodig.stop=停止自動挖掘。
bot.autodig.help.start=開始執行自動挖掘。
bot.autodig.help.stop=停止執行自動挖掘。
bot.autodig.help.help=獲取命令描述。用法:/digbot help <命令名>
# AutoDrop
bot.autoDrop.cmd=AutoDrop ChatBot命令
bot.autoDrop.alias=AutoDrop ChatBot命令別名
@ -786,6 +798,18 @@ config.ChatBot.AutoCraft.CraftingTable=如果你打算使用工作臺,請填
config.ChatBot.AutoCraft.OnFailure=合成失敗時應該怎麼處理,"abort"(中止)或 "wait"(等待)。
config.ChatBot.AutoCraft.Recipes=Recipes.Name給該配方起一個獨一無二的名字。不能包含空白字元Recipes.Type合成型別"player"揹包2x2或 "table"工作臺3x3\n# Recipes.Result合成的目標物品\n# Recipes.Slots合成的物品擺放方式以從左到右、從上到下的格式填寫。需留空請填寫"Null"。\n# 最新的物品命名請看https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
# AutoDig
config.ChatBot.AutoDig=自動挖掘方塊。\n# 你可以使用 "/digbot start" 和 "/digbot stop" 指令來控制 AutoDig 的啟停。\n# 由於MCC目前還不支援精確計算方塊的碰撞體積在獲取看向的方塊時視線上所有的方塊都被看作是完整的立方體。\n# 查詢方塊的名字,請訪問 https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Mapping/Material.cs
config.ChatBot.AutoDig.Auto_Tool_Switch=自動切換到合適的工具。
config.ChatBot.AutoDig.Durability_Limit=不會使用低於此耐久度的工具。(需要啟用庫存處理)
config.ChatBot.AutoDig.Drop_Low_Durability_Tools=在當前使用的工具耐久度過低後,是否丟掉它。
config.ChatBot.AutoDig.Mode="lookat""fixedpos" 或 "both"。挖掘看向的方塊還是固定位置的方塊,或者是兩個條件都滿足的方塊。
config.ChatBot.AutoDig.Locations=使用 "fixedpos" 或 "both" 模式時,方塊的座標。
config.ChatBot.AutoDig.Auto_Start_Delay=進入遊戲後等待多少秒後開始自動挖掘,設定為-1禁用自動開始。
config.ChatBot.AutoDig.Dig_Timeout=若挖掘一個方塊用時超過這個值,將會重新獲取目標進行挖掘。
config.ChatBot.AutoDig.Log_Block_Dig=是否輸出挖掘方塊的相關資訊。
config.ChatBot.AutoDig.List_Type=將方塊列表作為 "whitelist"(白名單)還是 "blacklist"(黑名單)。
# ChatBot.AutoDrop
config.ChatBot.AutoDrop=自動從揹包/庫存中丟棄指定的物品\n# 你需要啟用庫存處理來使用這個功能。\n# 可用物品請看 https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/Inventory/ItemType.cs
config.ChatBot.AutoDrop.Mode="include"(丟棄列表中的物品),"exclude"(丟棄列表外的所有物品) 或 "everything"(丟棄所有物品)