Commit Graph

445 Commits

Author SHA1 Message Date
08a6f3b219 Merge pull request #73 from lanindev/bot-experience
Add bot API to handle experience updates
2020-08-02 08:49:30 +08:00
d45de88246 Add bot API to handle experience updates 2020-08-01 23:07:18 +03:00
a42a623366 Merge pull request #71 from dazoe/fix-handshake
refactor mcbot JoinServer to allow correct handshake packet
2020-07-26 07:45:08 +08:00
3933bed4a9 refactor mcbot JoinServer to allow correct handshake packet 2020-07-25 10:55:32 -05:00
4c47cad337 Merge pull request #69 from MscBaiMeow/patch-1
Update soundIDs.go
2020-07-20 11:39:41 +08:00
694cdf1db8 Update soundIDs.go 2020-07-20 09:43:08 +08:00
a232f9f01c Merge remote-tracking branch 'origin/master' 2020-07-14 12:59:58 +08:00
e8f6c6fa9b Improved rcon testing 2020-07-14 12:59:11 +08:00
42177f3ef6 Update README.md 2020-07-14 01:05:59 +08:00
6d526bc7e7 Merge pull request #65 from DeadlySurgeon/master
Adds `Close()` function to RCONClientConn and RCONServerConn
2020-07-13 09:51:48 +08:00
2159d1c959 Adds Close Function 2020-07-12 20:33:42 -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
0b3e6b01d5 Merge branch 'pull/62' into 1.16-dev 2020-07-09 13:42:44 +08:00
e7cfd4bbc6 fix autofish.go 2020-07-01 13:05:56 +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
b602b7b3e0 example server. close #61 2020-06-30 23:35:11 +08:00
0c01e5a140 Merge pull request #60 from rain931215/patch-1
指定當傳送加入伺服器的請求至Mojang時的Content-Type標頭
2020-06-23 23:09:32 +08:00
3f8f85aa1d 指定當傳送加入伺服器的請求至Mojang時的Content-Type標頭
官方好像正常是要指定Content-Type( https://wiki.vg/Authentication#Request_format )
現在是不加沒關係
但如果Mojang修正的話可能會出錯
2020-06-23 17:26:48 +08:00
61f1fc31b6 change packet id from Byte to VarInt. #59 2020-06-02 14:33:21 +08:00
d0371163cd document part 3: Chinese version 2020-05-24 14:47:05 +08:00
91db0ec40b document part 2 2020-05-24 14:24:18 +08:00
100a73c2d8 document part 1 2020-05-24 13:10:16 +08:00
dade32116f Simplified bit operation 2020-05-24 12:40:01 +08:00
cfd8d6b870 Merge pull request #57 from Tnze/patch-chunkdata
Rewrite chunk data decoder
2020-05-21 17:31:03 +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
ab9db15d0b Merge pull request #54 from rain931215/master
攻擊時不需指定主手或副手
2020-05-02 18:24:05 +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
e3052668a3 Merge remote-tracking branch 'origin/master' 2020-05-01 10:44:36 +08:00
3257c81a27 expose control sequences function 2020-05-01 10:43:50 +08:00
c87bdc91be Add unit test for invalid long VarInt 2020-04-26 13:06:42 +08:00
e6ca182ba1 Fixed VarInt and VarLong max size
Before VarInt could have had a size of 7 byte without generating errors (max should be 5).
>= 5 is because we start from 0 and i=5 is already in error.
For example if byte of VarInt are [255 255 255 255 255 255 1], at penultimate iteration, i will be 5 (start at 0) so there aren't errors and at the last the break bypass the sec&0x80 check.
Same for VarLong.
2020-04-25 18:06:37 +02:00
b509967247 Merge remote-tracking branch 'origin/master' 2020-04-12 14:59:46 +08:00
ebf1d5c2c2 Update languages file. Add two function to chat packet: Append and TranslateMsg 2020-04-12 14:58:44 +08:00
cf150c16fa support marshal []int16, []float32, []float64 and []string. More work needed for #50 2020-04-08 16:02:01 +08:00
bcddc6698b add marshal test for nbt library 2020-04-08 13:18:26 +08:00
73727eccb9 Better error message that helps issue #49 . 2020-04-04 17:06:15 +08:00
739761d434 update mcping README 2020-03-11 16:02:34 +08:00
c0f3f3f8d4 update go version 2020-03-06 10:32:36 +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
5740edd409 Merge pull request #39 from mcfx0/master
Fix wrong behavior when data covers two adjacent int64 in fillSection
2020-02-19 10:56:07 +08:00