Skip to content

Commit 5afdff2

Browse files
authored
Merge branch 'master' into effect-fix
2 parents dfe3bef + fa4c64e commit 5afdff2

119 files changed

Lines changed: 265703 additions & 2645 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/commands.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Repo Commands
2+
3+
on:
4+
issue_comment: # Handle comment commands
5+
types: [created]
6+
pull_request: # Handle renamed PRs
7+
types: [edited]
8+
9+
jobs:
10+
comment-trigger:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v3
15+
- name: Run command handlers
16+
uses: PrismarineJS/prismarine-repo-actions@master
17+
with:
18+
# NOTE: You must specify a Personal Access Token (PAT) with repo access here. While you can use the default GITHUB_TOKEN, actions taken with it will not trigger other actions, so if you have a CI workflow, commits created by this action will not trigger it.
19+
token: ${{ secrets.PAT_PASSWORD }}
20+
# See `Options` section below for more info on these options
21+
install-command: cd tools/js && npm install
22+
/fixlint.fix-command: cd tools/js && npm run fix

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Language independent module providing minecraft data for minecraft clients, serv
99

1010
Supports
1111
* Minecraft PC version 0.30c (classic), 1.7.10, 1.8.8, 1.9 (15w40b, 1.9, 1.9.1-pre2, 1.9.2, 1.9.4),
12-
1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18 (1.18, 1.18.1, 1.18.2), 1.19 (1.19, 1.19.2, 1.19.3, 1.19.4)
13-
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70, 1.19.80, 1.20.0
12+
1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18 (1.18, 1.18.1, 1.18.2), 1.19 (1.19, 1.19.2, 1.19.3, 1.19.4), 1.20 (1.20, 1.20.1)
13+
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70, 1.19.80, 1.20.0, 1.20.10
1414

1515

1616
## Wrappers
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
[
2+
{
3+
"name": "followRange",
4+
"resource": "generic.follow_range",
5+
"default": 32,
6+
"min": 0,
7+
"max": 2048
8+
},
9+
{
10+
"name": "knockbackResistance",
11+
"resource": "generic.knockback_resistance",
12+
"default": 0,
13+
"min": 0,
14+
"max": 1
15+
},
16+
{
17+
"name": "movementSpeed",
18+
"resource": "generic.movement_speed",
19+
"default": 0.7,
20+
"min": 0,
21+
"max": 1024
22+
},
23+
{
24+
"name": "attackDamage",
25+
"resource": "generic.attack_damage",
26+
"default": 2,
27+
"min": 0,
28+
"max": 2048
29+
},
30+
{
31+
"name": "horseJumpStrength",
32+
"resource": "horse.jump_strength",
33+
"default": 0.7,
34+
"min": 0,
35+
"max": 2
36+
},
37+
{
38+
"name": "zombieSpawnReinforcements",
39+
"resource": "zombie.spawn_reinforcements",
40+
"default": 0,
41+
"min": 0,
42+
"max": 1
43+
},
44+
{
45+
"name": "flyingSpeed",
46+
"resource": "generic.flying_speed",
47+
"default": 0.4,
48+
"min": 0,
49+
"max": 1024
50+
},
51+
{
52+
"name": "luck",
53+
"resource": "generic.luck",
54+
"default": 0,
55+
"min": -1024,
56+
"max": 1024
57+
},
58+
{
59+
"name": "health",
60+
"resource": "health",
61+
"default": 20,
62+
"min": 0,
63+
"max": 20
64+
},
65+
{
66+
"name": "absorption",
67+
"resource": "absorption",
68+
"default": 0,
69+
"min": 0,
70+
"max": 1024
71+
},
72+
{
73+
"name": "exhaustion",
74+
"resource": "player.exhaustion",
75+
"default": 0,
76+
"min": 0,
77+
"max": 5
78+
},
79+
{
80+
"name": "experienceProgress",
81+
"resource": "player.experience",
82+
"default": 0,
83+
"min": 0,
84+
"max": 1
85+
},
86+
{
87+
"name": "experienceLevel",
88+
"resource": "player.level",
89+
"default": 0,
90+
"min": 0,
91+
"max": 24791
92+
},
93+
{
94+
"name": "hunger",
95+
"resource": "player.hunger",
96+
"default": 20,
97+
"min": 0,
98+
"max": 20
99+
},
100+
{
101+
"name": "saturation",
102+
"resource": "player.saturation",
103+
"default": 20,
104+
"min": 0,
105+
"max": 20
106+
}
107+
]

