- Баллы
- 1
- Имя в Minecraft
- fox120
почему-то с CompressedDiamond тоже крафтится 5 алмазов, а не алмазный шлем
private Material CompressedDiamond;
public void craftCompressedDiamond() {
item = new ItemStack(Material.DIAMOND);
ItemMeta meta = item.getItemMeta();
meta.setDisplayName("Cжатый Алмаз");
List<String> lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "Описание:");
lore.add(ChatColor.AQUA + " Требуется для создания алмазной брони");
meta.setLore(lore);
item.setItemMeta(meta);
CompressedDiamond = item.getType();
NamespacedKey itemkey14 = new NamespacedKey( this, "itemkey14");
ShapedRecipe CompressedDiamond = new ShapedRecipe(itemkey14 ,item );
CompressedDiamond.shape(new String[] {"AA","AA"} );
CompressedDiamond.setIngredient('A', Material.DIAMOND);
Bukkit.getServer().addRecipe(CompressedDiamond);
}
public void craftDhelmet() {
item = new ItemStack(Material.DIAMOND_HELMET);
ItemMeta meta = item.getItemMeta();
List<String> lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "Описание:");
lore.add(ChatColor.AQUA + " Очень тяжёлый шлем");
meta.setLore(lore);
item.setItemMeta(meta);
NamespacedKey itemkey15 = new NamespacedKey( this, "itemkey15");
ShapedRecipe ironhelmen = new ShapedRecipe(itemkey15 ,item );
ironhelmen.shape(new String[] {"AAA","A A"} );
ironhelmen.setIngredient('A', CompressedDiamond);
Bukkit.getServer().addRecipe(ironhelmen);
}
public void craftAirhelmet() {
item = new ItemStack(Material.DIAMOND, 5);
ItemMeta meta = item.getItemMeta();
item.setItemMeta(meta);
//NamespacedKey itemkey19 = new NamespacedKey( this, "itemkey19");
ShapedRecipe Airhelmen = new ShapedRecipe( item );
Airhelmen.shape(new String[] {"AAA","A A"} );
Airhelmen.setIngredient('A', Material.DIAMOND);
Bukkit.getServer().addRecipe(Airhelmen);
}
private Material CompressedDiamond;
public void craftCompressedDiamond() {
item = new ItemStack(Material.DIAMOND);
ItemMeta meta = item.getItemMeta();
meta.setDisplayName("Cжатый Алмаз");
List<String> lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "Описание:");
lore.add(ChatColor.AQUA + " Требуется для создания алмазной брони");
meta.setLore(lore);
item.setItemMeta(meta);
CompressedDiamond = item.getType();
NamespacedKey itemkey14 = new NamespacedKey( this, "itemkey14");
ShapedRecipe CompressedDiamond = new ShapedRecipe(itemkey14 ,item );
CompressedDiamond.shape(new String[] {"AA","AA"} );
CompressedDiamond.setIngredient('A', Material.DIAMOND);
Bukkit.getServer().addRecipe(CompressedDiamond);
}
public void craftDhelmet() {
item = new ItemStack(Material.DIAMOND_HELMET);
ItemMeta meta = item.getItemMeta();
List<String> lore = new ArrayList<String>();
lore.add(ChatColor.GRAY + "Описание:");
lore.add(ChatColor.AQUA + " Очень тяжёлый шлем");
meta.setLore(lore);
item.setItemMeta(meta);
NamespacedKey itemkey15 = new NamespacedKey( this, "itemkey15");
ShapedRecipe ironhelmen = new ShapedRecipe(itemkey15 ,item );
ironhelmen.shape(new String[] {"AAA","A A"} );
ironhelmen.setIngredient('A', CompressedDiamond);
Bukkit.getServer().addRecipe(ironhelmen);
}
public void craftAirhelmet() {
item = new ItemStack(Material.DIAMOND, 5);
ItemMeta meta = item.getItemMeta();
item.setItemMeta(meta);
//NamespacedKey itemkey19 = new NamespacedKey( this, "itemkey19");
ShapedRecipe Airhelmen = new ShapedRecipe( item );
Airhelmen.shape(new String[] {"AAA","A A"} );
Airhelmen.setIngredient('A', Material.DIAMOND);
Bukkit.getServer().addRecipe(Airhelmen);
}