Commit Graph

137 Commits

Author SHA1 Message Date
Tom
8ecf08fa50 Implement packet decoding for entities 2020-09-17 00:13:08 -07:00
Tom
a981ab84f5 Implement basic X/Z control surface 2020-09-16 21:40:41 -07:00
Tom
70bb24a7fb Major update to implement basic collision 2020-09-16 20:16:47 -07:00
Tom
eec9d30795 Major update of chunk system for 1.16.2 2020-09-14 20:03:57 -07:00
Tom
d3bb141fcd Move decode of complex packets into their own package 2020-09-12 21:13:37 -07:00
Tom
b58d959b93 Move to new block dataset 2020-09-12 19:47:32 -07:00
Tom
358fb7b659 Implement generator and type for packet IDs 2020-09-12 13:38:45 -07:00
Tom
0ec82d90a7 Update to 1.16.3 + add a few new event callbacks. 2020-09-11 18:00:15 -07:00
48dca250ed Remove debugging output 2020-08-31 11:47:38 -05:00
d3acd41542 Successful decoding of biomesData 2020-08-31 11:35:09 -05:00
ee164b05d4 Remove debugging line 2020-08-30 21:55:53 -05:00
ec0365d9c8 Non-working attempt at parsing new biomesData format 2020-08-30 21:48:52 -05:00
1ec365af32 Blind version bump for 1.16.2 2020-08-26 11:13:43 -05:00
d45de88246 Add bot API to handle experience updates 2020-08-01 23:07:18 +03:00
3933bed4a9 refactor mcbot JoinServer to allow correct handshake packet 2020-07-25 10:55:32 -05:00
ee23be105f Deleted is deleted 2020-07-09 14:07:10 +08:00
b22ad870c3 Doesn't convert UUID to string in ChatMsg event. 2020-07-09 13:51:21 +08:00
444229216a Basic support for 1.16.1 2020-07-01 11:32:58 +08:00
32a6898b12 Update packetIDs to 1.16 2020-07-01 09:48:26 +08:00
3f8f85aa1d 指定當傳送加入伺服器的請求至Mojang時的Content-Type標頭
官方好像正常是要指定Content-Type( https://wiki.vg/Authentication#Request_format )
現在是不加沒關係
但如果Mojang修正的話可能會出錯
2020-06-23 17:26:48 +08:00
dade32116f Simplified bit operation 2020-05-24 12:40:01 +08:00
2ae88b10f4 change API of Section from (x, y, z int) to (offset int) 2020-05-21 17:28:42 +08:00
2db43755f1 The paletteSection can auto increase its underlying directSection. 2020-05-21 17:07:18 +08:00
97dca98819 add unit test for paletteSection 2020-05-19 16:15:39 +08:00
39c9525525 add unit test for directSection 2020-05-19 14:41:01 +08:00
32527442ed add SetBlock function 2020-05-19 14:15:44 +08:00
fa75535f37 add GetBlock function 2020-05-17 14:45:27 +08:00
eba832b424 rewrite chunk data decoder 2020-05-17 13:35:52 +08:00
1d58589601 攻擊時不需指定主手或副手
參照https://wiki.vg/Protocol#Interact_Entity裡的
Hand為Only if Type is interact or interact at;
2020-05-02 17:03:07 +08:00
a908a03fcd Use %w in file ingame.go and nbt package, then we can use errors.Is for compare 2020-03-04 12:37:43 +08:00
7defd6062c fix nbt: unexpected TAG_End error, which trigger by picking up an item without NBT. 2020-03-04 12:00:19 +08:00
e10bb44716 fix nbt: unexpected TAG_End error, which trigger by picking up an item without NBT. 2020-03-04 11:53:16 +08:00
478fd678c8 Fix wrong behavior when data covers two adjacent int64 in fillSection 2020-02-18 16:48:14 +08:00
beac876beb 更新版本号至1.15.2
Updates code to minecraft 1.15.2 (protocol 578)
2020-01-22 12:17:58 -06:00
a8798ce9fb Correct behavior of method Client.Disconnect() 2020-01-14 17:19:12 +08:00
72b1820826 用更简单的方式为bot包支持代理 2020-01-05 01:14:38 +08:00
933222faf5 Change bot.JoinConn(*go-mc/net.Conn) to bot.JoinConn(net.Conn) 2020-01-05 00:33:35 +08:00
b2a5f7b720 Add bot.JoinConn() 2020-01-04 23:44:58 +08:00
d3e1ec1523 更新版本号至1.15.1 2019-12-29 07:59:39 +08:00
37c98c8d26 decode Biomes data 2019-12-14 22:37:03 +08:00
4384646214 decode Biomes data 2019-12-14 22:30:12 +08:00
e8bb060cc4 更新1.15协议部分 2019-12-11 11:07:47 +08:00
9576aa2823 may fix #28 2019-10-20 14:19:38 +08:00
323dc15eec Test of offline UUID 2019-08-29 15:55:43 +08:00
d0dbc703cf get offline UUID of player from their name! 2019-08-29 15:52:54 +08:00
d85d31da46 you can dial connection with timeout, and the PingAndList at /bot also. 2019-08-27 02:06:59 +08:00
0c48980309 Disconnect method, SendPacket and ReceivePacket. 2019-08-16 12:46:09 +08:00
6ed67477c7 remove inventory and hotbar method 2019-08-11 09:54:09 +08:00
c667d86153 #4 2019-08-09 18:17:50 +08:00
dac6580ff8 now the new yggdrasil package and /cmd s can pass go test >_< 2019-08-09 00:53:39 +08:00