- Баллы
- 76
- Имя в Minecraft
- zemf4you
Кастомные рецепты.
Где может быть ошибка?
Где может быть ошибка?
Java:
ShapedRecipe sh = new ShapedRecipe(chest);
sh.shape(new String[]{"S0S", "SSS", "SSS"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh);
ShapedRecipe sh2 = new ShapedRecipe(legg);
sh2.shape(new String[]{"SSS", "S0S", "S0S"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh2);
ShapedRecipe sh3 = new ShapedRecipe(hel);
sh3.shape(new String[]{"SSS", "S0S", "000"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh3);
ShapedRecipe sh4 = new ShapedRecipe(hel);
sh4.shape(new String[]{"000", "SSS", "S0S"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh4);
ShapedRecipe sh5 = new ShapedRecipe(boot);
sh5.shape(new String[]{"S0S", "S0S", "000"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh5);
ShapedRecipe sh6 = new ShapedRecipe(boot);
sh6.shape(new String[]{"000", "S0S", "S0S"}).setIngredient('S', Material.DIRT);
Bukkit.addRecipe(sh6);
ShapedRecipe sh7 = new ShapedRecipe(axe);
sh6.shape(new String[]{"0SS", "0BS", "0B0"}).setIngredient('S', Material.DIRT).setIngredient('B', Material.STICK);
Bukkit.addRecipe(sh7);
ShapedRecipe sh8 = new ShapedRecipe(axe);
sh6.shape(new String[]{"SS0", "SB0", "0B0"}).setIngredient('S', Material.DIRT).setIngredient('B', Material.STICK);
Bukkit.addRecipe(sh8);
ShapedRecipe sh9 = new ShapedRecipe(sword);
sh6.shape(new String[]{"0S0", "0S0", "0B0"}).setIngredient('S', Material.DIRT).setIngredient('B', Material.STICK);
Bukkit.addRecipe(sh9);
ShapedRecipe sh10 = new ShapedRecipe(sword);
sh6.shape(new String[]{"S00", "S00", "B00"}).setIngredient('S', Material.DIRT).setIngredient('B', Material.STICK);
Bukkit.addRecipe(sh10);
ShapedRecipe sh11 = new ShapedRecipe(sword);
sh6.shape(new String[]{"00S", "00S", "00B"}).setIngredient('S', Material.DIRT).setIngredient('B', Material.STICK);
Bukkit.addRecipe(sh11);
super.onEnable();