Вылет из-за добавления в крафт брони кастомный материал созданый саморучно

Версия Minecraft
1.7.10
31
0
Здравствуйте,ночью вы мне помогали добавить крафт меча с моим кастомным материалом,в итоге всё работает, но при добавлении крафта брони с этим же материалом он снова начал крашится
Вот код:
Java:
package ru.retsik;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item.ToolMaterial;

@Mod(
modid = "RSBlockTools",
name="RSBlocksTools",
version="v1.0"
)
public class Main {

public static final ToolMaterial PICKMAT = net.minecraftforge.common.util.EnumHelper.addToolMaterial("PICKMAT", 3, 2548, 15.0F, 12.0F, 44);

public static Block RetSik;
public static Item HAHelmet;
public static Item HAPlate;
public static Item HAPants;
public static Item HABoots;
public static Block RetDark;
public static Item PickRaxe;
public static Item SwordRage;
public static Item SteelRS;



@EventHandler
public void preInit(FMLPreInitializationEvent event) {

// *** Кирпичи *** //
RetSik = new RetSik (Material.rock);
GameRegistry.registerBlock(RetSik, "RetSik");

RetDark = new RetDark (Material.rock);
GameRegistry.registerBlock(RetDark, "RetDark");


// *** Steel *** //
SteelRS = new SteelRS().setUnlocalizedName("SteelRS");
GameRegistry.registerItem(SteelRS, "SteelRS");

// *** Sword *** //
SwordRage = new SwordRage().setUnlocalizedName("SwordRage");
GameRegistry.registerItem(SwordRage, "swordrage");


// *** Кирка *** //
PickRaxe = new PickRaxe().setUnlocalizedName("pickraxe");
GameRegistry.registerItem(PickRaxe, "pickraxe");



// *** Броня *** //
HAHelmet = new RSArmor(0, 0).setUnlocalizedName("HAHelmet").setTextureName("minecraft:HAHelmet");
GameRegistry.registerItem(HAHelmet, "HAHelmet");

HAPlate = new RSArmor(0, 1).setUnlocalizedName("HAPlate").setTextureName("minecraft:HAPlate");
GameRegistry.registerItem(HAPlate, "HAPlate");

HAPants = new RSArmor(0, 2).setUnlocalizedName("HAPants").setTextureName("minecraft:HAPants");
GameRegistry.registerItem(HAPants, "HAPants");

HABoots = new RSArmor(0, 3).setUnlocalizedName("HABoots").setTextureName("minecraft:HABoots");
GameRegistry.registerItem(HABoots, "HABoots");

}

@EventHandler
public void init(FMLInitializationEvent event) {
// *** Рецепт Кирпича *** //
GameRegistry.addRecipe(new ItemStack(Main.RetDark,1),
new Object[] { "#X#", "X#X", "#Y#",
('#'), Blocks.brick_block, ('X'), Blocks.gravel, ('Y'), Items.clay_ball});

// *** Крафт Меча *** //
GameRegistry.addRecipe(new ItemStack(Main.SwordRage,1),
new Object[] { " #Y", "X#Y", "XX ",
('#'), Items.iron_ingot, ('X'), Items.stick, ('Y'), Main.SteelRS });

// *** Снова рецепт кирпича *** //
GameRegistry.addRecipe(new ItemStack(Main.RetSik,1),
new Object[] { "#X#", "X#X", "#Y#",
('#'), Blocks.brick_block, ('X'), Blocks.wool, ('Y'), Items.gunpowder});


// *** Рецепт Кирки *** //
GameRegistry.addRecipe(new ItemStack(Main.PickRaxe,1),
new Object[] { "#XY", " T ", "LTL",
('#'), Items.redstone, ('X'), Items.emerald, ('Y'), Items.diamond, ('T'), Items.stick, ('L'), Items.gold_ingot});


// *** Рецепт Брони *** //
GameRegistry.addRecipe(new ItemStack(Main.HAHelmet,1),
new Object[] { "XYX", "X X", "   ",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});

//
GameRegistry.addRecipe(new ItemStack(Main.HAPlate,1),
new Object[] { "X X", "XYX", "XXX",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});

//
GameRegistry.addRecipe(new ItemStack(Main.HAPants,1),
new Object[] { "XYX", "X X", "X X",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});

//
GameRegistry.addRecipe(new ItemStack(Main.HABoots,1),
new Object[] { "   ", "Y Y", "X X",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});

//
GameRegistry.addSmelting(RetDark, new ItemStack(Blocks.brick_block, 5), 1.0F);
GameRegistry.addSmelting(RetSik, new ItemStack(Blocks.brick_block, 5), 1.0F);
GameRegistry.addSmelting(RetDark, new ItemStack(Blocks.brick_block, 5), 1.0F);
GameRegistry.addSmelting(Items.iron_ingot, new ItemStack(Main.SteelRS, 1), 1.0F);
}

}

Вот краш лог:

Java:
---- Minecraft Crash Report ----
// Sorry :(

Time: 31.10.18 16:14
Description: Initializing game

java.lang.ArrayIndexOutOfBoundsException: 8
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:206)
    at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
    at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
    at ru.retsik.Main.init(Main.java:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:552)
    at net.minecraft.client.Minecraft.run(Minecraft.java:878)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:206)
    at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:250)
    at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:245)
    at ru.retsik.Main.init(Main.java:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:552)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.run(Minecraft.java:878)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)

-- System Details --
Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.7.0_71, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 708400936 bytes (675 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHI    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHI    FML{7.10.99.99} [Forge Mod Loader] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHI    Forge{10.13.4.1558} [Minecraft Forge] (forgeBin-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHI    DarkDays Client{0.1} [DarkDays Client] (bin)
    UCHE    RSBlockTools{v1.0} [RSBlocksTools] (bin)
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 411.70' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2'
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: GeForce GTX 1050 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 411.70, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
 
Краш-лог
crash-2018-10-31_16.14.45-client.txt
Краш-лог:
crash-2018-10-31_16.14.45-client.txt
Решение
GameRegistry.addRecipe(new ItemStack(Main.HAHelmet,1),
new Object[] { "XYX", "X X", " ",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});
У тебя в крафе есть X Y.
А в "определении что к чему" идет:
X -> Main.SteelRS
X -> Blocks.redstone_block
Y -> ???
Собственно лишний char и дважды X.
3,005
192
592
GameRegistry.addRecipe(new ItemStack(Main.HAHelmet,1),
new Object[] { "XYX", "X X", " ",
('X'), Main.SteelRS, ('X'), Blocks.redstone_block, ('Y')});
У тебя в крафе есть X Y.
А в "определении что к чему" идет:
X -> Main.SteelRS
X -> Blocks.redstone_block
Y -> ???
Собственно лишний char и дважды X.
 
Сверху