Commit graph

939 commits

Author SHA1 Message Date
BruceChen
7b68c0c45a Setting the default type of chat 2022-09-03 13:39:45 +08:00
BruceChen
2c5b444ffd Add type RAW_MSG in 1.19.2 2022-09-03 12:18:11 +08:00
BruceChen
6cb0c35ab8 Trim 2022-09-02 22:38:59 +08:00
BruceChen
11fe93a128 Merge from milutinke 2022-09-02 21:38:43 +08:00
BruceChen
70d354b016 Merge branch '1.19.1-dev-new' of https://github.com/BruceChenQAQ/Minecraft-Console-Client-1.19dev into 1.19.1-dev-new 2022-09-02 20:22:49 +08:00
BruceChen
f4ab4997c8 Bug fix. 2022-09-02 20:22:33 +08:00
BruceChen
71ecebedce
Merge branch 'master' into 1.19.1-dev-new 2022-09-02 11:08:39 +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
BruceChen
9e4184a98d Add 1.19 block palette 2022-08-28 18:39:59 +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
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
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