So I've started a new plugin and I want to be able to use an unlisted block with the id 44:6 but I'm not sure how to implement it with Materials because it requires and integer.
Or == 44.6) What is the code you have so far? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Code: PluginDescriptionFile pdfFile = this.getDescription(); this.logger.info(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled."); ShapedRecipe recipe1 = new ShapedRecipe(new ItemStack(Material("This is where the 44:6 needs to be") , 1)); recipe1.shape(new String[] { "AAA", "ABA", "AAA" }); recipe1.setIngredient('A', Material.SMOOTH_BRICK); recipe1.setIngredient('B', Material.SMOOTH_BRICK); getServer().addRecipe(recipe1); I haven't tested it yet.
Here's the ItemStack you'll want to use for giving 44:6 Code: new ItemStack(Material.getMaterial(44), 1, (short) 0, (byte) 6)
In that example, you're using the ItemStack costructor: ItemStack(Material type, Int amount, short damage, byte data) Basically: Type: 44 Amount: 1 Damage: 0 (null) data: 6 (The type) Put it all together, and you have 44:6