Commit graph

1025 commits

Author SHA1 Message Date
breadbyte
8714b3fa3c
fix linux arm64 release build 2022-08-30 02:46:10 +08:00
breadbyte
cc1b6d1b10
Add ARM64 Linux release binary 2022-08-30 02:42:31 +08:00
breadbyte
577f6be27c
Add Linux ARM64 precompiled build 2022-08-30 02:37:12 +08:00
Anon
e150bd569b
Fixed the browser not opening on Linux and macOS.
Fixed the browser not opening on Linux and macOS.
2022-08-20 18:00:38 +00:00
Milutinke
6b98183093 Fixed not running on windows. 2022-08-20 19:58:17 +02:00
Milutinke
05c4661553 Fix the browser not opening on Linux. 2022-08-20 19:06:51 +02:00
Anon
0c0208ac49
Merge pull request #2113 from milutinke/chat-fix-bellow-1-16-5
Fixed a crash bellow 1.16.5 and a crash on 1.19
2022-08-19 21:48:54 +00:00
Milutinke
fdbd77c33d Fixed the crash on Respawn packet. Again the Dimension Type dictionary was not instantiated. 2022-08-19 22:47:21 +02:00
Milutinke
2f90c8a67d Fixed a crash on 1.19 when joining. 2022-08-19 22:33:09 +02:00
Milutinke
f66fb3b095 Fixed the chat not working bellow 1.16.5.
Tested and working.
2022-08-19 22:14:14 +02:00
ORelio
5ae6699e5c 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:47:03 +02: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
Milutinke
af6f655d5e Fixed the requested changes for Terrain Movement. Tested and working. 2022-08-18 20:58:49 +02:00
Silvin van Haestregt
73195c55d4
Create README-nl.md (#2105)
* Create README-nl.md

Added a small bit of the Dutch translation.

* Update README-nl.md
* Update README-nl.md
* Update README-nl.md
* Update README-nl.md

Co-authored-by: Jesper Kuipers <44586411+JesperKuipers@users.noreply.github.com>
2022-08-17 14:16:48 +02:00
ORelio
df361d7659
Reference Website in Readme 2022-08-16 23:40:24 +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
fd7f79402f
Scripting Hotfix for .NET (#2061)
* fix scripting being broken

scripting got broken due to being compiled as a single file application.

* move invoke to a helper function

also move MinecraftClient assembly fetch into the main assembly fetch loop

* Downgrade version of SingleFileExtractor

1.1.0 changed their internal API, so we use 1.0.1 to reduce the amount of reflection we need to do

* add exception messages
2022-08-15 18:30:56 +02:00
Daenges
aa1f54d0d8
Rework of MineCube.cs and further improvements to CalculatePath() (#2014)
* Add function to determine if the client is executing a walking process
* Add comments
* Remove test bot entry
* Add funtion to approach a block as close as possible
* Add funtion to approach a block as close as possible
* Add funtion to approach a block as close as possible
* Add comment to function in McClient.cs
* Improve concurrency and reduce potential calculation power
* Apply code suggestions
* Apply code suggestions
* Improve CalculatePath() function to allow approaching
* Fix typo in MinecraftClient/ChatBot.cs
* Add comments to Chatbot fucntion
* Add break to for loop to exit quicker
* Allow to give a maxOffset to the goal
* Comment the sample bot again.
* Add parameter for calculation timeout
* Remove TestBot again
* Implement timeout in Chatbot class
* Remove test commands
* Update comment in Chatbot.cs
* Set timeout to default 5 sec
* Change order of parameters back
* Add suggested improvements
* Move task and fix missing methods in .NET 4.0
* Create switch for tool handling
* Remove unused function
* Improve movement
* Improve performance of CalculatePath()

 - Replace Hashset OpenSet with a Binary Heap
  - Temporary remove maxOffset / minOffset features
 - Round start location for easier calculation
 - Add 0.5 to each location in reconstruct path to avoid getting stuck
    on edges

* Add diagonal movement
* Remove direct block movement
- causes kick for invalid packet movement if moving on the block you are
  currently standing on

* Floor start in A* and improve diagonal walking check
* Add helperfunctions to McClient.cs
* Prevent client from falling into danger
* Add comment to function and remove dependencies
* Add comments
* Remove debug settings

Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2022-08-15 18:26:40 +02:00
breadbyte
ea6788278d
Fix automated build for .NET releases (#2059)
* Fix automated build for .NET releases
* Update build-and-release.yml
* update submodule for building
* Update build-and-release.yml
* update consoleinteractive build
* Update build-and-release.yml
* set PublishSingleFile as true by default
* update csproj file to include compile flag

setting IncludeNativeLibrariesForSelfExtract to true removes the sni.dll output file.

* update build instructions on README
* move compile flags into env variable

- disable compilation of PDB files
- enable OSX builds
2022-08-15 18:20:25 +02:00
xdavidwu
78dd3ea17e
ConsoleIO: fix timestamp & BasicIO-NoColor (#2076)
* ConsoleIO: correct BasicIO-NoColor handling

We need color code stripped string in place of original string, not
appending to it

* ConsoleIO: fix timestamp order

Timestamp should come before the string, not after.

* ConsoleIO: check BasicIO-NoColor only when BasicIO
2022-08-15 18:17:30 +02:00
BruceChen
a8bbb1ac76
Basic support for minecraft 1.19 (#2084)
* merge commit from milutinke
* chat signature & encrypted login
* Bug fix :EncryptionResponse format error below 1.18.2
* Implemented chat command signature
* Chat message parsing and verification for 1.19
* Add signature settings
* Update Simplified Chinese Translation
* Clear up comments
* Fix wrong variable naming
* Bug fix: SignatureV2 Processing
2022-08-15 17:55:44 +02:00
Dušan Milutinović
9f197d415e Removed debug comments. 2022-07-25 16:55:46 +02:00
Anon
681a84b326
Merge pull request #2 from BruceChenQAQ/master
Terrain handling for 1.17/1.18 & Bugs fix for “ClickWindow“ packet
2022-07-25 13:28:17 +00:00
BruceChen
002795a1b6 Merge branch 'master' of https://github.com/BruceChenQAQ/Minecraft-Console-Client 2022-07-25 18:11:25 +08:00
BruceChen
94fd8b118d "/move X Y Z" now moves the player to the center of the block first 2022-07-25 18:11:10 +08:00
Anon
145e4e30db
Merge branch 'master' into master 2022-07-25 09:31:25 +00:00
BruceChen
a18b526a41 bug fix: Error handling for empty slots 2022-07-25 17:22:01 +08:00
BruceChen
cbe348555b Fix bug: drop single item cause exception 2022-07-25 17:08:59 +08:00
BruceChen
f0af851df8 Fixed bug where "ChunkFullyLoaded" was not updated below 1.17 2022-07-25 17:04:14 +08:00
BruceChen
b0b45a74a0 Make chunk loading status to be displayed using "/move" command 2022-07-25 14:20:24 +08:00
BruceChen
ff014d2912 Delete unnecessary comments 2022-07-25 03:50:31 +08:00
BruceChen
357820e1c2 Fix bugs in gravity handle 2022-07-25 03:19:24 +08:00
Dušan Milutinović
20e99e65af Added debug statements for NBT Data. 2022-07-24 20:44:37 +02:00
BruceChen
86dfd60d07 Bugs fix for “ClickWindow“ packet 2022-07-25 01:13:41 +08:00
BruceChen
59ed18bb40 Fixed incorrect handling in 1.18(1.18.1) and 1.18.2 2022-07-24 22:21:15 +08:00
BruceChen
3429989527 change .NET version to 4.0 2022-07-24 22:03:02 +08:00
BruceChen
735d182468 Rename variables 2022-07-24 21:48:09 +08:00
BruceChen
516effa81d terrain handling for 1.18(1.18.1) and 1.18.2 2022-07-24 21:41:56 +08:00
BruceChen
af574b654e avoid pathfind to an unloaded chunk | remove debug logs 2022-07-23 23:10:06 +08:00
BruceChen
f9bb74a8bd Implemented ChunkData packet process for 1.17/1.17.1 2022-07-23 22:34:16 +08:00
BruceChen
316e35c93a Merge branch 'master' of https://github.com/BruceChenQAQ/Minecraft-Console-Client 2022-07-22 20:13:03 +08:00
BruceChen
2dae739b74 Update to .NET 4.8 2022-07-22 20:09:53 +08:00
Dušan Milutinović
00d78ee81c Fixed the array length issue 2022-07-05 09:29:40 +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ć
7c364731f5 Reverted a mistake 2022-07-01 19:02:53 +02:00
Dušan Milutinović
3d8c112159 Implemented "Click Window" for 1.18 (now sending the new required fields), formated few files with Visual Studio formatting. PS: left debug for people to see, I'll remove it once everything is working 2022-07-01 18:59:58 +02: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
Dušan Milutinović
dc0021d990 Fixed entity health update event (This will also fix the Auto Attack bot) 2022-06-28 17:09:08 +02:00
Dušan Milutinović
9d3357eeee Fixed requested changes in the review. Except: Container (TODO) 2022-06-28 13:45:23 +02:00
Anon
3ea109b330
Merge branch 'MCCTeam:master' into master 2022-06-28 10:43:13 +00:00