Skip to content

Instantly share code, notes, and snippets.

@Jikoo
Created January 13, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jikoo/701b20cfd4dc40b475a4 to your computer and use it in GitHub Desktop.
Save Jikoo/701b20cfd4dc40b475a4 to your computer and use it in GitHub Desktop.
Load item names from a file stored inside your plugin.
package com.github.jikoo.itemnames;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map.Entry;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import com.google.common.collect.HashMultimap;
/**
* Load and use a list of items from a file stored in your plugin. Original implementation c/o MasterBugPatch
* <a href=https://www.spigotmc.org/threads/tutorial-obtaining-actual-item-names.35088/>on Spigot</a>.
*
* @author Jikoo
*/
public class ItemNames {
private static HashMap<String, String> items;
private static HashMultimap<String, String> itemsReverse;
private static final HashMap<Integer, String> potionEffects = new HashMap<>();
static {
potionEffects.put(0, "Mundane Potion");
potionEffects.put(1, "Potion of Regeneration");
potionEffects.put(2, "Potion of Swiftness");
potionEffects.put(3, "Potion of Fire Resistance");
potionEffects.put(4, "Potion of Poison");
potionEffects.put(5, "Potion of Healing");
potionEffects.put(6, "Potion of Night Vision");
potionEffects.put(7, "Clear Potion");
potionEffects.put(8, "Potion of Weakness");
potionEffects.put(9, "Potion of Strength");
potionEffects.put(10, "Potion of Slowness");
potionEffects.put(11, "Potion of Leaping");
potionEffects.put(12, "Potion of Harming");
potionEffects.put(13, "Potion of Water Breathing");
potionEffects.put(14, "Potion of Invisibility");
potionEffects.put(15, "Thin Potion");
potionEffects.put(16, "Awkward Potion");
potionEffects.put(23, "Bungling Potion");
potionEffects.put(31, "Debonair Potion");
potionEffects.put(32, "Thick Potion");
potionEffects.put(39, "Charming Potion");
potionEffects.put(47, "Sparkling Potion");
potionEffects.put(48, "Potent Potion");
potionEffects.put(55, "Rank Potion");
potionEffects.put(63, "Stinky Potion");
}
private static HashMap<String, String> getItems() {
if (items != null) {
return items;
}
try (BufferedReader reader = new BufferedReader(new InputStreamReader(
Bukkit.getPluginManager().getPlugin("Example").getResource("items.tsv")))) {
items = new HashMap<>();
itemsReverse = HashMultimap.create();
String line;
while ((line = reader.readLine()) != null) {
line = line.trim();
if (line.isEmpty()) {
continue;
}
String[] column = line.split("\t");
String id = column[1] + ":" + column[2];
items.put(id, column[3]);
itemsReverse.put(column[3], id);
}
} catch (IOException e) {
throw new RuntimeException("Could not load items from items.tsv!", e);
}
return items;
}
public static String getMaterialDataName(Material m, short durability) {
if (m == Material.POTION) {
return getPotionName(durability);
} if (m.getMaxDurability() > 0) {
// Degradable item, find the name of an undamaged one.
durability = 0;
}
String key = m.name() + ":" + durability;
if (getItems().containsKey(key)) {
return items.get(key);
}
return "Unknown item. Please report this!";
}
private static String getPotionName(short durability) {
StringBuilder potion = new StringBuilder();
if (((durability >> 6) & 1) == 1) {
potion.append("Extended ");
}
if (((durability >> 14) & 1) == 1) {
potion.append("Splash ");
}
int remainder = durability % 64;
if (potionEffects.containsKey(remainder)) {
potion.append(potionEffects.get(remainder));
} else {
potion.append(potionEffects.get(remainder % 16));
}
if (((durability >> 5) & 1) == 1) {
potion.append(" II");
}
return potion.toString();
}
@SuppressWarnings("deprecation")
public static Pair<Material, Short> matchMaterial(String search) {
String[] matData = search.split(":");
if (matData[0].length() < 2) {
// Too short strings will always result in "air"
throw new IllegalArgumentException("Search string must be 2 characters minimum.");
}
Material material = null;
Short durability = null;
if (matData.length > 1) {
try {
durability = Short.parseShort(matData[1]);
} catch (NumberFormatException e) {}
}
try {
material = Material.getMaterial(Integer.parseInt(matData[0]));
return new ImmutablePair<>(material, durability != null ? durability : 0);
} catch (NumberFormatException e) {}
boolean durabilitySet = durability != null;
if (!durabilitySet) {
durability = 0;
}
int matchLevel = Integer.MAX_VALUE;
matData[0] = matData[0].replace('_', ' ').toLowerCase();
for (Entry<String, String> entry : getItems().entrySet()) {
int current = StringUtils.getLevenshteinDistance(matData[0], entry.getValue().toLowerCase());
if (current < matchLevel) {
matchLevel = current;
String[] entryData = entry.getKey().split(":");
material = Material.getMaterial(entryData[0]);
if (!durabilitySet) {
durability = Short.valueOf(entryData[1]);
}
}
if (current == 0) {
return new ImmutablePair<>(material, durability);
}
}
// Allow more fuzziness for longer named items
if (matchLevel < (3 + material.name().length() / 5)) {
return new ImmutablePair<>(material, durability);
}
return null;
}
}
0 AIR 0 Air air
1 STONE 0 Stone stone
1 STONE 1 Granite stone
1 STONE 2 Polished Granite stone
1 STONE 3 Diorite stone
1 STONE 4 Polished Diorite stone
1 STONE 5 Andesite stone
1 STONE 6 Polished Andesite stone
2 GRASS 0 Grass grass
3 DIRT 0 Dirt dirt
3 DIRT 1 Coarse Dirt dirt
3 DIRT 2 Podzol dirt
4 COBBLESTONE 0 Cobblestone cobblestone
5 WOOD 0 Oak Wood Plank planks
5 WOOD 1 Spruce Wood Plank planks
5 WOOD 2 Birch Wood Plank planks
5 WOOD 3 Jungle Wood Plank planks
5 WOOD 4 Acacia Wood Plank planks
5 WOOD 5 Dark Oak Wood Plank planks
6 SAPLING 0 Oak Sapling sapling
6 SAPLING 1 Spruce Sapling sapling
6 SAPLING 2 Birch Sapling sapling
6 SAPLING 3 Jungle Sapling sapling
6 SAPLING 4 Acacia Sapling sapling
6 SAPLING 5 Dark Oak Sapling sapling
7 BEDROCK 0 Bedrock bedrock
8 WATER 0 Flowing Water flowing_water
9 STATIONARY_WATER 0 Still Water water
10 LAVA 0 Flowing Lava flowing_lava
11 STATIONARY_LAVA 0 Still Lava lava
12 SAND 0 Sand sand
12 SAND 1 Red Sand sand
13 GRAVEL 0 Gravel gravel
14 GOLD_ORE 0 Gold Ore gold_ore
15 IRON_ORE 0 Iron Ore iron_ore
16 COAL_ORE 0 Coal Ore coal_ore
17 LOG 0 Oak Wood log
17 LOG 1 Spruce Wood log
17 LOG 2 Birch Wood log
17 LOG 3 Jungle Wood log
18 LEAVES 0 Oak Leaves leaves
18 LEAVES 1 Spruce Leaves leaves
18 LEAVES 2 Birch Leaves leaves
18 LEAVES 3 Jungle Leaves leaves
19 SPONGE 0 Sponge sponge
19 SPONGE 1 Wet Sponge sponge
20 GLASS 0 Glass glass
21 LAPIS_ORE 0 Lapis Lazuli Ore lapis_ore
22 LAPIS_BLOCK 0 Lapis Lazuli Block lapis_block
23 DISPENSER 0 Dispenser dispenser
24 SANDSTONE 0 Sandstone sandstone
24 SANDSTONE 1 Chiseled Sandstone sandstone
24 SANDSTONE 2 Smooth Sandstone sandstone
25 NOTE_BLOCK 0 Note Block noteblock
26 BED_BLOCK 0 Bed bed
27 POWERED_RAIL 0 Powered Rail golden_rail
28 DETECTOR_RAIL 0 Detector Rail detector_rail
29 PISTON_STICKY_BASE 0 Sticky Piston sticky_piston
30 WEB 0 Cobweb web
31 LONG_GRASS 0 Dead Shrub tallgrass
31 LONG_GRASS 1 Grass tallgrass
31 LONG_GRASS 2 Fern tallgrass
32 DEAD_BUSH 0 Dead Shrub deadbush
33 PISTON_BASE 0 Piston piston
34 PISTON_EXTENSION 0 Piston Head piston_head
35 WOOL 0 White Wool wool
35 WOOL 1 Orange Wool wool
35 WOOL 2 Magenta Wool wool
35 WOOL 3 Light Blue Wool wool
35 WOOL 4 Yellow Wool wool
35 WOOL 5 Lime Wool wool
35 WOOL 6 Pink Wool wool
35 WOOL 7 Gray Wool wool
35 WOOL 8 Light Gray Wool wool
35 WOOL 9 Cyan Wool wool
35 WOOL 10 Purple Wool wool
35 WOOL 11 Blue Wool wool
35 WOOL 12 Brown Wool wool
35 WOOL 13 Green Wool wool
35 WOOL 14 Red Wool wool
35 WOOL 15 Black Wool wool
37 YELLOW_FLOWER 0 Dandelion yellow_flower
38 RED_ROSE 0 Poppy red_flower
38 RED_ROSE 1 Blue Orchid red_flower
38 RED_ROSE 2 Allium red_flower
38 RED_ROSE 3 Azure Bluet red_flower
38 RED_ROSE 4 Red Tulip red_flower
38 RED_ROSE 5 Orange Tulip red_flower
38 RED_ROSE 6 White Tulip red_flower
38 RED_ROSE 7 Pink Tulip red_flower
38 RED_ROSE 8 Oxeye Daisy red_flower
39 BROWN_MUSHROOM 0 Brown Mushroom brown_mushroom
40 RED_MUSHROOM 0 Red Mushroom red_mushroom
41 GOLD_BLOCK 0 Gold Block gold_block
42 IRON_BLOCK 0 Iron Block iron_block
43 DOUBLE_STEP 0 Double Stone Slab double_stone_slab
43 DOUBLE_STEP 1 Double Sandstone Slab double_stone_slab
43 DOUBLE_STEP 2 Double Wooden Slab double_stone_slab
43 DOUBLE_STEP 3 Double Cobblestone Slab double_stone_slab
43 DOUBLE_STEP 4 Double Brick Slab double_stone_slab
43 DOUBLE_STEP 5 Double Stone Brick Slab double_stone_slab
43 DOUBLE_STEP 6 Double Nether Brick Slab double_stone_slab
43 DOUBLE_STEP 7 Double Quartz Slab double_stone_slab
44 STEP 0 Stone Slab stone_slab
44 STEP 1 Sandstone Slab stone_slab
44 STEP 2 Wooden Slab stone_slab
44 STEP 3 Cobblestone Slab stone_slab
44 STEP 4 Brick Slab stone_slab
44 STEP 5 Stone Brick Slab stone_slab
44 STEP 6 Nether Brick Slab stone_slab
44 STEP 7 Quartz Slab stone_slab
45 BRICK 0 Bricks brick_block
46 TNT 0 TNT tnt
47 BOOKSHELF 0 Bookshelf bookshelf
48 MOSSY_COBBLESTONE 0 Moss Stone mossy_cobblestone
49 OBSIDIAN 0 Obsidian obsidian
50 TORCH 0 Torch torch
51 FIRE 0 Fire fire
52 MOB_SPAWNER 0 Monster Spawner mob_spawner
53 WOOD_STAIRS 0 Oak Wood Stairs oak_stairs
54 CHEST 0 Chest chest
55 REDSTONE_WIRE 0 Redstone Wire redstone_wire
56 DIAMOND_ORE 0 Diamond Ore diamond_ore
57 DIAMOND_BLOCK 0 Diamond Block diamond_block
58 WORKBENCH 0 Crafting Table crafting_table
59 CROPS 0 Wheat Crops wheat
60 SOIL 0 Farmland farmland
61 FURNACE 0 Furnace furnace
62 BURNING_FURNACE 0 Burning Furnace lit_furnace
63 SIGN_POST 0 Standing Sign Block standing_sign
64 WOODEN_DOOR 0 Oak Door Block wooden_door
65 LADDER 0 Ladder ladder
66 RAILS 0 Rail rail
67 COBBLESTONE_STAIRS 0 Cobblestone Stairs stone_stairs
68 WALL_SIGN 0 Wall-mounted Sign Block wall_sign
69 LEVER 0 Lever lever
70 STONE_PLATE 0 Stone Pressure Plate stone_pressure_plate
71 IRON_DOOR_BLOCK 0 Iron Door Block iron_door
72 WOOD_PLATE 0 Wooden Pressure Plate wooden_pressure_plate
73 REDSTONE_ORE 0 Redstone Ore redstone_ore
74 GLOWING_REDSTONE_ORE 0 Glowing Redstone Ore lit_redstone_ore
75 REDSTONE_TORCH_OFF 0 Redstone Torch unlit_redstone_torch
76 REDSTONE_TORCH_ON 0 Redstone Torch redstone_torch
77 STONE_BUTTON 0 Stone Button stone_button
78 SNOW 0 Snow snow_layer
79 ICE 0 Ice ice
80 SNOW_BLOCK 0 Snow Block snow
81 CACTUS 0 Cactus cactus
82 CLAY 0 Clay clay
83 SUGAR_CANE_BLOCK 0 Sugar Canes reeds
84 JUKEBOX 0 Jukebox jukebox
85 FENCE 0 Oak Fence fence
86 PUMPKIN 0 Pumpkin pumpkin
87 NETHERRACK 0 Netherrack netherrack
88 SOUL_SAND 0 Soul Sand soul_sand
89 GLOWSTONE 0 Glowstone glowstone
90 PORTAL 0 Nether Portal portal
91 JACK_O_LANTERN 0 Jack o'Lantern lit_pumpkin
92 CAKE_BLOCK 0 Cake Block cake
93 DIODE_BLOCK_OFF 0 Redstone Repeater Block unpowered_repeater
94 DIODE_BLOCK_ON 0 Redstone Repeater Block powered_repeater
95 STAINED_GLASS 0 White Stained Glass stained_glass
95 STAINED_GLASS 1 Orange Stained Glass stained_glass
95 STAINED_GLASS 2 Magenta Stained Glass stained_glass
95 STAINED_GLASS 3 Light Blue Stained Glass stained_glass
95 STAINED_GLASS 4 Yellow Stained Glass stained_glass
95 STAINED_GLASS 5 Lime Stained Glass stained_glass
95 STAINED_GLASS 6 Pink Stained Glass stained_glass
95 STAINED_GLASS 7 Gray Stained Glass stained_glass
95 STAINED_GLASS 8 Light Gray Stained Glass stained_glass
95 STAINED_GLASS 9 Cyan Stained Glass stained_glass
95 STAINED_GLASS 10 Purple Stained Glass stained_glass
95 STAINED_GLASS 11 Blue Stained Glass stained_glass
95 STAINED_GLASS 12 Brown Stained Glass stained_glass
95 STAINED_GLASS 13 Green Stained Glass stained_glass
95 STAINED_GLASS 14 Red Stained Glass stained_glass
95 STAINED_GLASS 15 Black Stained Glass stained_glass
96 TRAP_DOOR 0 Wooden Trapdoor trapdoor
97 MONSTER_EGGS 0 Stone Monster Egg monster_egg
97 MONSTER_EGGS 1 Cobblestone Monster Egg monster_egg
97 MONSTER_EGGS 2 Stone Brick Monster Egg monster_egg
97 MONSTER_EGGS 3 Mossy Stone Brick Monster Egg monster_egg
97 MONSTER_EGGS 4 Cracked Stone Brick Monster Egg monster_egg
97 MONSTER_EGGS 5 Chiseled Stone Brick Monster Egg monster_egg
98 SMOOTH_BRICK 0 Stone Bricks stonebrick
98 SMOOTH_BRICK 1 Mossy Stone Bricks stonebrick
98 SMOOTH_BRICK 2 Cracked Stone Bricks stonebrick
98 SMOOTH_BRICK 3 Chiseled Stone Bricks stonebrick
99 HUGE_MUSHROOM_1 0 Brown Mushroom Cap brown_mushroom_block
100 HUGE_MUSHROOM_2 0 Red Mushroom Cap red_mushroom_block
101 IRON_FENCE 0 Iron Bars iron_bars
102 THIN_GLASS 0 Glass Pane glass_pane
103 MELON_BLOCK 0 Melon Block melon_block
104 PUMPKIN_STEM 0 Pumpkin Stem pumpkin_stem
105 MELON_STEM 0 Melon Stem melon_stem
106 VINE 0 Vines vine
107 FENCE_GATE 0 Oak Fence Gate fence_gate
108 BRICK_STAIRS 0 Brick Stairs brick_stairs
109 SMOOTH_STAIRS 0 Stone Brick Stairs stone_brick_stairs
110 MYCEL 0 Mycelium mycelium
111 WATER_LILY 0 Lily Pad waterlily
112 NETHER_BRICK 0 Nether Brick nether_brick
113 NETHER_FENCE 0 Nether Brick Fence nether_brick_fence
114 NETHER_BRICK_STAIRS 0 Nether Brick Stairs nether_brick_stairs
115 NETHER_WARTS 0 Nether Wart nether_wart
116 ENCHANTMENT_TABLE 0 Enchantment Table enchanting_table
117 BREWING_STAND 0 Brewing Stand brewing_stand
118 CAULDRON 0 Cauldron cauldron
119 ENDER_PORTAL 0 End Portal end_portal
120 ENDER_PORTAL_FRAME 0 End Portal Frame end_portal_frame
121 ENDER_STONE 0 End Stone end_stone
122 DRAGON_EGG 0 Dragon Egg dragon_egg
123 REDSTONE_LAMP_OFF 0 Redstone Lamp redstone_lamp
124 REDSTONE_LAMP_ON 0 Redstone Lamp lit_redstone_lamp
125 WOOD_DOUBLE_STEP 0 Double Oak Wood Slab double_wooden_slab
125 WOOD_DOUBLE_STEP 1 Double Spruce Wood Slab double_wooden_slab
125 WOOD_DOUBLE_STEP 2 Double Birch Wood Slab double_wooden_slab
125 WOOD_DOUBLE_STEP 3 Double Jungle Wood Slab double_wooden_slab
125 WOOD_DOUBLE_STEP 4 Double Acacia Wood Slab double_wooden_slab
125 WOOD_DOUBLE_STEP 5 Double Dark Oak Wood Slab double_wooden_slab
126 WOOD_STEP 0 Oak Wood Slab wooden_slab
126 WOOD_STEP 1 Spruce Wood Slab wooden_slab
126 WOOD_STEP 2 Birch Wood Slab wooden_slab
126 WOOD_STEP 3 Jungle Wood Slab wooden_slab
126 WOOD_STEP 4 Acacia Wood Slab wooden_slab
126 WOOD_STEP 5 Dark Oak Wood Slab wooden_slab
127 COCOA 0 Cocoa cocoa
128 SANDSTONE_STAIRS 0 Sandstone Stairs sandstone_stairs
129 EMERALD_ORE 0 Emerald Ore emerald_ore
130 ENDER_CHEST 0 Ender Chest ender_chest
131 TRIPWIRE_HOOK 0 Tripwire Hook tripwire_hook
132 TRIPWIRE 0 Tripwire tripwire_hook
133 EMERALD_BLOCK 0 Emerald Block emerald_block
134 SPRUCE_WOOD_STAIRS 0 Spruce Wood Stairs spruce_stairs
135 BIRCH_WOOD_STAIRS 0 Birch Wood Stairs birch_stairs
136 JUNGLE_WOOD_STAIRS 0 Jungle Wood Stairs jungle_stairs
137 COMMAND 0 Command Block command_block
138 BEACON 0 Beacon beacon
139 COBBLE_WALL 0 Cobblestone Wall cobblestone_wall
139 COBBLE_WALL 1 Mossy Cobblestone Wall cobblestone_wall
140 FLOWER_POT 0 Flower Pot flower_pot
141 CARROT 0 Carrots carrots
142 POTATO 0 Potatoes potatoes
143 WOOD_BUTTON 0 Wooden Button wooden_button
144 SKULL 0 Mob Head skull
145 ANVIL 0 Anvil anvil
146 TRAPPED_CHEST 0 Trapped Chest trapped_chest
147 GOLD_PLATE 0 Light Weighted Pressure Plate light_weighted_pressure_plate
148 IRON_PLATE 0 Heavy Weighted Pressure Plate heavy_weighted_pressure_plate
149 REDSTONE_COMPARATOR_OFF 0 Redstone Comparator unpowered_comparator
150 REDSTONE_COMPARATOR_ON 0 Redstone Comparator powered_comparator
151 DAYLIGHT_DETECTOR 0 Daylight Sensor daylight_detector
152 REDSTONE_BLOCK 0 Redstone Block redstone_block
153 QUARTZ_ORE 0 Nether Quartz Ore quartz_ore
154 HOPPER 0 Hopper hopper
155 QUARTZ_BLOCK 0 Quartz Block quartz_block
155 QUARTZ_BLOCK 1 Chiseled Quartz Block quartz_block
155 QUARTZ_BLOCK 2 Pillar Quartz Block quartz_block
156 QUARTZ_STAIRS 0 Quartz Stairs quartz_stairs
157 ACTIVATOR_RAIL 0 Activator Rail activator_rail
158 DROPPER 0 Dropper dropper
159 STAINED_CLAY 0 White Stained Clay stained_hardened_clay
159 STAINED_CLAY 1 Orange Stained Clay stained_hardened_clay
159 STAINED_CLAY 2 Magenta Stained Clay stained_hardened_clay
159 STAINED_CLAY 3 Light Blue Stained Clay stained_hardened_clay
159 STAINED_CLAY 4 Yellow Stained Clay stained_hardened_clay
159 STAINED_CLAY 5 Lime Stained Clay stained_hardened_clay
159 STAINED_CLAY 6 Pink Stained Clay stained_hardened_clay
159 STAINED_CLAY 7 Gray Stained Clay stained_hardened_clay
159 STAINED_CLAY 8 Light Gray Stained Clay stained_hardened_clay
159 STAINED_CLAY 9 Cyan Stained Clay stained_hardened_clay
159 STAINED_CLAY 10 Purple Stained Clay stained_hardened_clay
159 STAINED_CLAY 11 Blue Stained Clay stained_hardened_clay
159 STAINED_CLAY 12 Brown Stained Clay stained_hardened_clay
159 STAINED_CLAY 13 Green Stained Clay stained_hardened_clay
159 STAINED_CLAY 14 Red Stained Clay stained_hardened_clay
159 STAINED_CLAY 15 Black Stained Clay stained_hardened_clay
160 STAINED_GLASS_PANE 0 White Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 1 Orange Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 2 Magenta Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 3 Light Blue Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 4 Yellow Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 5 Lime Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 6 Pink Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 7 Gray Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 8 Light Gray Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 9 Cyan Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 10 Purple Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 11 Blue Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 12 Brown Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 13 Green Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 14 Red Stained Glass Pane stained_glass_pane
160 STAINED_GLASS_PANE 15 Black Stained Glass Pane stained_glass_pane
161 LEAVES_2 0 Acacia Leaves leaves2
161 LEAVES_2 1 Dark Oak Leaves leaves2
162 LOG_2 0 Acacia Wood logs2
162 LOG_2 1 Dark Oak Wood logs2
163 ACACIA_STAIRS 0 Acacia Wood Stairs acacia_stairs
164 DARK_OAK_STAIRS 0 Dark Oak Wood Stairs dark_oak_stairs
165 SLIME_BLOCK 0 Slime Block slime
166 BARRIER 0 Barrier barrier
167 IRON_TRAPDOOR 0 Iron Trapdoor iron_trapdoor
168 PRISMARINE 0 Prismarine prismarine
168 PRISMARINE 1 Prismarine Bricks prismarine
168 PRISMARINE 2 Dark Prismarine prismarine
169 SEA_LANTERN 0 Sea Lantern sea_lantern
170 HAY_BLOCK 0 Hay Bale hay_block
171 CARPET 0 White Carpet carpet
171 CARPET 1 Orange Carpet carpet
171 CARPET 2 Magenta Carpet carpet
171 CARPET 3 Light Blue Carpet carpet
171 CARPET 4 Yellow Carpet carpet
171 CARPET 5 Lime Carpet carpet
171 CARPET 6 Pink Carpet carpet
171 CARPET 7 Gray Carpet carpet
171 CARPET 8 Light Gray Carpet carpet
171 CARPET 9 Cyan Carpet carpet
171 CARPET 10 Purple Carpet carpet
171 CARPET 11 Blue Carpet carpet
171 CARPET 12 Brown Carpet carpet
171 CARPET 13 Green Carpet carpet
171 CARPET 14 Red Carpet carpet
171 CARPET 15 Black Carpet carpet
172 HARD_CLAY 0 Hardened Clay hardened_clay
173 COAL_BLOCK 0 Block of Coal coal_block
174 PACKED_ICE 0 Packed Ice packed_ice
175 DOUBLE_PLANT 0 Sunflower double_plant
175 DOUBLE_PLANT 1 Lilac double_plant
175 DOUBLE_PLANT 2 Double Tallgrass double_plant
175 DOUBLE_PLANT 3 Large Fern double_plant
175 DOUBLE_PLANT 4 Rose Bush double_plant
175 DOUBLE_PLANT 5 Peony double_plant
176 STANDING_BANNER 0 Free-standing Banner standing_banner
177 WALL_BANNER 0 Wall-mounted Banner wall_banner
178 DAYLIGHT_DETECTOR_INVERTED 0 Inverted Daylight Sensor daylight_detector_inverted
179 RED_SANDSTONE 0 Red Sandstone red_sandstone
179 RED_SANDSTONE 1 Smooth Red Sandstone red_sandstone
179 RED_SANDSTONE 2 Chiseled Red Sandstone red_sandstone
180 RED_SANDSTONE_STAIRS 0 Red Sandstone Stairs red_sandstone_stairs
181 DOUBLE_STONE_SLAB2 0 Double Red Sandstone Slab stone_slab2
182 STONE_SLAB2 0 Red Sandstone Slab double_stone_slab2
183 SPRUCE_FENCE_GATE 0 Spruce Fence Gate spruce_fence_gate
184 BIRCH_FENCE_GATE 0 Birch Fence Gate birch_fence_gate
185 JUNGLE_FENCE_GATE 0 Jungle Fence Gate jungle_fence_gate
186 DARK_OAK_FENCE_GATE 0 Dark Oak Fence Gate dark_oak_fence_gate
187 ACACIA_FENCE_GATE 0 Acacia Fence Gate acacia_fence_gate
188 SPRUCE_FENCE 0 Spruce Fence spruce_fence
189 BIRCH_FENCE 0 Birch Fence birch_fence
190 JUNGLE_FENCE 0 Jungle Fence jungle_fence
191 DARK_OAK_FENCE 0 Dark Oak Fence dark_oak_fence
192 ACACIA_FENCE 0 Acacia Fence acacia_fence
193 SPRUCE_DOOR 0 Spruce Door Block spruce_door
194 BIRCH_DOOR 0 Birch Door Block birch_door
195 JUNGLE_DOOR 0 Jungle Door Block jungle_door
196 ACACIA_DOOR 0 Acacia Door Block acacia_door
197 DARK_OAK_DOOR 0 Dark Oak Door Block dark_oak_door
256 IRON_SPADE 0 Iron Shovel iron_shovel
257 IRON_PICKAXE 0 Iron Pickaxe iron_pickaxe
258 IRON_AXE 0 Iron Axe iron_axe
259 FLINT_AND_STEEL 0 Flint and Steel flint_and_steel
260 APPLE 0 Apple apple
261 BOW 0 Bow bow
262 ARROW 0 Arrow arrow
263 COAL 0 Coal coal
263 COAL 1 Charcoal coal
264 DIAMOND 0 Diamond diamond
265 IRON_INGOT 0 Iron Ingot iron_ingot
266 GOLD_INGOT 0 Gold Ingot gold_ingot
267 IRON_SWORD 0 Iron Sword iron_sword
268 WOOD_SWORD 0 Wooden Sword wooden_sword
269 WOOD_SPADE 0 Wooden Shovel wooden_shovel
270 WOOD_PICKAXE 0 Wooden Pickaxe wooden_pickaxe
271 WOOD_AXE 0 Wooden Axe wooden_axe
272 STONE_SWORD 0 Stone Sword stone_sword
273 STONE_SPADE 0 Stone Shovel stone_shovel
274 STONE_PICKAXE 0 Stone Pickaxe stone_pickaxe
275 STONE_AXE 0 Stone Axe stone_axe
276 DIAMOND_SWORD 0 Diamond Sword diamond_sword
277 DIAMOND_SPADE 0 Diamond Shovel diamond_shovel
278 DIAMOND_PICKAXE 0 Diamond Pickaxe diamond_pickaxe
279 DIAMOND_AXE 0 Diamond Axe diamond_axe
280 STICK 0 Stick stick
281 BOWL 0 Bowl bowl
282 MUSHROOM_SOUP 0 Mushroom Stew mushroom_stew
283 GOLD_SWORD 0 Golden Sword golden_sword
284 GOLD_SPADE 0 Golden Shovel golden_shovel
285 GOLD_PICKAXE 0 Golden Pickaxe golden_pickaxe
286 GOLD_AXE 0 Golden Axe golden_axe
287 STRING 0 String string
288 FEATHER 0 Feather feather
289 SULPHUR 0 Gunpowder gunpowder
290 WOOD_HOE 0 Wooden Hoe wooden_hoe
291 STONE_HOE 0 Stone Hoe stone_hoe
292 IRON_HOE 0 Iron Hoe iron_hoe
293 DIAMOND_HOE 0 Diamond Hoe diamond_hoe
294 GOLD_HOE 0 Golden Hoe golden_hoe
295 SEEDS 0 Wheat Seeds wheat_seeds
296 WHEAT 0 Wheat wheat
297 BREAD 0 Bread bread
298 LEATHER_HELMET 0 Leather Helmet leather_helmet
299 LEATHER_CHESTPLATE 0 Leather Tunic leather_chestplate
300 LEATHER_LEGGINGS 0 Leather Pants leather_leggings
301 LEATHER_BOOTS 0 Leather Boots leather_boots
302 CHAINMAIL_HELMET 0 Chainmail Helmet chainmail_helmet
303 CHAINMAIL_CHESTPLATE 0 Chainmail Chestplate chainmail_chestplate
304 CHAINMAIL_LEGGINGS 0 Chainmail Leggings chainmail_leggings
305 CHAINMAIL_BOOTS 0 Chainmail Boots chainmail_boots
306 IRON_HELMET 0 Iron Helmet iron_helmet
307 IRON_CHESTPLATE 0 Iron Chestplate iron_chestplate
308 IRON_LEGGINGS 0 Iron Leggings iron_leggings
309 IRON_BOOTS 0 Iron Boots iron_boots
310 DIAMOND_HELMET 0 Diamond Helmet diamond_helmet
311 DIAMOND_CHESTPLATE 0 Diamond Chestplate diamond_chestplate
312 DIAMOND_LEGGINGS 0 Diamond Leggings diamond_leggings
313 DIAMOND_BOOTS 0 Diamond Boots diamond_boots
314 GOLD_HELMET 0 Golden Helmet golden_helmet
315 GOLD_CHESTPLATE 0 Golden Chestplate golden_chestplate
316 GOLD_LEGGINGS 0 Golden Leggings golden_leggings
317 GOLD_BOOTS 0 Golden Boots golden_boots
318 FLINT 0 Flint flint_and_steel
319 PORK 0 Raw Porkchop porkchop
320 GRILLED_PORK 0 Cooked Porkchop cooked_porkchop
321 PAINTING 0 Painting painting
322 GOLDEN_APPLE 0 Golden Apple golden_apple
322 GOLDEN_APPLE 1 Enchanted Golden Apple golden_apple
323 SIGN 0 Sign sign
324 WOOD_DOOR 0 Oak Door wooden_door
325 BUCKET 0 Bucket bucket
326 WATER_BUCKET 0 Water Bucket water_bucket
327 LAVA_BUCKET 0 Lava Bucket lava_bucket
328 MINECART 0 Minecart minecart
329 SADDLE 0 Saddle saddle
330 IRON_DOOR 0 Iron Door iron_door
331 REDSTONE 0 Redstone redstone
332 SNOW_BALL 0 Snowball snowball
333 BOAT 0 Boat boat
334 LEATHER 0 Leather leather
335 MILK_BUCKET 0 Milk Bucket milk_bucket
336 CLAY_BRICK 0 Brick brick
337 CLAY_BALL 0 Clay clay_ball
338 SUGAR_CANE 0 Sugar Canes reeds
339 PAPER 0 Paper paper
340 BOOK 0 Book book
341 SLIME_BALL 0 Slimeball slime_ball
342 STORAGE_MINECART 0 Minecart with Chest chest_minecart
343 POWERED_MINECART 0 Minecart with Furnace furnace_minecart
344 EGG 0 Egg egg
345 COMPASS 0 Compass compass
346 FISHING_ROD 0 Fishing Rod fishing_rod
347 WATCH 0 Clock clock
348 GLOWSTONE_DUST 0 Glowstone Dust glowstone_dust
349 RAW_FISH 0 Raw Fish fish
349 RAW_FISH 1 Raw Salmon fish
349 RAW_FISH 2 Clownfish fish
349 RAW_FISH 3 Pufferfish fish
350 COOKED_FISH 0 Cooked Fish cooked_fish
350 COOKED_FISH 1 Cooked Salmon cooked_fish
351 INK_SACK 0 Ink Sack dye
351 INK_SACK 1 Rose Red dye
351 INK_SACK 2 Cactus Green dye
351 INK_SACK 3 Coco Beans dye
351 INK_SACK 4 Lapis Lazuli dye
351 INK_SACK 5 Purple Dye dye
351 INK_SACK 6 Cyan Dye dye
351 INK_SACK 7 Light Gray Dye dye
351 INK_SACK 8 Gray Dye dye
351 INK_SACK 9 Pink Dye dye
351 INK_SACK 10 Lime Dye dye
351 INK_SACK 11 Dandelion Yellow dye
351 INK_SACK 12 Light Blue Dye dye
351 INK_SACK 13 Magenta Dye dye
351 INK_SACK 14 Orange Dye dye
351 INK_SACK 15 Bone Meal dye
352 BONE 0 Bone bone
353 SUGAR 0 Sugar sugar
354 CAKE 0 Cake cake
355 BED 0 Bed bed
356 DIODE 0 Redstone Repeater repeater
357 COOKIE 0 Cookie cookie
358 MAP 0 Map filled_map
359 SHEARS 0 Shears shears
360 MELON 0 Melon melon
361 PUMPKIN_SEEDS 0 Pumpkin Seeds pumpkin_seeds
362 MELON_SEEDS 0 Melon Seeds melon_seeds
363 RAW_BEEF 0 Raw Beef beef
364 COOKED_BEEF 0 Steak cooked_beef
365 RAW_CHICKEN 0 Raw Chicken chicken
366 COOKED_CHICKEN 0 Cooked Chicken cooked_chicken
367 ROTTEN_FLESH 0 Rotten Flesh rotten_flesh
368 ENDER_PEARL 0 Ender Pearl ender_pearl
369 BLAZE_ROD 0 Blaze Rod blaze_rod
370 GHAST_TEAR 0 Ghast Tear ghast_tear
371 GOLD_NUGGET 0 Gold Nugget gold_nugget
372 NETHER_STALK 0 Nether Wart nether_wart
373 POTION 0 Water Bottle potion
374 GLASS_BOTTLE 0 Glass Bottle glass_bottle
375 SPIDER_EYE 0 Spider Eye spider_eye
376 FERMENTED_SPIDER_EYE 0 Fermented Spider Eye fermented_spider_eye
377 BLAZE_POWDER 0 Blaze Powder blaze_powder
378 MAGMA_CREAM 0 Magma Cream magma_cream
379 BREWING_STAND_ITEM 0 Brewing Stand brewing_stand
380 CAULDRON_ITEM 0 Cauldron cauldron
381 EYE_OF_ENDER 0 Eye of Ender ender_eye
382 SPECKLED_MELON 0 Glistering Melon speckled_melon
383 MONSTER_EGG 50 Spawn Creeper spawn_egg
383 MONSTER_EGG 51 Spawn Skeleton spawn_egg
383 MONSTER_EGG 52 Spawn Spider spawn_egg
383 MONSTER_EGG 54 Spawn Zombie spawn_egg
383 MONSTER_EGG 55 Spawn Slime spawn_egg
383 MONSTER_EGG 56 Spawn Ghast spawn_egg
383 MONSTER_EGG 57 Spawn Pigman spawn_egg
383 MONSTER_EGG 58 Spawn Enderman spawn_egg
383 MONSTER_EGG 59 Spawn Cave Spider spawn_egg
383 MONSTER_EGG 60 Spawn Silverfish spawn_egg
383 MONSTER_EGG 61 Spawn Blaze spawn_egg
383 MONSTER_EGG 62 Spawn Magma Cube spawn_egg
383 MONSTER_EGG 65 Spawn Bat spawn_egg
383 MONSTER_EGG 66 Spawn Witch spawn_egg
383 MONSTER_EGG 67 Spawn Endermite spawn_egg
383 MONSTER_EGG 68 Spawn Guardian spawn_egg
383 MONSTER_EGG 90 Spawn Pig spawn_egg
383 MONSTER_EGG 91 Spawn Sheep spawn_egg
383 MONSTER_EGG 92 Spawn Cow spawn_egg
383 MONSTER_EGG 93 Spawn Chicken spawn_egg
383 MONSTER_EGG 94 Spawn Squid spawn_egg
383 MONSTER_EGG 95 Spawn Wolf spawn_egg
383 MONSTER_EGG 96 Spawn Mooshroom spawn_egg
383 MONSTER_EGG 98 Spawn Ocelot spawn_egg
383 MONSTER_EGG 100 Spawn Horse spawn_egg
383 MONSTER_EGG 101 Spawn Rabbit spawn_egg
383 MONSTER_EGG 120 Spawn Villager spawn_egg
384 EXP_BOTTLE 0 Bottle o' Enchanting experience_bottle
385 FIREBALL 0 Fire Charge fire_charge
386 BOOK_AND_QUILL 0 Book and Quill writable_book
387 WRITTEN_BOOK 0 Written Book written_book
388 EMERALD 0 Emerald emerald
389 ITEM_FRAME 0 Item Frame item_frame
390 FLOWER_POT_ITEM 0 Flower Pot flower_pot
391 CARROT_ITEM 0 Carrot carrot
392 POTATO_ITEM 0 Potato potato
393 BAKED_POTATO 0 Baked Potato baked_potato
394 POISONOUS_POTATO 0 Poisonous Potato poisonous_potato
395 EMPTY_MAP 0 Empty Map map
396 GOLDEN_CARROT 0 Golden Carrot golden_carrot
397 SKULL_ITEM 0 Skeleton Skull skull
397 SKULL_ITEM 1 Wither Skeleton Skull skull
397 SKULL_ITEM 2 Zombie Head skull
397 SKULL_ITEM 3 Player Head skull
397 SKULL_ITEM 4 Creeper Head skull
398 CARROT_STICK 0 Carrot on a Stick carrot_on_a_stick
399 NETHER_STAR 0 Nether Star nether_star
400 PUMPKIN_PIE 0 Pumpkin Pie pumpkin_pie
401 FIREWORK 0 Firework Rocket fireworks
402 FIREWORK_CHARGE 0 Firework Star firework_charge
403 ENCHANTED_BOOK 0 Enchanted Book enchanted_book
404 REDSTONE_COMPARATOR 0 Redstone Comparator comparator
405 NETHER_BRICK_ITEM 0 Nether Brick netherbrick
406 QUARTZ 0 Nether Quartz quartz
407 EXPLOSIVE_MINECART 0 Minecart with TNT tnt_minecart
408 HOPPER_MINECART 0 Minecart with Hopper hopper_minecart
409 PRISMARINE_SHARD 0 Prismarine Shard prismarine_shard
410 PRISMARINE_CRYSTALS 0 Prismarine Crystals prismarine_crystals
411 RABBIT 0 Raw Rabbit rabbit
412 COOKED_RABBIT 0 Cooked Rabbit cooked_rabbit
413 RABBIT_STEW 0 Rabbit Stew rabbit_stew
414 RABBIT_FOOT 0 Rabbit's Foot rabbit_foot
415 RABBIT_HIDE 0 Rabbit Hide rabbit_hide
416 ARMOR_STAND 0 Armor Stand armor_stand
417 IRON_BARDING 0 Iron Horse Armor iron_horse_armor
418 GOLD_BARDING 0 Golden Horse Armor golden_horse_armor
419 DIAMOND_BARDING 0 Diamond Horse Armor diamond_horse_armor
420 LEASH 0 Lead lead
421 NAME_TAG 0 Name Tag name_tag
422 COMMAND_MINECART 0 Minecart with Command Block command_block_minecart
423 MUTTON 0 Raw Mutton mutton
424 COOKED_MUTTON 0 Cooked Mutton cooked_mutton
425 BANNER 0 Banner banner
427 SPRUCE_DOOR_ITEM 0 Spruce Door spruce_door
428 BIRCH_DOOR_ITEM 0 Birch Door birch_door
429 JUNGLE_DOOR_ITEM 0 Jungle Door jungle_door
430 ACACIA_DOOR_ITEM 0 Acacia Door acacia_door
431 DARK_OAK_DOOR_ITEM 0 Dark Oak Door dark_oak_door
2256 GOLD_RECORD 0 13 Disc record_13
2257 GREEN_RECORD 0 Cat Disc record_cat
2258 RECORD_3 0 Blocks Disc record_blocks
2259 RECORD_4 0 Chirp Disc record_chirp
2260 RECORD_5 0 Far Disc record_far
2261 RECORD_6 0 Mall Disc record_mall
2262 RECORD_7 0 Mellohi Disc record_mellohi
2263 RECORD_8 0 Stal Disc record_stal
2264 RECORD_9 0 Strad Disc record_strad
2265 RECORD_10 0 Ward Disc record_ward
2266 RECORD_11 0 11 Disc record_11
2267 RECORD_12 0 Wait Disc record_wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment