Commit graph

251 commits

Author SHA1 Message Date
Milutinke
5d1eabd74c Added safeguard for the walk range. 2022-09-28 18:46:17 +02:00
Milutinke
9903ad7535 Updated Anti AFK Chat Bot to use terrain handling, now it can walk around randomly in the given range. Also added random interval support, and the bot now can sneak when using the command (alternative method). 2022-09-28 18:38:57 +02:00
Milutinke
387319b353 Updated comments with useful info for future updates. 2022-09-28 11:57:14 +02:00
Milutinke
0a2f777b34 Fixed the color isse thanks to DevBobcorn. 2022-09-28 11:01:15 +02:00
Milutinke
f7263873db Implemented Map Chat bot which can render maps into images. Useful for solving captchas. 2022-09-28 00:14:43 +02:00
Milutinke
36a97f4955 Fixed a bug. 2022-09-27 14:34:10 +02:00
Milutinke
932d25f125 Removed ability to attack players, added an option to have a whitelist or a blacklist mode. 2022-09-27 14:23:19 +02:00
Milutinke
58b171cec0 Updated the AutoAttack Chat Bot settings to include attacking passive mobs and players if enabled, and a blacklisted entities possibility. 2022-09-27 13:35:29 +02:00
Milutinke
3366b15937 Added a log file for alerts as requested in #1179 2022-09-26 00:56:22 +02:00
Milutinke
1147b3e15c Added a random interval option to the Script Scheduler. 2022-09-26 00:28:29 +02:00
Milutinke
697025040f Fixed Player List Logger and added config section for it. 2022-09-25 22:06:26 +02:00
Milutinke
9b407dbdad Added command for reloading settings, chat bots, listing chat bots and unloading a chat bot manually by name. 2022-09-25 16:00:43 +02:00
Milutinke
0d58887b6a Added an option to match by colors in Auto Respond bot. 2022-09-21 17:56:29 +02:00
Anon
7f49ee3120
Added a Follow Player chat bot
Implemented the Follow Player chat bot.
2022-09-15 09:17:15 +00:00
BruceChen
97248aad16 Add OnSettingsReload 2022-09-13 19:29:17 +08:00
BruceChen
fc444fcbd6 Supports setting thresholds 2022-09-13 19:25:00 +08:00
BruceChen
dac60200e0 Configurable to start fishing automatically or not 2022-09-12 23:15:57 +08:00
BruceChen
cb22387008 Support automatic rod switching 2022-09-12 18:02:46 +08:00
BruceChen
949126c9cb Supports changing position and angle after catching fish 2022-09-12 16:27:37 +08:00
BruceChen
ccb8610020 Support use left hand 2022-09-12 02:19:20 +08:00
BruceChen
eb517a8e78 Upgrade Auto Fishing 2022-09-12 02:10:18 +08:00
Milutinke
c7ba5e5fa3 Implemented the Follow Player chat bot. 2022-09-09 15:39:41 +02:00
Milutinke
8dd3efaa54 Fixed remote control bot. 2022-09-07 11:32:38 +02:00
BruceChen
c90ea0e92b Startup Optimization 2022-08-30 22:50:05 +08:00
ORelio
1ce7850193 MC 1.17/1.18 Terrain/Entity/Inventory (#1943)
Merge branch 'master' of github.com:milutinke/Minecraft-Console-Client into milutinke-master

Manually fix merge conflicts
Additional changes:
 - WindowItems: Fix data type for "elements" below 1.17
 - DestroyEntities: Fix packet palettes and remove DestroyEntity
 - EntityMetadata: Throw exception if health field mapping is not updated

Co-authored-by: Milutinke <bgteam@live.com>
Co-authored-by: BruceChen <MrChen131217@gmail.com>
2022-08-19 16:35:55 +02:00
Booquefius
613f52d3ae
AuotoAttack: add support for multiple interact modes (#2044)
* Adds support for multiple interact modes
* Entity interaction: Implement enum

Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2022-08-15 23:31:17 +02:00
breadbyte
d9f1a77ac2
.NET 5+ Support (#1674)
Implement changes to support .NET 5 onwards.
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2022-07-03 22:34:07 +08:00
Dušan Milutinović
b5c4cd7566 Fixed Auto Attack bot (forgot to add a method to a commit before)
Tested on 1.18.2
2022-06-28 17:37:16 +02:00
Dusan Milutinovic
61a682a69b Added Entity, Item and Block palletes for 1.17/1 and 1.18/1. Added pallete generators as a command line option. Fixed a minor warning with AttackBot 2022-02-13 01:10:10 +01:00
ORelio
8de7618027 Update README and URLs
Moving to a GitHub organization!
2021-10-10 20:56:39 +02:00
ORelio
b9935ab8fa AutoRespond: Support for per-match cooldown (#593)
Prevent a match from triggering too often using a cooldown
By default, matches do not have a cooldown (it's opt-in)
Also add translation support and more debug messages
2021-05-22 15:27:28 +02:00
ORelio
95d6318350 Implement thread-safe ChatBot API (#1510, #1579)
+ Rework task scheduling in chatbots
+ Switch back terrain processing to tasks
2021-05-15 17:36:16 +02:00
ReinforceZwei
3b5488a7bf
Remove illegal characters in chat messages before sending (#1587)
Sending illegal character will cause server to kick the client. This happens when using remote control to execute some command that contains color output. Message checking applies to remote control only.
2021-05-12 19:34:55 +02:00
ReinforceZwei
53e2413204
Add setting for overriding attack speed for autoattack (#1512)
* Add setting for overriding attack speed for autoattack

* Change cooldown value type to float

* Fix minor grammar issue
2021-03-28 19:26:38 +08:00
ReinforceZwei
4853871ea1
Add lock to chatlog file (#1488) 2021-03-07 14:20:54 +08:00
ReinforceZwei
d19764869c
Fix player inventory being deleted by server (#1430)
* Fix auto drop crash

* Fix player inventory being deleted by server
2021-01-31 08:25:04 +08:00
ReinforceZwei
f20abb6fbc
Imporve auto-craft mechanism (#1415)
Fix #1414
2021-01-15 20:25:23 +08:00
ReinforceZwei
479f80ccf1 Fix #1393 2020-12-31 13:49:24 +01:00
ORelio
330dda9c15 Add random demay in AutoRelog
Useful when reconnecting many accounts at once
Related issues: #663, #740, #975, #1312
2020-11-04 19:23:46 +01:00
ReinforceZwei
ec9f999857
Add Mode switching command for AutoDrop (#1293)
* Add new command for AutoDrop
* Minor imporvement for AutoDrop
* Fix inventory update event passed a non-exist inventory ID
* Minor improvement for AutoDrop
2020-10-25 17:43:05 +01:00
ReinforceZwei
2017d5d652
Add support of language files (#1273)
* Basic support of language file
Only mapped main part of MCC.
* Translations function imporve
* Change translation file naming
* Fix default translation file naming
* Complete translation file mapping for main part
Command and ChatBot not done yet
* Complete translation mapping for commands
Except Entitycmd
* Complete translation mapping for ChatBots
* Add new method for replacing translation key
Just for Entitycmd. Be proud of yourself. We have a convenient method now.
* Complete all translation mapping
* Add default config and translation file to resource
* Remove untranslatable messages from default translation file
2020-10-17 13:41:31 +02:00
ReinforceZwei
837340dc51 Fix Auto Relog not applying delay
Also change all debug log to use new method
2020-09-17 20:52:49 +02:00
ReinforceZwei
7e20e409a8
Add support for creating replay mod capture files (#1246)
* Add test replay handler
* Fix incorrect built raw packet
* Fix incorrect built raw packet
* Add filter
* Add not working zip lib
* Add dotNetZip lib and complete basic function
* Update ReplayHandler.cs
* Complete Replay handler
Without client player handling
* Complete replay mod
- New ChatBot OnNetworkPacket event
* Add auto-backup and command for Replay Mod
* Add ReplayMod description to readme
* Small naming changes, fix compile error on .NET4.0
* ReplayHandler slight optimizations
Use Path.Combine to automatically use Windows '\' or Linux '/'
Move re-usable common parts outside the Replay handler
Small optimizations in building JSON strings
Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
2020-09-06 21:51:42 +02:00
ORelio
e6bd2090ab Fix AutoAttack variable name 2020-08-20 13:28:40 +02:00
ReinforceZwei
e71d0e2383
Improve AutoAttack (#1218)
* Improve AutoAttack
- New attack mode
- Fix abnormally low attack damage
* Add document for AutoCraft
* Improve code style and user feedback
* Correct spelling mistakes
2020-08-18 13:02:36 +02:00
ReinforceZwei
d8afda34fb Fix AutoDrop being loaded when inventory handling is disabled 2020-08-17 18:13:01 +02:00
ReinforceZwei
6bbb7236e3
Add support for Minecraft 1.16.2 (#1214)
* Implement MC version 1.16.2 basic support
All packets ID update done
Tested in 1.16.2 craftbukkit server
* Implement MC 1.16.2 entity handling
New EntityPalette
* Add back protocol version checking for entity handling
Was removed during testing and forgot to add it back
* Implement inventory handling for MC 1.16+
Item ID got changed in 1.16+ so a palette is needed.
* Fix ChangeSlot command
What a joke
* Handle 1.16 new entity properties name
Convert new naming style to old style
* Revert "Handle 1.16 new entity properties name"
This reverts commit 52c7d29062.
* Update AutoAttack to use the new entity properties key
* Fix item type to ID conversion
* Sort item types by name
* Remove ZombiePigmanSpawnEgg
User ZombifiedPiglinSpawnEgg instead (new name for same item)
* Add missing 1.16.2 version strings
* Remove old ItemTypeGenerator
* Sort entity types by name
* Palette loading, instructions, NotImplemented err
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-08-17 17:08:50 +02:00
ReinforceZwei
ee5199f760 Fix AutoCraft still being loaded when inventory handling is disabled 2020-08-17 16:31:51 +02:00
ReinforceZwei
2c8ec4aa4a
Implemented entity metadata to keep track of entity health (#1205)
* Implement entity metadata protocol handling
* Add health information for entity
* Make AutoAttack check entity health
* LivingEntity: Default health is 1.0 as per https://wiki.vg/Entity_metadata#Living_Entity
* Fix entity metadata for lower MC versions
* Fix commit  888297d (1.0f instead of 1.0)
* Add OnEntityHealth ChatBot event (Remove protocol-dependant stuff from McClient (undo part of 85c32b9))
* Remove OnEntityMetadata in favor of OnEntityHealth
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-08-15 15:32:46 +02:00
ReinforceZwei
dbffe98cd0
Update AutoAttack (#1204)
Move animation packet out of the loop to reduce the packet sent per second
2020-08-14 20:43:06 +02:00