Commit graph

1304 commits

Author SHA1 Message Date
BruceChen
a6b98de43f Fix not calling "handler.OnUpdate()" on time 2022-08-30 18:17:39 +08:00
BruceChen
1a90b6d942 Use separate threads for decryption and decompression 2022-08-30 17:37:46 +08:00
BruceChen
c941d086d9 Improve ReadBlockStatesField 2022-08-30 14:04:27 +08:00
BruceChen
e09016cea5 Improve ReadBlockStatesField 2022-08-30 12:33:13 +08:00
BruceChen
cd45c64300 Change chunk storage structure 2022-08-30 10:41:27 +08:00
Milutinke
42de4378e1 Added an option for custom timeout as requested in #1337. 2022-08-29 19:12:44 +02:00
BruceChen
68b9c81c0b Improve ReadBlockStatesField 2022-08-29 23:39:03 +08:00
BruceChen
da02f8004f Bug fix: Guid parse fail 2022-08-29 17:13:35 +08:00
Milutinke
71d11f4155 Fixed #1632 and #1648 by adding missing blocks in IsSolid. 2022-08-29 00:55:11 +02:00
BruceChen
684dcb3fc6 Trim 2022-08-28 23:34:28 +08:00
BruceChen
c8cecabc5c Terrain support for 1.19.1 / 1.19.2 2022-08-28 23:04:55 +08:00
BruceChen
bc5298bf5f Terrain support for 1.19 2022-08-28 22:27:21 +08:00
Milutinke
9e2f6d3b57 Updated the README.md and the configs/README.md 2022-08-28 13:59:55 +02:00
BruceChen
9e4184a98d Add 1.19 block palette 2022-08-28 18:39:59 +08:00
BruceChen
003c4c3ab8 Fix issue #2094 2022-08-28 17:14:28 +08:00
BruceChen
75e7b0e37d Fix issue #2119 2022-08-28 16:18:29 +08:00
BruceChen
dff3f23b03 Bug fix: ResourcePackSend.hasPromptMessage 2022-08-28 15:32:09 +08:00
BruceChen
d10ad138f1 Trim 2022-08-28 14:57:44 +08:00
BruceChen
4757c4be53 Trim 2022-08-28 13:18:07 +08:00
BruceChen
842c968220 Use AES-NI instruction set if possible 2022-08-28 10:50:52 +08:00
BruceChen
13d1a9856a Rewrote AES stream & Perform "SessionCheck" in advance 2022-08-27 23:01:28 +08:00
BruceChen
7ceb4807f3 Adjust some comments 2022-08-27 02:32:59 +08:00
BruceChen
93c89f879d Fix format 2022-08-27 02:14:25 +08:00
BruceChen
c34dd46067 Basic support for 1.19.2 2022-08-27 02:10:44 +08:00
BruceChen
a3971f9097 Update to BouncyCastle 1.9.0 2022-08-25 21:29:33 +08:00
BruceChen
ed8e97fd2d Bug fix: /move command went to the wrong location 2022-08-25 14:36:15 +08:00
BruceChen
5f520e2cf4 Improve ReadBlockStatesField 2022-08-25 10:40:55 +08:00
BruceChen
64915c87cf Bug fix: Incorrect handling of Chunk.FullyLoaded in 1.17[.1] 2022-08-25 02:21:36 +08:00
BruceChen
b125b0f10a Remove debug message 2022-08-25 02:04:36 +08:00
BruceChen
58eafdfd5c Optimize cold start speed and block loading speed 2022-08-25 01:34:07 +08:00
BruceChen
01ef9a89ca Bug fix: Cancel chunk load task when switching worlds 2022-08-24 18:16:16 +08:00
BruceChen
af1485c753 login support 2022-08-24 12:37:22 +08:00
Milutinke
d7310e477b Added Item, Entity, Block, Material Palettes for 1.19. Fixed SpawnEntity and disabled BlockChange packet on 1.19 to prevent crashing until it's fixed. Enabled Entity and Inventory handling. 2022-08-22 19:46:30 +02: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
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
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
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
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