data/bedrock/1.16.201/proto.yml

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -699,15 +699,18 @@ packet_entity_event:
699699
71: balloon_pop
700700
72: treasure_hunt
701701
73: agent_summon
702-
74: charged_crossbow
702+
74: charged_item
703703
75: fall
704704
data: zigzag32
705705

706706
packet_mob_effect:
707707
!id: 0x1c
708708
!bound: client
709709
runtime_entity_id: varint
710-
event_id: u8
710+
event_id: u8 =>
711+
1: add
712+
2: update
713+
3: remove
711714
effect_id: zigzag32
712715
amplifier: zigzag32
713716
particles: bool
@@ -753,6 +756,7 @@ packet_interact:
753756
action_id: u8 =>
754757
3: leave_vehicle
755758
4: mouse_over_entity
759+
5: npc_open
756760
6: open_inventory
757761
# TargetEntityRuntimeID is the runtime ID of the entity that the player interacted with. This is empty
758762
# for the InteractActionOpenInventory action type.
@@ -1162,7 +1166,11 @@ packet_player_list:
11621166
packet_simple_event:
11631167
!id: 0x40
11641168
!bound: client
1165-
event_type: lu16
1169+
event_type: lu16 =>
1170+
0: uninitialized_subtype
1171+
1: enable_commands
1172+
2: disable_commands
1173+
3: unlock_world_template_settings
11661174

11671175
# Event is sent by the server to send an event with additional data. It is typically sent to the client for
11681176
# telemetry reasons, much like the SimpleEvent packet.
@@ -1324,7 +1332,7 @@ packet_available_commands:
13241332
# The list of overload parameters for this command
13251333
overloads: []varint
13261334
# Each of the parameters gets an array of posible overloads
1327-
_: []varint
1335+
parameters: []varint
13281336
# The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
13291337
parameter_name: string
13301338
value_type: lu16 =>
@@ -1344,9 +1352,9 @@ packet_available_commands:
13441352
# In MC, this + prior field are combined to one 32bit bitfield
13451353
enum_type: lu16 =>
13461354
0x10: valid
1347-
0x20: enum
1355+
0x30: enum
13481356
0x100: suffixed
1349-
0x400: soft_enum
1357+
0x410: soft_enum
13501358
# Is this parameter required?
13511359
optional: bool
13521360
# Additinal options for this command (thanks macroshaft...)
@@ -1601,9 +1609,14 @@ packet_show_store_offer:
16011609
unknown0: string
16021610
unknown1: bool
16031611

1612+
# PurchaseReceipt is sent by the client to the server to notify the server it purchased an item from the
1613+
# Marketplace store that was offered by the server. The packet is only used for partnered servers.
16041614
packet_purchase_receipt:
16051615
!id: 0x5c
16061616
!bound: server
1617+
# Receipts is a list of receipts, or proofs of purchases, for the offers that have been purchased by the
1618+
# player.
1619+
receipts: string[]varint
16071620

16081621
packet_player_skin:
16091622
!id: 0x5d
@@ -1614,9 +1627,18 @@ packet_player_skin:
16141627
old_skin_name: string
16151628
is_verified: bool
16161629

1630+
# SubClientLogin is sent when a sub-client joins the server while another client is already connected to it.
1631+
# The packet is sent as a result of split-screen game play, and allows up to four players to play using the
1632+
# same network connection. After an initial Login packet from the 'main' client, each sub-client that
1633+
# connects sends a SubClientLogin to request their own login.
16171634
packet_sub_client_login:
16181635
!id: 0x5e
1619-
!bound: client
1636+
!bound: server
1637+
# ConnectionRequest is a string containing information about the player and JWTs that may be used to
1638+
# verify if the player is connected to XBOX Live. The connection request also contains the necessary
1639+
# client public key to initiate encryption.
1640+
# The ConnectionRequest in this packet is identical to the one found in the Login packet.
1641+
tokens: '["encapsulated", { "lengthType": "varint", "type": "LoginTokens" }]'
16201642

16211643
packet_initiate_web_socket_connection:
16221644
!id: 0x5f
@@ -1628,9 +1650,11 @@ packet_set_last_hurt_by:
16281650
!bound: client
16291651
unknown: varint
16301652

1653+
# BookEdit is sent by the client when it edits a book. It is sent each time a modification was made and the
1654+
# player stops its typing 'session', rather than simply after closing the book.
16311655
packet_book_edit:
16321656
!id: 0x61
1633-
!bound: client
1657+
!bound: server
16341658
type: u8 =>
16351659
0: replace_page
16361660
1: add_page
@@ -1701,7 +1725,7 @@ packet_show_profile:
17011725
# in the settings UI.
17021726
packet_set_default_game_type:
17031727
!id: 0x69
1704-
!bound: client
1728+
!bound: server
17051729
# GameType is the new game type that is set. When sent by the client, this is the requested new default
17061730
# game type.
17071731
gamemode: GameMode
@@ -1736,6 +1760,7 @@ packet_lab_table:
17361760
action_type: u8 =>
17371761
0: combine
17381762
1: react
1763+
2: reset
17391764
# Position is the position at which the lab table used was located.
17401765
position: vec3i
17411766
# ReactionType is the type of the reaction that took place as a result of the items put into the lab
@@ -1889,7 +1914,7 @@ packet_level_event_generic:
18891914
# or if the book should be removed from it.
18901915
packet_lectern_update:
18911916
!id: 0x7d
1892-
!bound: client
1917+
!bound: server
18931918
# Page is the page number in the book that was opened by the player on the lectern.
18941919
page: u8
18951920
# PageCount is the number of pages that the book opened in the lectern has.
@@ -1905,7 +1930,9 @@ packet_video_stream_connect:
19051930
!bound: client
19061931
server_uri: string
19071932
frame_send_frequency: lf32
1908-
action: u8
1933+
action: u8 =>
1934+
1: none
1935+
2: close
19091936
resolution_x: li32
19101937
resolution_y: li32
19111938

@@ -1945,7 +1972,7 @@ packet_map_create_locked_copy:
19451972

19461973
packet_structure_template_data_export_request:
19471974
!id: 0x84
1948-
!bound: client
1975+
!bound: server
19491976

19501977
packet_structure_template_data_export_response:
19511978
!id: 0x85
@@ -1960,7 +1987,7 @@ packet_update_block_properties:
19601987
# what blobs it needs and which blobs it already has, in an ACK type system.
19611988
packet_client_cache_blob_status:
19621989
!id: 0x87
1963-
!bound: client
1990+
!bound: server
19641991
# The number of MISSes in this packet
19651992
misses: varint
19661993
# The number of HITs in this packet
@@ -2224,7 +2251,7 @@ ArmorDamageType: [ "bitflags",
22242251
# identical to the SetPlayerGameType packet.
22252252
packet_update_player_game_type:
22262253
!id: 0x97
2227-
!bound: server
2254+
!bound: client
22282255
# GameType is the new game type of the player. It is one of the constants that can be found in
22292256
# set_player_game_type.go. Some of these game types require additional flags to be set in an
22302257
# AdventureSettings packet for the game mode to obtain its full functionality.
@@ -2399,7 +2426,7 @@ packet_item_component:
23992426
# safer version of the text.
24002427
packet_filter_text_packet:
24012428
!id: 0xa3
2402-
!bound: client
2429+
!bound: both
24032430
# Text is either the text from the client or the safer version of the text sent by the server.
24042431
text: string
24052432
# FromServer indicates if the packet was sent by the server or not.

0 commit comments

Comments
 (0)