From 7993d347d8a5324c92d898d4299eea583563656c Mon Sep 17 00:00:00 2001 From: Milutinke Date: Mon, 17 Oct 2022 13:56:01 +0200 Subject: [PATCH 1/2] Updated Farmer bot command description and translated untranslated strings. --- MinecraftClient/ChatBots/Farmer.cs | 6 +++--- MinecraftClient/Resources/lang/en.ini | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MinecraftClient/ChatBots/Farmer.cs b/MinecraftClient/ChatBots/Farmer.cs index 7c5a91d3..7ac5262d 100644 --- a/MinecraftClient/ChatBots/Farmer.cs +++ b/MinecraftClient/ChatBots/Farmer.cs @@ -59,7 +59,7 @@ namespace MinecraftClient.ChatBots private bool allowTeleport = false; private bool debugEnabled = false; - private const string commandDescription = "farmer [radius:|unsafe:|teleport:|debug:]|stop>"; + private const string commandDescription = "farmer [radius:] [unsafe:] [teleport:] [debug:]|stop>"; public override void Initialize() { @@ -71,13 +71,13 @@ namespace MinecraftClient.ChatBots if (!GetTerrainEnabled()) { - LogToConsole("Terrain handling needed!"); + LogToConsole(Translations.TryGet("bot.farmer.needs_terrain")); return; } if (!GetInventoryEnabled()) { - LogToConsole("Inventory handling needed!"); + LogToConsole(Translations.TryGet("bot.farmer.needs_inventory")); return; } diff --git a/MinecraftClient/Resources/lang/en.ini b/MinecraftClient/Resources/lang/en.ini index 1ed90b50..cb3fb896 100644 --- a/MinecraftClient/Resources/lang/en.ini +++ b/MinecraftClient/Resources/lang/en.ini @@ -689,6 +689,8 @@ bot.farmer.warining_allow_teleport=You have enabled teleporting, this might get bot.farmer.started=Started farming! bot.farmer.crop_type=Crop type bot.farmer.radius=Radius +bot.farmer.needs_terrain=The Farmer bot needs Terrain Handling in order to work, please enable it! +bot.farmer.needs_inventory=The Farmer bot needs Inventory Handling in order to work, please enable it! # Follow player cmd.follow.desc=Makes the bot follow a specified player From cbc3f7883e58529a96bea66ed197bf270976ca0c Mon Sep 17 00:00:00 2001 From: Milutinke Date: Mon, 17 Oct 2022 14:17:30 +0200 Subject: [PATCH 2/2] Added cmd.enchant.desc translation --- MinecraftClient/Resources/lang/en.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/MinecraftClient/Resources/lang/en.ini b/MinecraftClient/Resources/lang/en.ini index cb3fb896..ac70d149 100644 --- a/MinecraftClient/Resources/lang/en.ini +++ b/MinecraftClient/Resources/lang/en.ini @@ -311,6 +311,7 @@ cmd.dig.fail=Failed to start digging block. # Enchantment Command +cmd.enchant.desc=Enchant an item when you have the Enchantment table opened and the list of enchants recieved. cmd.enchant.invalid_slot=Invalid slot provided (Available: top, middle, bottom)! cmd.enchant.enchanting_table_not_opened=You must open a an enchanting table in order to use this option! cmd.enchant.clicked=Sent a click to the server, if you have enough levels and if you have placed the items in the correct slots it should enchant!