Commit graph

646 commits

Author SHA1 Message Date
Рома Данилов
f8111d6b3b Fix VKAPI 2020-07-18 15:12:01 +02:00
ReinforceZwei
d043f90d4e Remove duplicated item
Fix #1129
2020-07-15 21:02:08 +02:00
Рома Данилов
835df9b1fc
Add /entity cmd (#1129)
* Update MinecraftClient.csproj

* Create Entitycmd.cs

* Update MinecraftClient.csproj

* Update Protocol18PacketTypes.cs

* Update Protocol18PacketTypes.cs
2020-07-13 19:01:24 +02:00
Grant Emsley
9370064072
Return exit codes for specific failures when in non-interactive mode (#1120) 2020-07-10 19:55:21 +02:00
Рома Данилов
03388bf5a1
VkMessager bug fix (#1119)
* Update VkMessager.cs

VK API Auto Update Server Key

* Update VkMessager.cs

* Update VkMessager.cs

* Update VkMessager.cs

* Update VkMessager.cs

* Update VkMessager.cs

* Update VkMessager.cs
2020-07-08 21:30:08 +02:00
ReinforceZwei
f2816c3fee Add inventory related ChatBot event
Added OnInventoryOpen and OnInventoryClose
Updated some method summary
2020-07-07 19:32:49 +02:00
ReinforceZwei
500e7f1bec Fix crafting result slot not being handled correctly
Added new ChatBot event OnInventoryUpdate
2020-07-07 19:32:49 +02:00
ReinforceZwei
c3dd0209c8 Fix spider not considered as hostile mob 2020-07-07 19:32:49 +02:00
Рома Данилов
1088e6c4fd
PayKassa bot (#1114) 2020-07-07 19:29:57 +02:00
Рома Данилов
b7b242cff1 Create ClckRuAPI.cs 2020-07-07 19:28:28 +02:00
ORelio
5eea7441b7 Add details on how to use BlockPaletteGenerator.cs (#1111) 2020-07-06 22:59:24 +02:00
ORelio
d2125bebb3 BotLoad ChatBot API (#1106) 2020-07-06 13:10:37 +02:00
ReinforceZwei
93b72eb83e Complete inventory clicking mechanism
Update player inventory and opened container after clicking on slots
2020-07-06 13:02:42 +02:00
ORelio
855bdade0b Fixes following pull requests (#1101, #1097)
Fix coding style issues and compile errors
2020-07-04 11:12:27 +02:00
ORelio
e9f1a4477c Mail ChatBot to Mail script (#1102)
The script compiles but does not work yet due to serialization
2020-07-04 11:01:12 +02:00
Рома Данилов
fb50b0d5cb
ChatBot API: OnScoreboardObjective, OnEntityEffect, OnUpdateScore, EntityInteract, Hand list (#1097)
* Create Effect.cs
* Rename Effect.cs to Effects.cs
* Update MinecraftClient.csproj
* Update Effects.cs
* Update Effects.cs
* add EntityEffect
* Update McClient.cs
* Update Protocol18.cs + EntityEffect
* Update IMinecraftComHandler.cs
* Update Protocol18PacketTypes.cs + EntityEffect
* Update ChatBot.cs + OnEntityEquipment
* Update PacketIncomingType.cs + ScoreboardObjective
* Update Protocol18PacketTypes.cs
* Update Protocol18.cs
* Update IMinecraftComHandler.cs + OnScoreboardObjective
* Update McClient.cs + OnScoreboardObjective
* Update ChatBot.cs + OnScoreboardObjective event
* Update Protocol18.cs: fix scoreboard
* Update McClient.cs
* Update ChatBot.cs
* Update PacketIncomingType.cs
* Update ChatBot.cs + OnUpdateScore
* Update McClient.cs + OnUpdateScore
* Update IMinecraftComHandler.cs + OnUpdateScore
* Update Protocol18.cs
* Update Protocol18PacketTypes.cs
* Update Protocol18.cs + fix micro lags
* Update Protocol18.cs
* Update Protocol18.cs
* Update Protocol18.cs
* Update Protocol16.cs
* Update Protocol18.cs
* Update McClient.cs
* Update IMinecraftCom.cs
* Update McClient.cs
* Update McClient.cs
* Update McClient.cs
* Update ChatBot.cs + GetEntities()
* Create Hand.cs
* Update MinecraftClient.csproj
* Update McClient.cs
* Update ChatBot.cs
* Update Protocol18.cs
* Update ChatBot.cs
* Update ChatBot.cs
* Update ChatBot.cs
* Update ChatBot.cs
* Update ChatBot.cs: fix
* Update AutoAttack.cs: Fix
* Update McClient.cs: compile fix
* Update ChatBot.cs
* Update AutoAttack.cs
* Update ChatBot.cs
* Update Protocol18.cs
* Update IMinecraftComHandler.cs
* Update McClient.cs
* Update ChatBot.cs
* Update Protocol18.cs
* Update IMinecraftComHandler.cs
* Update ChatBot.cs
* Update McClient.cs
* Update McClient.cs: remove check distance
* Update EntityActionType.cs: more actions
* Create CommandBlockMode.cs
* Create CommandBlockFlags.cs
* Update IMinecraftCom.cs
* Update McClient.cs
* Update ChatBot.cs
* Update Protocol18.cs
* Update Protocol16.cs
* Update PacketOutgoingType.cs
* Update Protocol18PacketTypes.cs
* Update Protocol18.cs
2020-07-04 10:45:51 +02:00
ReinforceZwei
572191dcd2 Make internal command loads before ChatBot command 2020-07-04 10:39:57 +02:00
ReinforceZwei
64643af89d Add command register for ChatBot
ChatBot can register their own command for interacting with user
2020-07-04 10:39:57 +02:00
Daenges
4f3f217c0f
Fix for the mail script. (#1102)
* New version of the bot.

I improved some things and added the option to change some settings directly through minecraft.

* Update Mail.cs

* Update Mail.cs

* Easy cross server fix.

Besides some other lines, I added a simple way, to setup a cross server system. Through the preconfigured save path, you just need to put two or more instances in the same folder and launch them, to get a cross server mail system.

* Improvement to cross server system.

You are now able to change the directory of the mail/option file inside of the applications folder through mc chat. This means you can run several applications in one folder which are grouped to several safe files and have completely different option settings. (Linking servers in groups or adjust every bot perfectly for the individual server.)
2020-07-04 10:39:37 +02:00
Daenges
f58798df61
Add script to let the bot act like a mail plugin. (#1098)
This script lets the bot act like a mail plugin. You can send mails through private messaging the bot with "sendmail [Text]". You can configure many options in the option class. If you want to, you can point several instances to one file and create a cross server mail system, with each bot perfectly configured for the individual server.
2020-07-01 19:29:33 +02:00
ORelio
c4647c35ef Fix timeout on resolving SRV records (#1095) 2020-06-30 23:13:19 +02:00
ORelio
8b208c5520 Fix indenting in Protocol18.cs 2020-06-30 23:05:00 +02:00
ORelio
62745c1565 Fix check 2020-06-29 22:33:36 +02:00
ORelio
213c9ffc05 Fix compilation errors 2020-06-29 22:15:56 +02:00
ORelio
ff9ba2f2bb Fix indentation level, 4 2020-06-29 22:04:32 +02:00
ORelio
2dfc08b45b Fix indentation level, 3 2020-06-29 21:59:04 +02:00
ORelio
2752e0d21b Fix indentation level, 2 2020-06-29 21:54:12 +02:00
ORelio
04fda88149 Attempt to fix indentation level 2020-06-29 21:52:17 +02:00
Bas950
627ad5aaf1 Remove VarIntArray because I cannot read wiki's correctly xD 2020-06-29 16:16:22 +02:00
Bas950
424eab29dd Join Game and Respawn encoding/decoding & added ReadNextVarIntArray 2020-06-29 16:05:12 +02:00
Bas950
e0aba29b7a Revert "Revert "♻️ Undo Terrain Handling update""
This reverts commit 2d2b1e95cb.
2020-06-28 02:17:11 +02:00
Bas950
2d2b1e95cb Revert "♻️ Undo Terrain Handling update"
This reverts commit eb891cc91f.
2020-06-28 02:16:01 +02:00
Bas950
eb891cc91f ♻️ Undo Terrain Handling update 2020-06-28 02:15:54 +02:00
Bas950
c82c91705c ♻️ Whoopsy.. 2020-06-27 16:51:25 +02:00
Bas950
d06f14d055 Added 1.16(.1) support 2020-06-27 16:48:46 +02:00
Рома Данилов
a579b453b0
Improve small teleport performances (#1079, #1080)
Increase small teleport range and immediately update location instead of queuing
2020-06-27 10:45:33 +02:00
ORelio
4cc29a6ee6 Adjust dig block API
Attempt to automate dig start and dig complete (#1077)
2020-06-20 21:30:26 +02:00
ORelio
6df5076d19 DigBlock/PlaceBlock: Use Direction enum
Still work in progress (#1071)
2020-06-20 16:07:59 +02:00
ORelio
c69e87bec3 McClient: Add DispatchBotEvent method
Facilitates event dispatching and error handling for ChatBots
2020-06-20 15:39:18 +02:00
ORelio
f30dc4464c Reorganize methods in McClient.cs
Tyding up the class as it is becoming quite large
2020-06-20 15:18:35 +02:00
ORelio
2add4030f4 Rename McTcpClient to McClient for clarity
+ Fix compile error in #1071
2020-06-20 15:01:17 +02:00
Рома Данилов
b52435f0ce
Implement OnMapData, OnTitle, UpdateSign, OnEntityEquipment, Useblock (#1071)
* + Fix null PlayerInventory

+ Fix null PlayerInventory

* Update Protocol18.cs

* Update McTcpClient.cs

+ Fix https://github.com/ORelio/Minecraft-Console-Client/issues/1022

* Update Protocol18.cs

+ MapData

* Update PacketIncomingType.cs

+ MapData

* Update Protocol18PacketTypes.cs

* Update IMinecraftComHandler.cs

+ OnMapData

* Update McTcpClient.cs

+ OnMapData

* Update ChatBot.cs

+ OnMapData

* Update Protocol18.cs

* Update Protocol18PacketTypes.cs

+ Fix

* Update PacketIncomingType.cs

+ Title

* Update Protocol18PacketTypes.cs

* Update Protocol18.cs

* Update IMinecraftComHandler.cs

+ OnTitle

* Update McTcpClient.cs

* Update ChatBot.cs

+ OnTitle

* Update Protocol18.cs

Fix

* Update IMinecraftComHandler.cs

* Update McTcpClient.cs

* add ClearInventories()

* add ClearInventories()

* Update McTcpClient.cs

+ OnTitle

* Preparing to Add BlockAction

* Update PacketOutgoingType.cs

* Update PacketOutgoingType.cs

* Update Protocol18.cs

+ SendUpdateSign

* Update Protocol16.cs

+ SendUpdateSign

* Update IMinecraftCom.cs

+ SendUpdateSign

* Update McTcpClient.cs

+ UpdateSign

* Update ChatBot.cs

+ UpdateSign

* Update McTcpClient.cs

Update PlaceBlock

* Update ChatBot.cs

* Update McTcpClient.cs

* add SendCreativeInventoryAction nbt

add SendCreativeInventoryAction nbt

* Update Protocol18.cs

* Update Protocol16.cs

* Update McTcpClient.cs

* Update ChatBot.cs

* Update Inventory.cs

* Update Protocol18PacketTypes.cs

* Update PacketIncomingType.cs

* Update Protocol18PacketTypes.cs

* Update Protocol18PacketTypes.cs

Fix

* Update Protocol18PacketTypes.cs

Fix

* Update IMinecraftComHandler.cs

* Update IMinecraftComHandler.cs

* Update ChatBot.cs

* Update McTcpClient.cs

+ OnEntityEquipment

* Update Protocol18.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update ChatBot.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update ChatBot.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update ChatBot.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update Protocol18.cs

* Update McTcpClient.cs

* Update ChatBot.cs

* Update ChatBot.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update McTcpClient.cs

* Update Protocol18.cs

* Create Useblock.cs

* Update MinecraftClient.csproj

* Update McTcpClient.cs
2020-06-20 14:57:07 +02:00
Рома Данилов
eddf7ad063
Clear inventory on respawn (#1022, #1069)
Fix null PlayerInventory
Fix issue #1022
2020-06-14 18:53:11 +02:00
ORelio
c79c22bcdf Reset inventory on game join (#1067)
Reset inventory each time Game Join event is received
2020-06-14 15:45:20 +02:00
ORelio
ee8bc7f308 Allow bots to perform small teleports (#1067)
Small teleport jumps within a 4-block ranges.
May cause invalid moves and/or trigger anti-cheat plugins.
2020-06-14 15:41:34 +02:00
ReinforceZwei
ab05d697ef
Fix AutoEat crash (#1068)
* Fix AutoEat keep eating after player dead
* Fix null reference on GetInventory method
* Add error handle for ChatBot API events
* Fix minor mistakes
2020-06-14 15:14:51 +02:00
ORelio
09bfe92071 Fix Miner/Farmer addon scripts (#1047) 2020-06-13 23:47:53 +02:00
Рома Данилов
87302bafab
Keep track of current game mode (#1053)
* GetGamemode()

* GetGamemode()

* ChangeGamemode()

* GetGamemode()

* Update ChatBot.cs

code refractor

* Update Inventory.cs

Gamemode check added

* Update Protocol18.cs

* Update Protocol18.cs

* Update Protocol18.cs

code refractor

* Update IMinecraftComHandler.cs

code refractor

* Update IMinecraftComHandler.cs

* Update McTcpClient.cs

fix

* Update McTcpClient.cs

fix

* Fix duplicate gamemode event

Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
2020-06-13 15:00:30 +02:00
ReinforceZwei
27f35ee7a9 Fix 1.8 file checker exploit
#1056
2020-06-13 14:41:50 +02:00
ORelio
ee96788019 Add CobblestoneMiner and TreeFarmer by Nekiplay (#1047) 2020-06-12 00:12:36 +02:00