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
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanItemId = void 0;
// change weird item names to be more consistent with vanilla
const ITEMS = {
'log': 'oak_log',
'log:1': 'spruce_log',
'log:2': 'birch_log',
'log:3': 'jungle_log',
'log_2': 'acacia_log',
'log_2:1': 'dark_oak_log',
'ink_sack': 'ink_sac',
'ink_sack:3': 'cocoa_beans',
'ink_sack:4': 'lapis_lazuli',
'cocoa': 'cocoa_beans',
'raw_fish': 'cod',
'raw_fish:1': 'salmon',
'raw_fish:2': 'tropical_fish',
'raw_fish:3': 'pufferfish',
'raw_salmon': 'salmon',
'cooked_fish': 'cooked_cod',
'seeds': 'wheat_seeds',
'sulphur': 'gunpowder',
'raw_chicken': 'chicken',
'pork': 'porkchop',
'potato_item': 'potato',
'carrot_item': 'carrot',
'mushroom_collection': 'red_mushroom',
'nether_stalk': 'nether_wart',
'water_lily': 'lily_pad',
'melon': 'melon_slice',
'ender_stone': 'end_stone',
'huge_mushroom_1': 'red_mushroom_block',
'huge_mushroom_2': 'brown_mushroom_block',
'iron_ingot': 'iron_ingot',
'iron': 'iron_ingot',
'gold': 'gold_ingot',
'endstone': 'end_stone',
'lapis_lazuli_block': 'lapis_block',
'snow_ball': 'snowball',
'raw_beef': 'beef',
'eye_of_ender': 'ender_eye',
'grilled_pork': 'cooked_porkchop',
'glistering_melon': 'glistering_melon_slice',
'cactus_green': 'green_dye',
'enchanted_lapis_lazuli': 'enchanted_lapis_lazuli',
'enchanted_potato': 'enchanted_potato',
'enchanted_birch_log': 'enchanted_birch_log',
'enchanted_gunpowder': 'enchanted_gunpowder',
'enchanted_raw_salmon': 'enchanted_salmon',
'enchanted_raw_chicken': 'enchanted_chicken',
'enchanted_water_lily': 'enchanted_lily_pad',
'enchanted_ink_sack': 'enchanted_ink_sac',
'enchanted_melon': 'enchanted_melon_slice',
'enchanted_glistering_melon': 'enchanted_glistering_melon_slice'
};
/** Clean an item with a weird name (log_2:1) and make it have a better name (dark_oak_log) */
function cleanItemId(itemId) {
var _a;
return (_a = ITEMS[itemId.toLowerCase()]) !== null && _a !== void 0 ? _a : itemId.toLowerCase();
}
exports.cleanItemId = cleanItemId;
|