Commit graph

1351 commits

Author SHA1 Message Date
oldkingOK
734de2a9ac Login with yggdrasil server 'hitmc.cc' will get
```
Login failed : Invalid server response.
```

Print the raw response which is `result` in [/MinecraftClient/Protocol/ProtocolHandler.cs#L554](f6797cb4b5/MinecraftClient/Protocol/ProtocolHandler.cs (L554))
(Every test shows like this)

```
HTTP/1.1 200 OK
...

1e1
{"accessToken":"...","clientToken":"...","availableProfiles":[{"id":"..","name":".."},{"id":"..","na
f
me":"ok_bot"}]}
0
```

After splited by line:
- 1e1
- {"accessToken": ... ,"na
- f
- me":"ok_bot"}]}
- 0

The response when Login with 'littleskin.cn' which works fine is:

```
HTTP/1.1 200 OK
...

1e1
{"accessToken":"...","clientToken":"...","availableProfiles":[{"id":"..","name":".."},{"id":"..","name":"ok_bot"}]}
0

```

After splited by line:
- 1e1
- {"accessToken": ... ,"name":"ok_bot"}]}
- 0
-
-

So adding [1] and [3] will make both 'hitmc.cc' and 'littleskin.cn' work fine.
2024-01-10 11:00:04 +08:00
Anon
480f0d85f0 Fixed merge conflicts 2023-12-02 13:34:11 +01:00
mcflurrybaby
e19de8eb0b refactored session checks for better readability 2023-12-02 13:15:46 +02:00
mcflurrybaby
ceff78a821 Restore ability to login with microsoft broken after yggdrasil login implementation 2023-12-02 12:39:52 +02:00
mcflurrybaby
6714d9a9d0 Add missing 1.20 advancements locales 2023-12-01 00:30:23 +02:00
Anon
2fb5c163d5 Formatting 2023-11-27 00:03:20 +01:00
Anon
0ad892ef50 Chunk Batch error should be fixed now 2023-11-27 00:00:57 +01:00
Anon
549f39fab1 Fixed division with a 0 error 2023-11-25 14:02:06 +01:00
Polaris_Light
a08bfca4e5
Merge branch 'master' into master 2023-11-25 17:23:06 +08:00
Polaris_Light
f07b1e964c ResolveConflict*2 2023-11-24 22:18:42 +08:00
Polaris_Light
8dfcf9c5d5 ResolveConflict 2023-11-24 21:58:55 +08:00
Anon
782481816d Implemented TabListHeaderAndFooter packet 2023-11-20 18:08:09 +01:00
Anon
cf6db27088
[skipci] Websocket bot: Create new Responder object that will respond to the session's new name
Websocket bot: Create new Responder object that will respond to the session's new name
2023-11-20 17:50:04 +01:00
zorua162
d49a597671 Create new Responder object that will repond to the session's new name 2023-11-19 21:07:09 +00:00
zorua162
1f4db70f8a Added extra config to the WebSocket bot AllowIpAlias, which allows enabling of any IP to be used to host the WebSocket bot from 2023-11-19 13:43:32 +00:00
zorua162
fd1009b43f Revert "Add an IP lookup to the WebSocketBot"
This reverts commit 0a149647b6.
2023-11-19 12:57:09 +00:00
zorua162
0a149647b6 Add an IP lookup to the WebSocketBot 2023-11-18 22:00:16 +00:00
Anon
93112d2c02 Implemented 1.20.2 fully, needs more testing 2023-11-17 18:21:57 +01:00
Polaris_Light
4fc1aacca5 BetterTranslationMaybe 2023-11-16 10:10:06 +08:00
Polaris_Light
49dec51588 MakeSelectedProfileNullable 2023-11-16 09:59:56 +08:00
Polaris_Light
a97096cddf ImplPlayerSection 2023-11-16 00:04:56 +08:00
Anon
4f957cee7e 1.20.2 Implementation, not tested 2023-11-15 15:42:27 +01:00
Polaris_Light
3c97193b70 AddYggdrasilLogin 2023-11-12 21:04:20 +08:00
dependabot[bot]
b8af534438
Bump Magick.NET-Q16-AnyCPU from 12.2.1 to 13.3.0 in /MinecraftClient
Bumps [Magick.NET-Q16-AnyCPU](https://github.com/dlemstra/Magick.NET) from 12.2.1 to 13.3.0.
- [Release notes](https://github.com/dlemstra/Magick.NET/releases)
- [Commits](https://github.com/dlemstra/Magick.NET/compare/12.2.1...13.3.0)

---
updated-dependencies:
- dependency-name: Magick.NET-Q16-AnyCPU
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 23:12:25 +00: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
ozi2285
968f864f34
Added ShiftRightClick (#2582)
* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Added ShiftRightClick

* Updated Protocol18.cs ShiftRightClick Description for ReinforceZwei's  Suggestion

* Just Deleted Added ShiftRightClick's Description Line

* Just Deleted Added ShiftRightClick's Description Lines

* Made Change With Informaiton ReinforceZwei Given to Me About Switch-Case and Shorten the Code.

* Re Added Lines That Got Deleted By Mistake

* Add translation key for shift right-click

---------

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2023-09-16 19:39:55 +08:00
ReinforceZwei
37bcad37e0 [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
ReinforceZwei
a8200b6e14
Add setting for allowing non-English name in player list (#2556)
Non-vanilla server may have player name other than English, for example Chinese server can have player name in Chinese. This setting allow MCC to display those non-English name in the player list.
2023-08-02 14:00:11 +08:00
Anon
c5a0409edc Added documentation examples and covered an edge case 2023-07-16 20:45:24 +02:00
Anon
fe5f07306d Added a random interval option to the wait command 2023-07-16 20:37:56 +02: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
7c7b58e941 Implemented 1.20.1 2023-06-22 22:10:55 +02:00
dependabot[bot]
b4829eaca4
Bump Microsoft.Windows.Compatibility in /MinecraftClient
Bumps [Microsoft.Windows.Compatibility](https://github.com/dotnet/runtime) from 7.0.0 to 7.0.3.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/compare/v7.0.0...v7.0.3)

---
updated-dependencies:
- dependency-name: Microsoft.Windows.Compatibility
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 17:09:34 +00:00
Anon
ae7ce35cc8 Fully Implemented 1.20 2023-06-08 19:27:28 +02:00
Anon
f77d58402a
Merge branch 'master' into rename-items 2023-06-03 14:29:42 +00:00
Anon
a357d2c87a Fixing merge conflict 2023-06-03 16:27:36 +02:00
Anon
081cebcf76 Fixed typos and fixed a merge conflict 2023-06-03 16:23:07 +02:00
Anon
fce12db33f Added a command to (re)name items in the Anvil 2023-06-03 16:12:17 +02:00
Anon
95f6c5768d Fixed session renaming not working, fixed command handling 2023-05-28 15:15:43 +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
cfc2baa4e7 Translated 2023-05-21 12:11:58 +02:00
Anon
413cb1860d Implemented Items Collector bot 2023-05-20 21:44:18 +02:00
Anon
64eb48f46d Removed 1.13, because it's not possible to walk under slabs 2023-05-20 13:28:24 +02:00
Anon
852be6e90d Fixed 1.19.3 2023-05-20 13:11:37 +02:00
Anon
97af063d79 Removed a comment 2023-05-16 23:25:29 +02:00
Anon
c7597e8822 Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
Anon
4ff7712f20
Fixed Auto Fishing not working
Fixed Auto Fishing not working
2023-05-10 22:21:54 +02:00
Anon
599c6aac09 Fixed entity object data not being read, this should fix the Auto Fishing bot 2023-05-10 19:07:42 +02:00
dariusel_caroserie
7107023d37
Update Alert.cs (#2496) 2023-05-06 21:55:21 +08:00