mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge AutoFishing's config
This commit is contained in:
parent
642a85661f
commit
48fcdce4ad
4 changed files with 16 additions and 7 deletions
|
|
@ -56,8 +56,16 @@ namespace MinecraftClient.ChatBots
|
||||||
[TomlInlineComment("$config.ChatBot.AutoFishing.Log_Fish_Bobber$")]
|
[TomlInlineComment("$config.ChatBot.AutoFishing.Log_Fish_Bobber$")]
|
||||||
public bool Log_Fish_Bobber = false;
|
public bool Log_Fish_Bobber = false;
|
||||||
|
|
||||||
[TomlInlineComment("$config.ChatBot.AutoFishing.Movements$")]
|
[TomlInlineComment("$config.ChatBot.AutoFishing.Enable_Move$")]
|
||||||
public LocationConfig[] Movements = Array.Empty<LocationConfig>();
|
public bool Enable_Move = false;
|
||||||
|
|
||||||
|
[TomlPrecedingComment("$config.ChatBot.AutoFishing.Movements$")]
|
||||||
|
public LocationConfig[] Movements = new LocationConfig[]
|
||||||
|
{
|
||||||
|
new LocationConfig(12.34f, -23.45f),
|
||||||
|
new LocationConfig(123.45, 64, -654.32, -25.14f, 36.25f),
|
||||||
|
new LocationConfig(-1245.63, 63.5, 1.2),
|
||||||
|
};
|
||||||
|
|
||||||
public void OnSettingUpdate()
|
public void OnSettingUpdate()
|
||||||
{
|
{
|
||||||
|
|
@ -249,7 +257,7 @@ namespace MinecraftClient.ChatBots
|
||||||
case FishingState.StartMove:
|
case FishingState.StartMove:
|
||||||
if (--counter < 0)
|
if (--counter < 0)
|
||||||
{
|
{
|
||||||
if (Config.Movements.Length > 0)
|
if (Config.Enable_Move && Config.Movements.Length > 0)
|
||||||
{
|
{
|
||||||
if (GetTerrainEnabled())
|
if (GetTerrainEnabled())
|
||||||
{
|
{
|
||||||
|
|
@ -399,7 +407,7 @@ namespace MinecraftClient.ChatBots
|
||||||
public void OnCaughtFish()
|
public void OnCaughtFish()
|
||||||
{
|
{
|
||||||
++fishCount;
|
++fishCount;
|
||||||
if (Config.Movements.Length > 0)
|
if (Config.Enable_Move && Config.Movements.Length > 0)
|
||||||
LogToConsole(GetTimestamp() + ": " + Translations.Get("bot.autoFish.caught_at",
|
LogToConsole(GetTimestamp() + ": " + Translations.Get("bot.autoFish.caught_at",
|
||||||
fishingBobber!.Location.X, fishingBobber!.Location.Y, fishingBobber!.Location.Z, fishCount));
|
fishingBobber!.Location.X, fishingBobber!.Location.Y, fishingBobber!.Location.Z, fishCount));
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ namespace MinecraftClient.ChatBots
|
||||||
[TomlInlineComment("$config.ChatBot.AutoRelog.Ignore_Kick_Message$")]
|
[TomlInlineComment("$config.ChatBot.AutoRelog.Ignore_Kick_Message$")]
|
||||||
public bool Ignore_Kick_Message = false;
|
public bool Ignore_Kick_Message = false;
|
||||||
|
|
||||||
[TomlInlineComment("$config.ChatBot.AutoRelog.Kick_Messages$")]
|
[TomlPrecedingComment("$config.ChatBot.AutoRelog.Kick_Messages$")]
|
||||||
public string[] Kick_Messages = new string[] { "Connection has been lost", "Server is restarting", "Server is full", "Too Many people" };
|
public string[] Kick_Messages = new string[] { "Connection has been lost", "Server is restarting", "Server is full", "Too Many people" };
|
||||||
|
|
||||||
public void OnSettingUpdate()
|
public void OnSettingUpdate()
|
||||||
|
|
|
||||||
|
|
@ -814,7 +814,8 @@ config.ChatBot.AutoFishing.Auto_Rod_Switch=Switch to a new rod from inventory af
|
||||||
config.ChatBot.AutoFishing.Stationary_Threshold=Hooks moving in the X and Z axes below this threshold will be considered stationary.
|
config.ChatBot.AutoFishing.Stationary_Threshold=Hooks moving in the X and Z axes below this threshold will be considered stationary.
|
||||||
config.ChatBot.AutoFishing.Hook_Threshold=A stationary hook moving on the Y-axis above this threshold will be considered to have caught a fish.
|
config.ChatBot.AutoFishing.Hook_Threshold=A stationary hook moving on the Y-axis above this threshold will be considered to have caught a fish.
|
||||||
config.ChatBot.AutoFishing.Log_Fish_Bobber=For debugging purposes, you can use this log to adjust the two thresholds mentioned above.
|
config.ChatBot.AutoFishing.Log_Fish_Bobber=For debugging purposes, you can use this log to adjust the two thresholds mentioned above.
|
||||||
config.ChatBot.AutoFishing.Movements=This allows the player to change position/angle after each fish caught. Usage can be found in the Guide.
|
config.ChatBot.AutoFishing.Enable_Move=This allows the player to change position/angle after each fish caught.
|
||||||
|
config.ChatBot.AutoFishing.Movements=It will move in order "1->2->3->4->3->2->1->2->..." and can change position or angle or both each time. It is recommended to change the facing only.
|
||||||
|
|
||||||
|
|
||||||
# ChatBot.AutoRelog
|
# ChatBot.AutoRelog
|
||||||
|
|
|
||||||
|
|
@ -543,6 +543,6 @@ config.Head=启动配置文件\n\n# 对 MCC(Minecraft 命令行客户端)不
|
||||||
|
|
||||||
# Main.General
|
# Main.General
|
||||||
config.Main.General.account=Login请填写邮箱或玩家名称。若要以离线模式登录请使用"-"作为密码。若留空则使用交互式登录。
|
config.Main.General.account=Login请填写邮箱或玩家名称。若要以离线模式登录请使用"-"作为密码。若留空则使用交互式登录。
|
||||||
config.Main.General.login=游戏服务器的地址和端口,可填入域名或IP地址。(可删除端口字段,会解析SRV记录)
|
config.Main.General.login=游戏服务器的地址和端口,可填入域名或IP地址。(可删除端口字段,会自动解析SRV记录)
|
||||||
config.Main.General.server_info=帐户类型:mojang 或是 microsoft。此项设置也会影响交互式登录。
|
config.Main.General.server_info=帐户类型:mojang 或是 microsoft。此项设置也会影响交互式登录。
|
||||||
config.Main.General.method=微软账户的登录方式:mcc 或是 browser(手动在网页上登录)。
|
config.Main.General.method=微软账户的登录方式:mcc 或是 browser(手动在网页上登录)。
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue