forked from krkkrk/minecraft-dissector
-
Notifications
You must be signed in to change notification settings - Fork 2
/
packet-minecraft-values.h
288 lines (277 loc) · 7.47 KB
/
packet-minecraft-values.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
/*
Copyright (C) 2011 by Scott Brooks
Copyright (C) 2011 by Alan De Smet
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
static const value_string directionnames[] = {
{0, "-Y"},
{1, "+Y"},
{2, "-Z"},
{3, "+Z"},
{4, "-X"},
{5, "+X"},
{0, NULL}
};
static const value_string animations[] = {
{0, "None"},
{1, "Swing arm"},
{2, "Take damage"},
{104, "Crouch"},
{105, "Stand"},
{0, NULL}
};
static const value_string dimensions[] = {
{0, "Normal World"},
{-1, "The Nether"},
{0, NULL}
};
static const value_string mobtypes[] = {
{50, "Creeper"},
{51, "Skeleton"},
{52, "Spider"},
{53, "GiantZombie"},
{54, "Zombie"},
{55, "Slime"},
{56, "Ghast"},
{57, "ZombiePigman"},
{90, "Pig"},
{91, "Sheep"},
{92, "Cow"},
{93, "Chicken"},
{94, "Squid"},
{95, "Wolf"},
{0, NULL}
};
static const value_string itemtypes[] = {
/* Blocks */
{0x00, "Air"},
{0x01, "Stone"},
{0x02, "Grass"},
{0x03, "Dirt"},
{0x04, "Cobblestone"},
{0x05, "Wooden Plank"},
{0x06, "Sapling"},
{0x07, "Bedrock"},
{0x08, "Water"},
{0x09, "Stationary Water"},
{0x0A, "Lava"},
{0x0B, "Stationary Lava"},
{0x0C, "Sand"},
{0x0D, "Gravel"},
{0x0E, "Gold Ore"},
{0x0F, "Iron Ore"},
{0x10, "Coal Ore"},
{0x11, "Wood"},
{0x12, "Leaves"},
{0x13, "Sponge"},
{0x14, "Glass"},
{0x15, "Lapis Lazuli Ore"},
{0x16, "Lapis Lazuli Block"},
{0x17, "Dispenser"},
{0x18, "Sandstone"},
{0x19, "Note Block"},
{0x1A, "Bed Block"},
{0x1B, "Powered Rail"},
{0x1C, "Detector Rail"},
{0x1D, "Sticky Piston"},
{0x1E, "Cobweb"},
{0x1F, "Tall Grass"},
{0x20, "Dead Shrubs"},
{0x21, "Piston"},
{0x22, "Piston (Head)"},
{0x23, "Wool"},
{0x25, "Dandelion"},
{0x26, "Rose"},
{0x27, "Brown Mushroom"},
{0x28, "Red Mushroom"},
{0x29, "Gold Block"},
{0x2A, "Iron Block"},
{0x2B, "Double Slabs"},
{0x2C, "Slabs"},
{0x2D, "Brick Block"},
{0x2E, "TNT"},
{0x2F, "Bookshelf"},
{0x30, "Moss Stone"},
{0x31, "Obsidian"},
{0x32, "Torch"},
{0x33, "Fire"},
{0x34, "Monster Spawner"},
{0x35, "Wooden Stairs"},
{0x36, "Chest"},
{0x37, "Redstone Wire"},
{0x38, "Diamond Ore"},
{0x39, "Diamond Block"},
{0x3A, "Crafting Table"},
{0x3B, "Seeds"},
{0x3C, "Farmland"},
{0x3D, "Furnace"},
{0x3E, "Burning Furnace"},
{0x3F, "Sign Post"},
{0x40, "Wooden Door"},
{0x41, "Ladders"},
{0x42, "Rails"},
{0x43, "Cobblestone Stairs"},
{0x44, "Wall Sign"},
{0x45, "Lever"},
{0x46, "Stone Pressure Plate"},
{0x47, "Iron Door"},
{0x48, "Wooden Pressure Plate"},
{0x49, "Redstone Ore"},
{0x4A, "Glowing Redstone Ore"},
{0x4B, "Redstone Torch (state: OFF)"},
{0x4C, "Redstone Torch (state: ON)"},
{0x4D, "Stone Button"},
{0x4E, "Snow"},
{0x4F, "Ice"},
{0x50, "Snow Block"},
{0x51, "Cactus"},
{0x52, "Clay Block"},
{0x53, "Sugar Cane"},
{0x54, "Jukebox"},
{0x55, "Fence"},
{0x56, "Pumpkin"},
{0x57, "Netherrack"},
{0x58, "Soul Sand"},
{0x59, "Glowstone Block"},
{0x5A, "Portal"},
{0x5B, "Jack-O-Lantern"},
{0x5C, "Cake Block"},
{0x5D, "Redstone Repeater (state: OFF)"},
{0x5E, "RedstoneRepeaterOn (state: ON)"},
{0x5F, "Locked Chest"},
{0x60, "Trapdoor"},
/* Items */
{0x0100, "Iron Shovel"},
{0x0101, "Iron Pickaxe"},
{0x0102, "Iron Axe"},
{0x0103, "Flint And Steel"},
{0x0104, "Apple"},
{0x0105, "Bow"},
{0x0106, "Arrow"},
{0x0107, "Coal"},
{0x0108, "Diamond"},
{0x0109, "Iron Ingot"},
{0x010A, "Gold Ingot"},
{0x010B, "Iron Sword"},
{0x010C, "Wooden Sword"},
{0x010D, "Wooden Shovel"},
{0x010E, "Wooden Pickaxe"},
{0x010F, "Wooden Axe"},
{0x0110, "Stone Sword"},
{0x0111, "Stone Shovel"},
{0x0112, "Stone Pickaxe"},
{0x0113, "Stone Axe"},
{0x0114, "Diamond Sword"},
{0x0115, "Diamond Shovel"},
{0x0116, "Diamond Pickaxe"},
{0x0117, "Diamond Axe"},
{0x0118, "Stick"},
{0x0119, "Bowl"},
{0x011A, "Mushroom Soup"},
{0x011B, "Gold Sword"},
{0x011C, "Gold Shovel"},
{0x011D, "Gold Pickaxe"},
{0x011E, "Gold Axe"},
{0x011F, "String"},
{0x0120, "Feather"},
{0x0121, "Gunpowder"},
{0x0122, "Wooden Hoe"},
{0x0123, "Stone Hoe"},
{0x0124, "Iron Hoe"},
{0x0125, "Diamond Hoe"},
{0x0126, "Gold Hoe"},
{0x0127, "Seeds"},
{0x0128, "Wheat"},
{0x0129, "Bread"},
{0x012A, "Leather Cap"},
{0x012B, "Leather Tunic"},
{0x012C, "Leather Pants"},
{0x012D, "Leather Boots"},
{0x012E, "Chain Helmet"},
{0x012F, "Chain Chestplate"},
{0x0130, "Chain Leggings"},
{0x0131, "Chain Boots"},
{0x0132, "Iron Helmet"},
{0x0133, "Iron Chestplate"},
{0x0134, "Iron Leggings"},
{0x0135, "Iron Boots"},
{0x0136, "Diamond Helmet"},
{0x0137, "Diamond Chestplate"},
{0x0138, "Diamond Leggings"},
{0x0139, "Diamond Boots"},
{0x013A, "Gold Helmet"},
{0x013B, "Gold Chestplate"},
{0x013C, "Gold Leggings"},
{0x013D, "Gold Boots"},
{0x013E, "Flint"},
{0x013F, "Raw Porkchop"},
{0x0140, "Cooked Porkchop"},
{0x0141, "Paintings"},
{0x0142, "Golden Apple"},
{0x0143, "Sign"},
{0x0144, "Wooden Door"},
{0x0145, "Bucket"},
{0x0146, "Water Bucket"},
{0x0147, "Lava Bucket"},
{0x0148, "Minecart"},
{0x0149, "Saddle"},
{0x014A, "Iron Door"},
{0x014B, "Redstone"},
{0x014C, "Snowball"},
{0x014D, "Boat"},
{0x014E, "Leather"},
{0x014F, "Milk Bucket"},
{0x0150, "Clay Brick"},
{0x0151, "Clay"},
{0x0152, "Sugar Cane"},
{0x0153, "Paper"},
{0x0154, "Book"},
{0x0155, "Slimeball"},
{0x0156, "Storage Minecart"},
{0x0157, "Powered Minecart"},
{0x0158, "Egg"},
{0x0159, "Compass"},
{0x015A, "Fishing Rod"},
{0x015B, "Clock"},
{0x015C, "Glowstone Dust"},
{0x015D, "Raw Fish"},
{0x015E, "Cooked Fish"},
{0x015F, "Dye"},
{0x0160, "Bone"},
{0x0161, "Sugar"},
{0x0162, "Cake"},
{0x0163, "Bed"},
{0x0164, "Redstone Repeater"},
{0x0165, "Cookie"},
{0x0166, "Map"},
{0x0167, "Shears"},
{0x08D0, "Gold Music Disc"},
{0x08D1, "Green Music Disc"},
{0, NULL}
};
static const value_string server_modes[] = {
{0, "Survival"},
{1, "Creative"},
{0, NULL}
};
static const value_string difficulties[] = {
{0, "Peaceful"},
{1, "Easy"},
{2, "Normal"},
{3, "Hard"},
{0, NULL}
};