Commit graph

57 commits

Author SHA1 Message Date
Anon
2409de2a2f
Fix prevent AntiCheat Block Breaking (In Scripts)
Fix prevent AntiCheat Block Breaking (In Scripts)
2024-12-25 16:56:07 +01:00
breadbyte
ca966a464c
Ensure that the cached version of MCC is refreshed every update (#2760)
fixes #2758

this happened because we added sentry in a future release, but the cache was using an old executable, so it couldn't find the assembly.
2024-07-14 01:46:43 +08:00
breadbyte
8756ff5b3c
[skip ci] Miscellaneous scripting QoL improvements and fixes (#2740)
* Update CI to detect the word "skipci"

* Make script compilation errors more verbose

Rather than just giving the line in which the error has been found, return the actual text content of the line itself

* Attempt to bubble up errors in the script chain, so it says the reason for any NotRun errors.

The exception message gets eaten up when the script is running, and an exception happens.

Also put in a default result message for the CmdResult, instead of having it default to null.

* Trim the whitespace off returned script compilation error line
2024-06-22 06:40:23 +08:00
yaggod
d0caf4c9ee fixed typo in word heAlper lol 2024-04-16 21:21:08 +03:00
Roman Danilov
df9443381b Done auxiliary methods for Direction 2024-03-05 21:49:29 +05:00
Roman Danilov
fde50c1728 AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
Anon
790e0bfe55 Implemented 1.20.3 2024-01-30 12:51:47 +01:00
Anon
782481816d Implemented TabListHeaderAndFooter packet 2023-11-20 18:08:09 +01:00
Domracz
1aea8d3a4e
Fixed entity rotations (#2596)
* Fixed entity rotations

Fixed entity yaw and pitch not changing when entity moves head.

* Update ChatBot.cs

* Update McClient.cs

* Update Protocol18.cs

* Update McClient.cs

* Finalize code style

* Fix incorrect variable type

---------

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2023-10-11 14:44:46 +08:00
Spongecade
c3fa413b4e
[skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
Anon
272900d52e Added slab handling for 1.20/.1
Added Farm bot crops handling for 1.20/.1
Added utilities for Containers/Inventories
Added bot movement lock to prevent multiple bots that use movements from running at the same time.
General code improvements.
2023-06-23 16:25:18 +02:00
Anon
1efa55206f Re-added WebSocketChat bot and improved it, no longer using WebsocketSharp library 2023-05-27 19:46:28 +02:00
Anon
0a57c927d7 Added access to App Vars inside the Chat Bot API via 3 new methods. Added access to Random class inside the execif command 2023-03-31 18:17:03 +02:00
breadbyte
74d29321b4
Scripting Hotfix for #2458 (#2460)
* Scripting hotfix

- Fixes #2458
- Change error wording around scripting
- Prevent duplicating the binary for scripting

* Create temporary folder if it doesn't exist
2023-03-28 21:06:56 +08:00
BruceChen
9c8afb7d3c Bug fix 2023-01-02 18:52:49 +08:00
BruceChen
94a3c92b36 Bug fix 2022-12-11 16:30:45 +08:00
BruceChen
892999ac98 Merge into master 2022-12-06 20:32:46 +08:00
BruceChen
84cf749344 Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
BruceChen
ef39e8329c [SKIP_BUILD] Change file encoding to UTF-8 with BOM 2022-11-28 13:55:05 +08:00
BruceChen
5d2589b10f Merge remote-tracking branch 'origin/master' into brigadier-dev 2022-11-07 15:39:46 +08:00
BruceChen
ae23ead4c3 [SKIP_BUILD] FIx "/reco" and "/connect" not working properly 2022-11-05 20:27:10 +08:00
BruceChen
f2f88ac009 Merge master into brigadier-dev 2022-10-29 11:44:54 +08:00
BruceChen
077e3a5e9f
Crowdin localization support (#2310)
* Switching to use resource files

* Update Crowdin configuration file

* Code cleanup
2022-10-28 11:13:20 +08:00
Milutinke
80e227c3a7 Added Player Killed event (Combat and CombatDeath packets). 2022-10-26 20:53:09 +02:00
BruceChen
f8aefaf129 init 2022-10-26 08:54:54 +08:00
BruceChen
4925689496
Revert "Added the Web Socket Chat Bot" 2022-10-25 16:23:25 +08:00
Anon
477da50fe0
Merge branch 'master' into rpc 2022-10-24 20:45:40 +00:00
BruceChen
d4f8dd0bfb Upgrade AutoFishing & Bug fix 2022-10-21 19:05:49 +08:00
Milutinke
ed910aa9c7 Added the Web Socket Chat Bot. 2022-10-20 19:29:35 +02:00
breadbyte
e006943535
Fix externally referenced DLLs in scripts
External DLL references weren't being used, this commit fixes them so they are used.
2022-10-21 00:29:46 +08:00
breadbyte
78f9c35800
Fix scripting system to provide more information in errors
Also make log lines for scripting more uniform
2022-10-20 20:05:36 +08:00
Milutinke
a31b4a792b Improvements to the Bed, Blockinfo and Enchant commands. 2022-10-17 15:14:55 +02:00
BruceChen
e9f227ca5b Bug fix 2022-10-17 10:03:01 +08:00
Anon
12e2c6b4bb
Implemented Enchanting
Implemented Enchanting
2022-10-14 16:02:34 +00:00
Anon
e44973e900
Merge branch 'master' into farmbot 2022-10-14 16:00:46 +00:00
Milutinke
c47add39a4 Added Enchanting Table ASCII Art.
Added ChatBot method for enchantments.
Changed the how the list of enchantments looks, now looks cleaner + has Roman numbers.
Added safe guards to the echant command.
2022-10-14 15:33:33 +02:00
breadbyte
023cc2e2d4
Fix Linux issues with the scripting system
This fixes bugs in the scripting system in which scripts does not compile and run on Linux.

This commit also changes wording around the logging in the scripting system to avoid confusion between script errors and regular script compilation.
2022-10-14 02:31:31 +08:00
Milutinke
4dc1b420f5 Added enchanting 2022-10-12 19:51:01 +02:00
Milutinke
6524fe1734 Added Farmer Bot. Fixed a bug in the configuration. Moved Reload and Bots command to the Commands folder. 2022-10-12 12:56:56 +02:00
BruceChen
c57ac183d5 Add AutoDig ChatBot 2022-10-08 17:56:32 +08:00
BruceChen
e44192ab7b Update translations 2022-10-06 18:12:32 +08:00
BruceChen
16c1d1fd77 Refactoring Settings.cs 2022-10-05 15:02:30 +08:00
BruceChen
81a9955081 Alerts ChatBot: Support trigger on weather change 2022-10-03 11:39:25 +08:00
BruceChen
1d52d1eadd
Fix all warnings & Trim (#2226)
* Fix AutoFishing crash
* Fix all warnings
* Remove DotNetZip.
* Fix the usage of HttpClient.
2022-10-02 18:31:08 +08:00
BruceChen
4aa6c1c99f
Upgrade GetLookingBlock 2022-10-02 13:49:36 +08: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
f47c240920 Fully implemented Map Data packet. 2022-09-18 00:18:27 +02:00
BruceChen
c00468c103 Fix 1.19.2 entity metadata handle 2022-09-15 21:11:47 +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