-
Notifications
You must be signed in to change notification settings - Fork 481
/
items.py
370 lines (369 loc) · 8.72 KB
/
items.py
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
items = {
0: 'Air',
1: 'Stone',
2: 'Grass Block',
3: 'Dirt',
4: 'Cobblestone',
5: 'Wooden Planks',
6: 'Sapling',
7: 'Bedrock',
8: 'Water',
9: 'Stationary Water',
10: 'Lava',
11: 'Stationary Lava',
12: 'Sand',
13: 'Gravel',
14: 'Gold Ore',
15: 'Iron Ore',
16: 'Coal Ore',
17: 'Wood',
18: 'Leaves',
19: 'Sponge',
20: 'Glass',
21: 'Lapis Lazuli Ore',
22: 'Lapis Lazuli Block',
23: 'Dispenser',
24: 'Sandstone',
25: 'Note Block',
26: 'Bed',
27: 'Powered Rail',
28: 'Detector Rail',
29: 'Sticky Piston',
30: 'Cobweb',
31: 'Shrub',
32: 'Dead Bush',
33: 'Piston',
34: 'Piston Extension',
35: 'Wool',
36: 'Block moved by Piston',
37: 'Dandelion',
38: 'Poppy',
39: 'Brown Mushroom',
40: 'Red Mushroom',
41: 'Block of Gold',
42: 'Block of Iron',
43: 'Double Stone Slab',
44: 'Stone Slab',
45: 'Bricks',
46: 'TNT',
47: 'Bookshelf',
48: 'Moss Stone',
49: 'Obsidian',
50: 'Torch',
51: 'Fire',
52: 'Monster Spawner',
53: 'Oak Wood Stairs',
54: 'Chest',
55: 'Redstone wire',
56: 'Diamond ore',
57: 'Block of Diamond',
58: 'Crafting Table',
59: 'Crops',
60: 'Farmland',
61: 'Furnace',
62: 'Burning furnace',
63: 'Sign',
64: 'Wooden door',
65: 'Ladder',
66: 'Rail',
67: 'Cobblestone Stairs',
68: 'Wall sign',
69: 'Lever',
70: 'Stone Pressure Plate',
71: 'Iron door',
72: 'Wooden Pressure Plate',
73: 'Redstone Ore',
74: 'Glowing Redstone Ore',
75: 'Redstone Torch (off)',
76: 'Redstone Torch (on)',
77: 'Stone Button',
78: 'Snow',
79: 'Ice',
80: 'Snow Block',
81: 'Cactus',
82: 'Clay Block',
83: 'Sugar Cane',
84: 'Jukebox',
85: 'Fence',
86: 'Pumpkin',
87: 'Netherrack',
88: 'Soul Sand',
89: 'Glowstone',
90: 'Nether Portal',
91: 'Jack o\'Lantern',
92: 'Cake',
93: 'Redstone Repeater (off)',
94: 'Redstone Repeater (on)',
95: 'Locked Chest',
96: 'Trapdoor',
97: 'Monster Egg',
98: 'Stone Bricks',
99: 'Huge Brown Mushroom',
100: 'Huge Red Mushroom',
101: 'Iron Bars',
102: 'Glass Pane',
103: 'Melon',
104: 'Pumpkin Stem',
105: 'Melon Stem',
106: 'Vines',
107: 'Fence Gate',
108: 'Brick Stairs',
109: 'Stone Brick Stairs',
110: 'Mycelium',
111: 'Lily Pad',
112: 'Nether Brick',
113: 'Nether Brick Fence',
114: 'Nether Brick Stairs',
115: 'Nether Wart',
116: 'Enchantment Table',
117: 'Brewing Stand',
118: 'Cauldron',
119: 'End Portal',
120: 'End Portal Block',
121: 'End Stone',
122: 'Dragon Egg',
123: 'Redstone Lamp (off)',
124: 'Redstone Lamp (on)',
125: 'Double Wooden Slab',
126: 'Wooden Slab',
127: 'Cocoa',
128: 'Sandstone Stairs',
129: 'Emerald Ore',
130: 'Ender Chest',
131: 'Tripwire Hook',
132: 'Tripwire',
133: 'Block of Emerald',
134: 'Spruce Wood Stairs',
135: 'Birch Wood Stairs',
136: 'Jungle Wood Stairs',
137: 'Command Block',
138: 'Beacon',
139: 'Cobblestone Wall',
140: 'Flower Pot',
141: 'Carrots',
142: 'Potatoes',
143: 'Wooden Button',
144: 'Mob Head',
145: 'Anvil',
146: 'Trapped Chest',
147: 'Weighted Pressure Plate (Light)',
148: 'Weighted Pressure Plate (Heavy)',
149: 'Redstone Comparator (off)',
150: 'Redstone Comparator (on)',
151: 'Daylight Sensor',
152: 'Block of Redstone',
153: 'Nether Quartz Ore',
154: 'Hopper',
155: 'Block of Quartz',
156: 'Quartz Stairs',
157: 'Activator Rail',
158: 'Dropper',
159: 'Stained Clay',
170: 'Hay Block',
171: 'Carpet',
172: 'Hardened Clay',
173: 'Block of Coal',
174: 'Packed Ice',
175: 'Large Flowers',
213: 'Magma Block',
214: 'Nether Wart Block',
215: 'Red Nether Brick',
216: 'Bone Block',
217: 'Structure Void',
218: 'Observer',
219: 'White Shulker Box',
220: 'Orange Shulker Box',
221: 'Magenta Shulker Box',
222: 'Light Blue Shulker Box',
223: 'Yellow Shulker Box',
224: 'Lime Shulker Box',
225: 'Pink Shulker Box',
226: 'Gray Shulker Box',
227: 'Light Gray Shulker Box',
228: 'Cyan Shulker Box',
229: 'Purple Shulker Box',
230: 'Blue Shulker Box',
231: 'Brown Shulker Box',
232: 'Green Shulker Box',
233: 'Red Shulker Box',
234: 'Black Shulker Box',
255: 'Structure Block',
256: 'Iron Shovel',
257: 'Iron Pickaxe',
258: 'Iron Axe',
259: 'Flint and Steel',
260: 'Apple',
261: 'Bow',
262: 'Arrow',
263: 'Coal',
264: 'Diamond',
265: 'Iron Ingot',
266: 'Gold Ingot',
267: 'Iron Sword',
268: 'Wooden Sword',
269: 'Wooden Shovel',
270: 'Wooden Pickaxe',
271: 'Wooden Axe',
272: 'Stone Sword',
273: 'Stone Shovel',
274: 'Stone Pickaxe',
275: 'Stone Axe',
276: 'Diamond Sword',
277: 'Diamond Shovel',
278: 'Diamond Pickaxe',
279: 'Diamond Axe',
280: 'Stick',
281: 'Bowl',
282: 'Mushroom Stew',
283: 'Gold Sword',
284: 'Gold Shovel',
285: 'Gold Pickaxe',
286: 'Gold Axe',
287: 'String',
288: 'Feather',
289: 'Gunpowder',
290: 'Wooden Hoe',
291: 'Stone Hoe',
292: 'Iron Hoe',
293: 'Diamond Hoe',
294: 'Gold Hoe',
295: 'Seeds',
296: 'Wheat',
297: 'Bread',
298: 'Leather Cap',
299: 'Leather Tunic',
300: 'Leather Pants',
301: 'Leather Boots',
302: 'Chain Helmet',
303: 'Chain Chestplate',
304: 'Chain Leggings',
305: 'Chain Boots',
306: 'Iron Helmet',
307: 'Iron Chestplate',
308: 'Iron Leggings',
309: 'Iron Boots',
310: 'Diamond Helmet',
311: 'Diamond Chestplate',
312: 'Diamond Leggings',
313: 'Diamond Boots',
314: 'Gold Helmet',
315: 'Gold Chestplate',
316: 'Gold Leggings',
317: 'Gold Boots',
318: 'Flint',
319: 'Raw Porkchop',
320: 'Cooked Porkchop',
321: 'Painting',
322: 'Golden Apple',
323: 'Sign',
324: 'Wooden Door',
325: 'Bucket',
326: 'Water Bucket',
327: 'Lava Bucket',
328: 'Minecart',
329: 'Saddle',
330: 'Iron Door',
331: 'Redstone',
332: 'Snowball',
333: 'Boat',
334: 'Leather',
335: 'Milk',
336: 'Brick',
337: 'Clay',
338: 'Sugar Canes',
339: 'Paper',
340: 'Book',
341: 'Slimeball',
342: 'Minecart with Chest',
343: 'Minecart with Furnace',
344: 'Egg',
345: 'Compass',
346: 'Fishing Rod',
347: 'Clock',
348: 'Glowstone Dust',
349: 'Raw Fish',
350: 'Cooked Fish',
351: 'Dye',
352: 'Bone',
353: 'Sugar',
354: 'Cake',
355: 'Bed',
356: 'Redstone Repeater',
357: 'Cookie',
358: 'Map',
359: 'Shears',
360: 'Melon',
361: 'Pumpkin Seeds',
362: 'Melon Seeds',
363: 'Raw Beef',
364: 'Steak',
365: 'Raw Chicken',
366: 'Cooked Chicken',
367: 'Rotten Flesh',
368: 'Ender Pearl',
369: 'Blaze Rod',
370: 'Ghast Tear',
371: 'Gold Nugget',
372: 'Nether Wart',
373: 'Water Bottle / Potion',
374: 'Glass Bottle',
375: 'Spider Eye',
376: 'Fermented Spider Eye',
377: 'Blaze Powder',
378: 'Magma Cream',
379: 'Brewing Stand',
380: 'Cauldron',
381: 'Eye of Ender',
382: 'Glistering Melon',
383: 'Spawn Egg',
384: 'Bottle o\' Enchanting',
385: 'Fire Charge',
386: 'Book and Quill',
387: 'Written Book',
388: 'Emerald',
389: 'Item Frame',
390: 'Flower Pot',
391: 'Carrot',
392: 'Potato',
393: 'Baked Potato',
394: 'Poisonous Potato',
395: 'Empty Map',
396: 'Golden Carrot',
397: 'Mob Head',
398: 'Carrot on a Stick',
399: 'Nether Star',
400: 'Pumpkin Pie',
401: 'Firework Rocket',
402: 'Firework Star',
403: 'Enchanted Book',
404: 'Redstone Comparator',
405: 'Nether Brick',
406: 'Nether Quartz',
407: 'Minecart with TNT',
408: 'Minecart with Hopper',
417: 'Iron Horse Armor',
418: 'Gold Horse Armor',
419: 'Diamond Horse Armor',
420: 'Lead',
421: 'Name Tag',
422: 'Minecart with Command Block',
449: 'Totem of Undying',
450: 'Shulker Shell',
2256: 'C418 - 13 Music Disc',
2257: 'C418 - Cat Music Disc',
2258: 'C418 - blocks Music Disc',
2259: 'C418 - chirp Music Disc',
2260: 'C418 - far Music Disc',
2261: 'C418 - mall Music Disc',
2262: 'C418 - mellohi Music Disc',
2263: 'C418 - stal Music Disc',
2264: 'C418 - strad Music Disc',
2265: 'C418 - ward Music Disc',
2266: 'C418 - 11 Music Disc',
2267: 'C418 - wait Music Disc',
}
def id2item(item_id):
if item_id in items:
return items[item_id]
else:
return item_id