Posted December 25, 201410 yr Greetings! There seems to be something strange going on with the OreDictionary name for planks: plankWood. If you request all ItemStacks for that name, you get an ArrayList with only one element: Oak Wood Planks. What happened to the rest of the planks? Are they handled differently than other OreDictionary things? Does vanilla take care of them and am I supposed to make an exception for them? This is the code used: ArrayList<ItemStack> list = OreDictionary.getOres("plankWood"); System.out.println("list size: "+list.size()); for(ItemStack stack : list){ System.out.println(stack.getDisplayName()); } Which produces the following output... list size: 1 Oak Wood Planks Some back info: I came upon this issue because the autocrafting system I made wouldn't use birch planks for crafting a chest. Thanks in advance, Pancake.
December 25, 201410 yr Author The ItemStack will have an item damage of OreDictionary.WILDCARD_VALUE which is used in vanilla to mean "any damage value". Thanks for the quick response!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.