Commit graph

58 commits

Author SHA1 Message Date
extremeheat
987bf43987
1.17.10 protocol support (#109)
* 1.17.10 support

* add protocol.json

* add extra particle IDs
2021-07-14 17:30:10 -04:00
extremeheat
5af828bcb7 Update types, add authTitle option to relay, client renderDistance -> viewDistance 2021-06-01 20:10:59 -04:00
extremeheat
76febb29f1
Support xbox title + live.com auth (#86)
* preliminary support for xbox title + live.com auth

* cleanup

* export title list

* add to api docs

* Verify that minecraft token has titleId if did titleAuth

* Minor changes
2021-05-19 09:53:55 -04:00
u9g
39659cf48b
rename hostname to host (#74) 2021-04-23 03:23:43 -04:00
extremeheat
b60fd53ad5
Add relay proxy to tests, docs, fix offline (#71)
* Add relay proxy to tests, docs

* Add proxy example, type defs

* update docs

* proxy: forward login packet, fix offline
2021-04-21 06:22:51 -04:00
extremeheat
5ea8056e04 Fix relay, cleanup 2021-04-20 09:55:57 -04:00
extremeheat
1538c3fc03 Add server MOTD options 2021-04-20 09:55:57 -04:00
extremeheat
999bfd3569
Enforce server auth, ping on createClient, update docs (#68)
* Add createServer, ping on createClient, update README

* fix createClient keepalive

* resort readme, fix node 14

* Enforce auth on server connections, fix close/connect issues

* add type definitions, update readme, docs

* Wait some time before closing connection, update docs

* wait for server close in tests, fix race bug

* export a ping api

* Rename api.md to API.md

* add ping example
2021-04-18 09:19:59 -04:00
u9g
d8ff48258c
Add createClient (#61)
* Initial commit

* remove comment

* export obj

* fix export

* add to api.md

* fix old refs to nmp
2021-04-14 23:39:05 +02:00
extremeheat
aec81efba8 Merge branch 'master' of https://github.com/PrismarineJS/bedrock-protocol into examples 2021-04-14 07:25:38 -04:00
extremeheat
fc39d69798 protocol: inventory, recipe updates 2021-04-14 07:23:42 -04:00
u9g
5499f956b9
Refactor data-provider use in server ex (#64) 2021-04-14 04:19:45 -04:00
extremeheat
a9ad14008e viewer: add sprint, sneaking 2021-04-08 01:32:20 -04:00
extremeheat
41b9f7b383 viewer: working first person 2021-04-07 07:15:22 -04:00
extremeheat
01f19164ba viewer: key control movement 2021-04-07 01:56:32 -04:00
extremeheat
7a830317ea viewer: first person views 2021-04-04 03:52:06 -04:00
extremeheat
32d52e9878 viewer: refactor and cleanup 2021-04-03 22:56:36 -04:00
extremeheat
d2c0d3c386 viewer: add proxy example 2021-04-03 20:34:42 -04:00
extremeheat
f5321dd277 create pviewer exxample 2021-03-30 01:39:28 -04:00
extremeheat
a55eaddc98
Add packet dumper, new server example, internal client/server test (#4)
* Add packet dumper, configuable vanilla server, client events

* Fix server/client closing

* Add internal server test

* protocol: use WindowID types

* Add internal client/server test

* test timeout fixes

* client example updates

* update server example, use protocol updates
Server example with bedrock-provider
Use 64-bit varints for entity runtime ids

* fix internal test packet path
2021-03-26 05:19:08 -04:00
extremeheat
3369fc2790 update server example, use protocol updates
Server example with bedrock-provider
Use 64-bit varints for entity runtime ids
2021-03-26 04:48:23 -04:00
extremeheat
0bdd071876 client example updates 2021-03-26 04:48:21 -04:00
extremeheat
edcc370426
Add index, .npmignore, connect timeout (#1)
* add index and .npm ignore

* add connect timeout

* update protocol.json

* Update ci.yml

* Update ci.yml
2021-03-22 15:07:25 -04:00
extremeheat
1c582acdb5
Standard (#44)
* standard

* remove old examples
2021-03-13 19:38:31 +01:00
extremeheat
df8612e355
Start work on multi-version support, test cleanup (#43)
* some cleanup

* start work on multi-version support

* undelete some old examples, can update them later

* move old examples
2021-03-12 20:20:25 +01:00
Filiph Sandström
06c77c3668 Manually fix packets for 1.12 2019-07-14 17:53:52 +02:00
Romain Beaumont
d8ee61b7db worldName in server.js 2016-06-21 03:03:52 +02:00
Romain Beaumont
d040667bc0
spawns ! 2016-06-18 15:51:41 +02:00
Romain Beaumont
66111dad54
encryption + complete example. The ideas are there, but it doesn't seems to be accepted by the client yet 2016-06-18 14:58:17 +02:00
mhsjlw
26dca46471 more encryption stuff, lots of progress 2016-06-16 07:11:22 -04:00
mhsjlw
54c371dd62 generating public keys 2016-06-15 07:30:02 -04:00
mhsjlw
1dc00237fa login event, jwt decoding 2016-06-15 06:53:00 -04:00
mhsjlw
97c8b7d0aa change packet prefix, remove duplicate packets 2016-06-14 18:40:20 -04:00
mhsjlw
8c30673c6c update all examples 2016-06-14 18:17:54 -04:00
mhsjlw
91e246cecc fix block update 2016-05-23 06:44:04 -04:00
mhsjlw
044c2204d6 deserializer fixes and 0.14.3 2016-05-19 17:19:15 -04:00
mhsjlw
3006fd44bf update to version 2.1.0 (protocol 60) 2016-05-14 21:26:38 -04:00
Romain Beaumont
375137b69f
update raknet, reconnecting is now working 2016-04-13 03:31:29 +02:00
Romain Beaumont
9041e3065a
update raknet : encapsulated packet now emit actual errors 2016-04-12 23:33:34 +02:00
Romain Beaumont
11c8df52bb
remove mcpe_ prefix, fix #6 2016-04-12 22:40:30 +02:00
Romain Beaumont
4342ba7c3a
remove TODO in server.js 2016-04-12 22:31:24 +02:00
Romain Beaumont
acc912e8b3
gamemode 1 in example 2016-04-12 22:30:41 +02:00
Romain Beaumont
9b0a713050
ask for chunks in the client.js example and update raknet 2016-04-09 21:55:45 +02:00
Romain Beaumont
8266750be7
add radius update 2016-04-09 19:59:05 +02:00
Romain Beaumont
22010fd0f8
make the server example spawn (with no chunks displayed) 2016-04-09 19:52:40 +02:00
Romain Beaumont
863ddf1785 add example chunk, use protodef to implement read and write batch, try to make the chunk sending work 2016-04-07 00:46:40 +02:00
mhsjlw
dc7c30482c batch packets 2016-04-06 17:32:48 -04:00
Romain Beaumont
522afb4dfd put client login sequence in createClient.js 2016-04-06 03:06:34 +02:00
Romain Beaumont
32fba0cc4c start working on the client
the mcpe_login packet gets ignored, check if the splitting is done the same way as pocketmine does it
2016-04-05 01:55:57 +02:00
Romain Beaumont
eee1fe6aa7 add most of server login sequence in server example 2016-04-05 00:41:46 +02:00