
Kloonder
Members-
Posts
171 -
Joined
-
Last visited
Everything posted by Kloonder
-
Yes I tried that, but the first question is here: Why doent the normal way in the readNBT work second: I am using the simple network system from your tutorial, but what I think I can store only one var in a message, but I need more(world, Block Pos(to get the TileEntity), an integer with the research's value)
-
That worked fine, thanks
-
The most of the set write omn Client is the same thing, that NEI does, so it won't synchro the shown example recipes with the real recipes. research = getTileData().getInteger("Research") I trieds to do this with that one, but it only does this on server, so the value is saved only at the server, and I need the value also onb the client
-
I'm trying to add a title when a player joins the game @SubscribeEvent public void onPlayerJoinedGame(PlayerLoggedInEvent event){ EntityPlayer player = event.player; if(player instanceof EntityPlayerMP){ if(PopularPlayers.isPopularPlayer(player)){ if(player.getDisplayNameString().equals("Intektor")){ EntityPlayerMP entityplayermp = (EntityPlayerMP) player; S45PacketTitle s45packettitle = new S45PacketTitle(S45PacketTitle.Type.TITLE, (IChatComponent)new ChatComponentText(EnumChatFormatting.DARK_RED + player.getDisplayNameString() + " joined")); S45PacketTitle s45packettitle1 = new S45PacketTitle(S45PacketTitle.Type.SUBTITLE, (IChatComponent)new ChatComponentText(EnumChatFormatting.RED + "The Creator of Modifiable Armor. Bitches!")); entityplayermp.playerNetServerHandler.sendPacket(s45packettitle); entityplayermp.playerNetServerHandler.sendPacket(s45packettitle1); ModArmMod.network.sendToAll(new MessageToClient(player.getDisplayNameString())); }else{ EntityPlayerMP entityplayermp = (EntityPlayerMP) player; S45PacketTitle s45packettitle = new S45PacketTitle(S45PacketTitle.Type.TITLE, (IChatComponent)new ChatComponentText(EnumChatFormatting.GREEN + player.getDisplayNameString() + " joined")); S45PacketTitle s45packettitle1 = new S45PacketTitle(S45PacketTitle.Type.SUBTITLE, (IChatComponent)new ChatComponentText(EnumChatFormatting.DARK_GREEN + "He's popular!")); entityplayermp.playerNetServerHandler.sendPacket(s45packettitle); entityplayermp.playerNetServerHandler.sendPacket(s45packettitle1); } } } } that one is working fine, but it is only shown to the player hwo joins, not to the othersm any idea? I tried it with some packet, but that doesn't work eiter @Override public IMessage onMessage(MessageToClient message, MessageContext ctx) { S45PacketTitle s45packettitle = new S45PacketTitle(S45PacketTitle.Type.TITLE, (IChatComponent)new ChatComponentText(EnumChatFormatting.GREEN + message.message + " joined")); ctx.getClientHandler().getNetworkManager().sendPacket(s45packettitle); return null; }
-
Yes yes, I mean the slots NBT are working very fine GameRegistry.registerTileEntity(TileEntityArmorModifier.class, modid + "ArmorModifierTe"); My full TileEntity package de.intektor.modarmor.tileentity; import de.intektor.modarmor.ModArmMod; import de.intektor.modarmor.items.ModArmor; import de.intektor.modarmor.items.ModArmorHelmet; import de.intektor.modarmor.recipehandler.Recipe; import de.intektor.modarmor.recipehandler.RecipeHandler; import de.intektor.modarmor.server.MessageToClient; import de.intektor.modarmor.server.ResearchMessageStateMessage; import de.intektor.modarmor.slot.AdvancedSlot; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.inventory.Container; import net.minecraft.inventory.ISidedInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.server.gui.IUpdatePlayerListBox; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.IChatComponent; import net.minecraft.world.World; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import scala.swing.LazyPublisher; public class TileEntityArmorModifier extends AdvancedTileEntity implements ISidedInventory, IUpdatePlayerListBox{ public TileEntityArmorModifier() { super(13); } public ItemStack[] saveSlots = new ItemStack[slots.length]; @SideOnly(Side.CLIENT) public boolean synchronize = true; @SideOnly(Side.CLIENT) public boolean areItemStackSaved = false; public int levelCrafting = 0; public int research = 0; private NBTTagCompound finishedNBT; public EntityPlayer theUser; private long switchingTimer; private int switcherNumber; private int currentShownRecipeID; private boolean isRecipeinModifierFieldShown; private ItemStack[] switcher = new ItemStack[]{ new ItemStack(ModArmMod.ArmorHelmet), new ItemStack(ModArmMod.ArmorChestplate), new ItemStack(ModArmMod.ArmorLeggings), new ItemStack(ModArmMod.ArmorShoes) }; private RecipeHandler rh2 = new RecipeHandler(this, new ItemStack[10], null); public static Recipe recipe_armor_helmet = new Recipe("ArmorHelmet", 9, 0, new ItemStack[]{new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.leather_helmet), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string)}, false, new ItemStack(ModArmMod.ArmorHelmet)); public static Recipe recipe_armor_chestplate = new Recipe("ArmorChestplate", 9, 0, new ItemStack[]{new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.leather_chestplate), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string)}, false, new ItemStack(ModArmMod.ArmorChestplate)); public static Recipe recipe_armor_leggings = new Recipe("ArmorLeggings", 9, 0, new ItemStack[]{new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.leather_leggings), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string)}, false, new ItemStack(ModArmMod.ArmorLeggings)); public static Recipe recipe_armor_shoes = new Recipe("ArmorShoes", 9, 0, new ItemStack[]{new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.leather_boots), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string)}, false, new ItemStack(ModArmMod.ArmorShoes)); public static Recipe recipe_protection_upgrade = new Recipe("ProtectionoUpgrade", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.dye, 1, 4), new ItemStack(Items.iron_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.diamond), new ItemStack(Items.gold_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.dye, 1, 4), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.Protection_Upgrade)); public static Recipe recipe_spring = new Recipe("Spring", 9, 0, new ItemStack[]{null, new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), null, null, new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.spring)); public static Recipe recipe_stranger_system = new Recipe("Stranger_Protection_System", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.skull, 1, 1), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.stranger_protection_system)); public static Recipe recipe_lens = new Recipe("lens", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.potionitem, 1, 16454), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.nightvisionlens)); public static Recipe recipe_goggles = new Recipe("goggles", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(ModArmMod.nightvisionlens), new ItemStack(Items.iron_ingot), new ItemStack(ModArmMod.nightvisionlens), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.nightvisiongoggles)); public static Recipe recipe_mass_transformer = new Recipe("mass_transformer", 9, 0, new ItemStack[]{new ItemStack(Items.golden_apple, 1, 1), new ItemStack(Items.ender_eye), new ItemStack(Items.golden_apple, 1, 1), new ItemStack(Items.ender_eye), new ItemStack(Items.nether_star), new ItemStack(Items.ender_eye), new ItemStack(Items.golden_apple, 1, 1), new ItemStack(Items.ender_eye), new ItemStack(Items.golden_apple, 1, 1)}, false, new ItemStack(ModArmMod.MassTransformer)); public static Recipe recipe_single_jet = new Recipe("Single Jet", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.redstone), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.redstone), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.flint_and_steel), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.singleJet)); public static Recipe recipe_dual_jets = new Recipe("Dual Jets", 9, 0, new ItemStack[]{new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(ModArmMod.singleJet), new ItemStack(Items.iron_ingot), new ItemStack(ModArmMod.singleJet), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot)}, false, new ItemStack(ModArmMod.jetDual)); public static Recipe recipe_glider = new Recipe("Glider", 9, 0, new ItemStack[]{new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.iron_ingot), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string), new ItemStack(Items.string)}, false, new ItemStack(ModArmMod.Glider)); public static Recipe recipe_gliding_device = new Recipe("Gliding_Device", 9, 0, new ItemStack[]{new ItemStack(ModArmMod.Glider), new ItemStack(ModArmMod.Glider), new ItemStack(ModArmMod.Glider), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(Items.iron_ingot), new ItemStack(ModArmMod.Glider), new ItemStack(ModArmMod.Glider), new ItemStack(ModArmMod.Glider)}, false, new ItemStack(ModArmMod.GlidingModule)); @Override public void validate() { rh2.addRecipe(recipe_armor_helmet); rh2.addRecipe(recipe_armor_chestplate); rh2.addRecipe(recipe_armor_leggings); rh2.addRecipe(recipe_armor_shoes); rh2.addRecipe(recipe_glider); rh2.addRecipe(recipe_protection_upgrade); rh2.addRecipe(recipe_gliding_device); rh2.addRecipe(recipe_spring); rh2.addRecipe(recipe_stranger_system); rh2.addRecipe(recipe_lens); rh2.addRecipe(recipe_goggles); rh2.addRecipe(recipe_mass_transformer); rh2.addRecipe(recipe_single_jet); rh2.addRecipe(recipe_dual_jets); finishedNBT = new NBTTagCompound(); finishedNBT.setBoolean("FullNow", true); research = getTileData().getInteger("Research"); super.validate(); } @Override public void update() { if(theUser != null){ finishedNBT.setBoolean(theUser.getDisplayNameString(), true); } Side side = FMLCommonHandler.instance().getEffectiveSide(); if(side == Side.CLIENT){ if(System.currentTimeMillis() - 750 >= switchingTimer){ if(switcherNumber == 3){ switcherNumber = 0; }else{ switcherNumber++; } switchingTimer = System.currentTimeMillis(); if(isRecipeinModifierFieldShown){ putRecipeinModifierField(currentShownRecipeID); } } if(synchronize){ if(areItemStackSaved){ loadSaveBack(); areItemStackSaved = false; } handleResearchState(); if(theUser != null){ ItemStack[] sl = new ItemStack[10]; for(int i = 0; i < sl.length; i++){ sl[i] = slots[i+3]; slots[12] = rh2.update(sl, theUser); if(slots[12] != null){ if(slots[12].getItem() instanceof ModArmor){ if(!slots[12].hasTagCompound()){ slots[12].setTagCompound(new NBTTagCompound()); } slots[12].getTagCompound().setBoolean(theUser.getDisplayNameString(), true); slots[12].getTagCompound().setBoolean("FullNow", true); } } } slots[2] = null; handleModificationSystem(); } } } if(side == Side.SERVER){ handleResearchState(); if(theUser != null){ ItemStack[] sl = new ItemStack[10]; for(int i = 0; i < sl.length; i++){ sl[i] = slots[i+3]; } slots[12] = rh2.update(sl, theUser); if(slots[12] != null){ if(slots[12].getItem() instanceof ModArmor){ if(!slots[12].hasTagCompound()){ slots[12].setTagCompound(new NBTTagCompound()); } slots[12].getTagCompound().setBoolean(theUser.getDisplayNameString(), true); slots[12].getTagCompound().setBoolean("FullNow", true); } } } slots[2] = null; handleModificationSystem(); } } public void handleModificationSystem(){ ItemStack theStack = null; boolean b = true; if(slots[0] != null){ if(slots[0].getItem() instanceof ModArmor){ if(theUser != null){ if(slots[0].hasTagCompound()){ if(slots[0].getTagCompound().getBoolean(theUser.getDisplayNameString())){ if(slots[1] != null){ if(slots[0].getItem() == ModArmMod.ArmorHelmet){ handleNightVisionSystem(); handleBreathing(); } if(slots[0].getItem() == ModArmMod.ArmorChestplate){ handleGliding(); handleMining(); handleStrenght(); handleSingleJet(); handleMassTransformer(); } if(slots[0].getItem() == ModArmMod.ArmorLeggings){ handleSwiftness(); } if(slots[0].getItem() == ModArmMod.ArmorShoes){ handleWallClimbing(); handleJumpBoost(); } handleProtectionUpgrade(); handleStrangerSystem(); } }else{ if(slots[1] == null){ if(!slots[0].getTagCompound().getBoolean(theUser.getDisplayNameString())){ handleUnidentifiedArmor(); }else{ b = false; } }else{ b = false; } } }else{ b = false; } }else{ b = false; } }else{ b = false; } }else{ b = false; } if(!b){ slots[2] = null; levelCrafting = 0; specialObject[0] = ""; }else{ specialObject[0] = levelCrafting + ""; } } public void handleUnidentifiedArmor(){ levelCrafting = 5; ItemStack stack = null; if(theUser.experienceLevel >= levelCrafting){ stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setString("a", "ha"); stack.getTagCompound().setBoolean(theUser.getDisplayNameString(), true); } if(stack != null){ slots[2] = stack; } } public void handleProtectionUpgrade(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.Protection_Upgrade && research >= 1){ float multi = slots[0].getTagCompound().getInteger("Protection_Upgrade_Multiplier") == 0 ? 0.2f : slots[0].getTagCompound().getInteger("Protection_Upgrade_Multiplier"); levelCrafting = (int) (5 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Protection", stack.getTagCompound().getInteger("Protection")+1); stack.getTagCompound().setInteger("Protection_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleGliding(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.GlidingModule && research >= 2){ float multi = slots[0].getTagCompound().getInteger("Gliding_Upgrade_Multiplier") == 0 ? 0.2f : slots[0].getTagCompound().getInteger("Gliding_Upgrade_Multiplier"); levelCrafting = (int) (1.25 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Gliding", stack.getTagCompound().getInteger("Gliding")-2); stack.getTagCompound().setInteger("Gliding_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleWallClimbing(){ ItemStack theStack = null; if(slots[1].getItem() == Items.slime_ball && research >= 3){ float multi = slots[0].getTagCompound().getInteger("Slime_Upgrade_Multiplier") == 0 ? 0.2f : slots[0].getTagCompound().getInteger("Slime_Upgrade_Multiplier"); levelCrafting = (int) (2 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); int dp = stack.getTagCompound().getInteger("Slimy"); stack.getTagCompound().setInteger("Slimy", ++dp); stack.getTagCompound().setDouble("MaxClimbingTime", dp*5000); stack.getTagCompound().setDouble("RemainingClimbingTime", dp*5000); stack.getTagCompound().setInteger("Slime_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleJumpBoost(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.spring && research >= 2){ float multi = slots[0].getTagCompound().getInteger("JumpBoost_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("JumpBoost_Upgrade_Multiplier"); levelCrafting = (int) (5 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("JumpBoost", stack.getTagCompound().getInteger("JumpBoost")+1); stack.getTagCompound().setInteger("JumpBoost_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleStrangerSystem(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.stranger_protection_system && research >= 3 && slots[0].getTagCompound().getBoolean("StrangerSystem")){ levelCrafting = 30; if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setBoolean("StrangerSystem", true); stack.getTagCompound().setString("Owner", theUser.getDisplayNameString()); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleNightVisionSystem(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.nightvisiongoggles && research >= 4 && !slots[0].getTagCompound().getBoolean("NightVision")){ levelCrafting = 30; if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setBoolean("NightVision", true); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleMining(){ ItemStack theStack = null; if(slots[1].getItem() == Items.diamond_pickaxe && research >= 5){ float multi = slots[0].getTagCompound().getInteger("Mining_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("Mining_Upgrade_Multiplier"); levelCrafting = (int) (5 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Mining", stack.getTagCompound().getInteger("Mining")+1); stack.getTagCompound().setInteger("Mining_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); stack.getTagCompound().setBoolean("MiningActive", true); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleSwiftness(){ ItemStack theStack = null; if(ItemStack.areItemStacksEqual(slots[1], new ItemStack(Items.potionitem, 1, 16418)) && research >= 6){ float multi = slots[0].getTagCompound().getInteger("Speed_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("Speed_Upgrade_Multiplier"); levelCrafting = (int) (5 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Speed", stack.getTagCompound().getInteger("Speed")+1); stack.getTagCompound().setInteger("Speed_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleBreathing(){ ItemStack theStack = null; if(ItemStack.areItemStacksEqual(slots[1], new ItemStack(Items.potionitem, 1, 16429)) && research >= 7){ float multi = slots[0].getTagCompound().getInteger("Br_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("Br_Upgrade_Multiplier"); levelCrafting = (int) (5 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Br", stack.getTagCompound().getInteger("Br")+1); stack.getTagCompound().setInteger("Br_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleStrenght(){ ItemStack theStack = null; if(ItemStack.areItemStacksEqual(slots[1], new ItemStack(Items.potionitem, 1, 16425)) && research >= { float multi = slots[0].getTagCompound().getInteger("Strength_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("Strength_Upgrade_Multiplier"); levelCrafting = (int) (40 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("Strength", stack.getTagCompound().getInteger("Strength")+1); stack.getTagCompound().setInteger("Strength_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleMassTransformer(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.MassTransformer && research >= 9){ float multi = slots[0].getTagCompound().getInteger("MassTransformer_Upgrade_Multiplier") == 0 ? 1 : slots[0].getTagCompound().getInteger("MassTransformer_Upgrade_Multiplier"); levelCrafting = (int) (80 * multi); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setInteger("MassTransformer", stack.getTagCompound().getInteger("MassTransformer")+1); stack.getTagCompound().setInteger("MassTransformer_Upgrade_Multiplier", (int) (multi == 0.2f ? 1 : multi*2)); stack.getTagCompound().setDouble("MaxNoclipTime", stack.getTagCompound().getDouble("MaxNoclipTime") + 2000); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } public void handleSingleJet(){ ItemStack theStack = null; if(slots[1].getItem() == ModArmMod.singleJet && research >= 8 && !slots[0].getTagCompound().getBoolean("JetDual")){ levelCrafting = (int) (30); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); if(!slots[0].getTagCompound().getBoolean("SingelJet")){ stack.getTagCompound().setBoolean("SingleJet", true); }else{ stack.getTagCompound().setBoolean("SingleJet", false); stack.getTagCompound().setBoolean("JetDual", true); } theStack = stack; } }else if(slots[1].getItem() == ModArmMod.jetDual && research >= 8 && !slots[0].getTagCompound().getBoolean("JetDual")){ levelCrafting = (int) (60); if(theUser.experienceLevel >= levelCrafting){ ItemStack stack; stack = slots[0].copy(); stack.setTagCompound((NBTTagCompound) slots[0].getTagCompound().copy()); stack.getTagCompound().setBoolean("JetDual", true); theStack = stack; } } if(theStack != null){ slots[2] = theStack; } } @Override public void specialEvent(int id, Object object) { switch(id){ case 0: if(theUser != null){ theUser.experienceLevel -= levelCrafting; slots[2].getTagCompound().setInteger("Level_Wasted", slots[2].getTagCompound().getInteger("Level_Wasted") + levelCrafting); } slots[0] = null; break; case 1: for(int i = 0; i < slots.length-4; i++){ if(slots[i+3] != null){ slots[i + 3].stackSize--; if(slots[i+3].stackSize <= 0){ slots[i+3] = null; } } } break; case 2: theUser = (EntityPlayer) object; break; case 10: saveSlots(); synchronize = false; allowInteracting = false; break; case 11: stopShowingRecipe(); break; case 12: synchronize = false; putRecipeinCraftingField((Recipe) object); break; case 13: research += 1; try{ putRecipeinModifierField(research -1); }catch(Exception e){ } break; case 14: currentShownRecipeID = (Integer) object; putRecipeinModifierField((Integer) object); isRecipeinModifierFieldShown = true; break; } } @SideOnly(Side.CLIENT) public void putRecipeinCraftingField(Recipe recipe){ for(int i = 0; i < 9; i++){ ItemStack stack = recipe.getRecipe()[i]; if(stack != null){ if(!recipe.doesCareStackSize()){ stack.stackSize = 1; } } slots[i + 3] = stack; } slots[slots.length-1] = recipe.getOutput(); synchronize = false; allowInteracting = false; } @SideOnly(Side.CLIENT) public void putRecipeinModifierField(int ID){ switch(ID){ case 0: slots[0] = switcher[switcherNumber]; slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.Protection_Upgrade); slots[2] = switcher[switcherNumber]; slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setInteger("Protection", 1); break; case 1: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.GlidingModule); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setInteger("Gliding", -2); break; case 2: slots[0] = new ItemStack(ModArmMod.ArmorShoes); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(Items.slime_ball); slots[2] = new ItemStack(ModArmMod.ArmorShoes); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp = slots[2].getTagCompound().getInteger("Slimy"); slots[2].getTagCompound().setInteger("Slimy", ++dp); slots[2].getTagCompound().setDouble("MaxClimbingTime", dp*5000); slots[2].getTagCompound().setDouble("RemainingClimbingTime", dp*5000); break; case 3: slots[0] = new ItemStack(ModArmMod.ArmorShoes); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.spring); slots[2] = new ItemStack(ModArmMod.ArmorShoes); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp2 = slots[2].getTagCompound().getInteger("JumpBoost"); slots[2].getTagCompound().setInteger("JumpBoost", ++dp2); break; case 4: slots[0] = switcher[switcherNumber]; slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.stranger_protection_system); slots[2] = switcher[switcherNumber]; slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setBoolean("StrangerSystem", true); slots[2].getTagCompound().setString("Owner", theUser.getDisplayNameString()); break; case 5: slots[0] = new ItemStack(ModArmMod.ArmorHelmet); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.nightvisiongoggles); slots[2] = new ItemStack(ModArmMod.ArmorHelmet); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setBoolean("NightVision", true); break; case 6: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(Items.diamond_pickaxe); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp4 = slots[2].getTagCompound().getInteger("Mining"); slots[2].getTagCompound().setInteger("Mining", ++dp4); break; case 7: slots[0] = new ItemStack(ModArmMod.ArmorShoes); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(Items.potionitem, 1, 16418); slots[2] = new ItemStack(ModArmMod.ArmorShoes); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp5 = slots[2].getTagCompound().getInteger("Speed"); slots[2].getTagCompound().setInteger("Speed", ++dp5); break; case 8: slots[0] = new ItemStack(ModArmMod.ArmorHelmet); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(Items.potionitem, 1, 16429); slots[2] = new ItemStack(ModArmMod.ArmorHelmet); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp6 = slots[2].getTagCompound().getInteger("Br"); slots[2].getTagCompound().setInteger("Br", ++dp6); break; case 9: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(Items.potionitem, 1, 16425); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); int dp7 = slots[2].getTagCompound().getInteger("Strenght"); slots[2].getTagCompound().setInteger("Strenght", ++dp7); break; case 10: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.singleJet); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setBoolean("SingleJet", true); break; case 11: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.jetDual); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setBoolean("JetDual", true); break; case 12: slots[0] = new ItemStack(ModArmMod.ArmorChestplate); slots[0].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[1] = new ItemStack(ModArmMod.MassTransformer); slots[2] = new ItemStack(ModArmMod.ArmorChestplate); slots[2].setTagCompound((NBTTagCompound) finishedNBT.copy()); slots[2].getTagCompound().setInteger("MassTransformer", 1); break; } } @SideOnly(Side.CLIENT) public void saveSlots(){ for(int i = 0; i < slots.length; i++){ saveSlots[i] = slots[i]; } areItemStackSaved = true; } @SideOnly(Side.CLIENT) public void loadSaveBack(){ for(int i = 0; i < slots.length; i++){ slots[i] = saveSlots[i]; } } public void stopShowingRecipe(){ synchronize = true; allowInteracting = true; isRecipeinModifierFieldShown = false; } public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); NBTTagList nbttaglist = nbt.getTagList("Items", 10); this.slots = new ItemStack[13]; if (nbt.hasKey("CustomName", ) { field_94130_e = nbt.getString("CustomName"); } for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i); int j = nbttagcompound1.getByte("Slot") & 255; if (j >= 0 && j < this.slots.length) { this.slots[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1); } } research = nbt.getInteger("Research"); } public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); NBTTagList nbttaglist = new NBTTagList(); for (int i = 0; i < slots.length; i++) { if (this.slots[i] != null) { NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setInteger("Slot", i); slots[i].writeToNBT(nbttagcompound1); nbttaglist.appendTag(nbttagcompound1); } } nbt.setTag("Items", nbttaglist); if (this.hasCustomName()) { nbt.setString("CustomName", field_94130_e); } nbt.setInteger("Research", research); } public void handleResearchState(){ rh2.setAllRecipesEnabled(false); if(research >= 0){ rh2.getRecipe(0).setEnabled(true); rh2.getRecipe(1).setEnabled(true); rh2.getRecipe(2).setEnabled(true); rh2.getRecipe(3).setEnabled(true); } if(research >= 1){ recipe_protection_upgrade.setEnabled(true); } if(research >= 2){ recipe_glider.setEnabled(true); recipe_gliding_device.setEnabled(true); } if(research >= 3){ recipe_spring.setEnabled(true); } if(research >= 4){ recipe_stranger_system.setEnabled(true); } if(research >= 5){ recipe_lens.setEnabled(true); recipe_goggles.setEnabled(true); } if(research >= { recipe_single_jet.setEnabled(true); recipe_dual_jets.setEnabled(true); } if(research >= 9){ recipe_mass_transformer.setEnabled(true); } } }
-
Ok ok, frankly, I just typed public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); NBTTagList nbttaglist = new NBTTagList(); for (int i = 0; i < slots.length; i++) { if (this.slots[i] != null) { NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setInteger("Slot", i); slots[i].writeToNBT(nbttagcompound1); nbttaglist.appendTag(nbttagcompound1); } } nbt.setTag("Items", nbttaglist); if (this.hasCustomName()) { nbt.setString("CustomName", field_94130_e); } nbt.setInteger("Research", research); System.out.println(nbt.getInteger("Research")); // The correct number comes out } public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); NBTTagList nbttaglist = nbt.getTagList("Items", 10); this.slots = new ItemStack[13]; if (nbt.hasKey("CustomName", ) { field_94130_e = nbt.getString("CustomName"); } for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i); int j = nbttagcompound1.getByte("Slot") & 255; if (j >= 0 && j < this.slots.length) { this.slots[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1); } } research = nbt.getInteger("Research"); System.out.println(nbt.getInteger("Research")); // 0 comes out }
-
I used my mighty debug skillz and found out, that it writes it it correctly, but when it reads it, it doesn't use the written integer
-
It's a bit embarrassing to post this here now, I mean I programmed I whole mod now, and I want to finish it now, but I cant get this code here working if(side == Side.CLIENT){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(ArmorModifier), 0, new ModelResourceLocation("crafting_table", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(ArmorModifier), 0, new ModelResourceLocation("crafting_table", "normal")); } I mean it renders the Item perfectly, but the block is like a barrier
-
Hey, I have some problem with my NBTTag, it doesn't write Research, i mean it does, but it doesn't read it right You know what's wrong?? public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); NBTTagList nbttaglist = nbt.getTagList("Items", 10); this.slots = new ItemStack[13]; if (nbt.hasKey("CustomName", ) { field_94130_e = nbt.getString("CustomName"); } for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i); int j = nbttagcompound1.getByte("Slot") & 255; if (j >= 0 && j < this.slots.length) { this.slots[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1); } } research = nbt.getInteger("Research"); } public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); NBTTagList nbttaglist = new NBTTagList(); for (int i = 0; i < slots.length; i++) { if (this.slots[i] != null) { NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setInteger("Slot", i); slots[i].writeToNBT(nbttagcompound1); nbttaglist.appendTag(nbttagcompound1); } } nbt.setTag("Items", nbttaglist); if (this.hasCustomName()) { nbt.setString("CustomName", field_94130_e); } nbt.setInteger("Research", research); }
-
Haha, I know how to debug, and I already did watcvh every var, and I told you what I know, and nothinbg works so if you could please help me
-
Hey, so I have there a single problem with my TileEntity's NBT public ItemStack[] slots_mt = new ItemStack[3]; public ItemStack[] slots_ct = new ItemStack[10]; public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); NBTTagList nbttaglist = new NBTTagList(); for(int i = 0; i < slots_main.length; i++){ if(i < 3){ slots_main[i] = slots_mt[i]; }else{ slots_main[i] = slots_ct[i - 3]; } } for (int i = 0; i < slots_main.length; i++) { if (this.slots_main[i] != null) { NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setInteger("Slot", i); slots_main[i].writeToNBT(nbttagcompound1); nbttaglist.appendTag(nbttagcompound1); } } nbt.setTag("Items", nbttaglist); if (this.hasCustomName()) { nbt.setString("CustomName", this.field_94130_e); } It does only write the NBT from the slots_mt and not the slots_ct But the slots_main[3-12] isn't null, so I don't understand that
-
I'm sitting here now for hours, and I do'nt know why this isn't working, I have some problem with my Container and GuiContainer: PS: I'm definetly not new to java, but maybe sometimes a experienced person gets some mistakes public class GuiHandler implements IGuiHandler{ @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z)); if(tileEntity instanceof TileEntityArmorModifier){ return new ContainerArmorModifier(player.inventory, (TileEntityArmorModifier) tileEntity); } return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z)); if(tileEntity instanceof TileEntityArmorModifier){ return new GuiArmorModifier(player.inventory, (TileEntityArmorModifier) tileEntity); } return null; } } public class ContainerArmorModifier extends Container{ protected TileEntity tileEntity; public ContainerArmorModifier(InventoryPlayer invPlayer, TileEntityArmorModifier te) { tileEntity = te; } } An there is my Error public class GuiArmorModifier extends GuiContainer{ public GuiArmorModifier(InventoryPlayer inventory, TileEntityArmorModifier tileEntity) { super(new ContainerArmorModifier(inventory, tileEntity)); //this doesn't work here, I get an error here, But I cant understand why } @Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { } }
-
Hey Guys, I have a problem with debug, I added codeChickenCore and NotEnoughItems to eclipse, but now I cant debug anything, don't know why, do you have any ideas?
-
[1.7.10] BiomeEvent.GetVillageBlockID biome sometimes null
Kloonder replied to Ineentho's topic in Modder Support
Maybe this solution is to simple, but I think(I don't know exactly what you mean) but if you get a numm pinter Exception, you could try it with a !null statement -
I can't really tell you why, because I didn't ever tryied myself in transferStackInSlot, but if the stack is correctly moved, you could try it with a //add in here any Method which checks for a working Recipe or something like that if(slots[2] != null && !doesRecipesWork()){ slots[2] = null; }
-
I have the same problem, donno, I think its a bug in Forge
-
Ok that worked, but now my problem is, that Minecraft is crashing every time I do EnumHelper.addArmorMaterial(), it crahes, I tried a few things, but nothing works really good. [21:13:58] [main/INFO] [GradleStart]: Extra: [] [21:13:59] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Tim/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [21:13:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [21:13:59] [main/INFO] [FML]: Forge Mod Loader version 8.0.9.1239 for Minecraft 1.8 loading [21:13:59] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_20, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_20 [21:13:59] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [21:13:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [21:13:59] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [21:13:59] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [21:13:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [21:13:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:13:59] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [21:14:03] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [21:14:03] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [21:14:03] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [21:14:03] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [21:14:03] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [21:14:03] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [21:14:04] [Client thread/INFO]: Setting user: Player384 [21:14:08] [Client thread/INFO]: LWJGL Version: 2.9.1 [21:14:09] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [21:14:09] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1239 Initialized [21:14:09] [Client thread/INFO] [FML]: Replaced 215 ore recipies [21:14:09] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [21:14:09] [Client thread/INFO] [FML]: Searching C:\Users\Tim\Desktop\forge 1.8\eclipse\mods for mods [21:14:14] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [21:14:14] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Extrashoes] at CLIENT [21:14:14] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Extrashoes] at SERVER [21:14:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ExtraShoes [21:14:14] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [21:14:14] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [21:14:15] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [21:14:15] [Client thread/INFO] [FML]: Applying holder lookups [21:14:15] [Client thread/INFO] [FML]: Holder lookups applied [21:14:15] [sound Library Loader/INFO]: Starting up SoundSystem... [21:14:15] [Thread-7/INFO]: Initializing LWJGL OpenAL [21:14:15] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:14:15] [Thread-7/INFO]: OpenAL initialized. [21:14:16] [sound Library Loader/INFO]: Sound engine started [21:14:20] [Client thread/INFO]: Created: 512x512 textures-atlas [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor0(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getDeclaredConstructor(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:148) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:157) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:270) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:207) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:192) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:65) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at de.kloon.extrashoes.main.Extrashoes.init(Extrashoes.java:125) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:691) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.run(Minecraft.java:325) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.main.Main.main(Main.java:117) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(GradleStart.java:45) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getConstructor0(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.getDeclaredConstructor(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:148) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:157) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:270) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:207) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:192) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:65) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at de.kloon.klooncore.abstractclasses.CustomItemArmor.<init>(CustomItemArmor.java:22) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at de.kloon.extrashoes.items.ModifiableShoe.<init>(ModifiableShoe.java:36) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at de.kloon.extrashoes.main.Extrashoes.init(Extrashoes.java:129) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.google.common.eventbus.EventBus.post(EventBus.java:275) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:691) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.run(Minecraft.java:325) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.main.Main.main(Main.java:117) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [21:14:21] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(GradleStart.java:45) [21:14:21] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue [21:14:21] [Client thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{8.0.9.1239} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1239-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{11.14.0.1239} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1239-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized Extrashoes{2.0 Beta Build 0.2.1} [ExtraShoes] (bin) Unloaded->Constructed->Pre-initialized->Errored [21:14:21] [Client thread/ERROR] [FML]: The following problems were captured during this phase [21:14:21] [Client thread/ERROR] [FML]: Caught exception from Extrashoes java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:280) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:207) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:192) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:65) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at de.kloon.klooncore.abstractclasses.CustomItemArmor.<init>(CustomItemArmor.java:22) ~[bin/:?] at de.kloon.extrashoes.items.ModifiableShoe.<init>(ModifiableShoe.java:36) ~[bin/:?] at de.kloon.extrashoes.main.Extrashoes.init(Extrashoes.java:129) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_20] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_20] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_20] at java.lang.Class.getDeclaredConstructor(Unknown Source) ~[?:1.8.0_20] at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:148) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:157) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:270) ~[forgeSrc-1.8-11.14.0.1239-1.8.jar:?] ... 45 more [21:14:21] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:568]: ---- Minecraft Crash Report ---- // Ouch. That hurt Time: 27.11.14 21:14 Description: Initializing game java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:280) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:207) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:192) at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:65) at de.kloon.klooncore.abstractclasses.CustomItemArmor.<init>(CustomItemArmor.java:22) at de.kloon.extrashoes.items.ModifiableShoe.<init>(ModifiableShoe.java:36) at de.kloon.extrashoes.main.Extrashoes.init(Extrashoes.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:691) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) at net.minecraft.client.Minecraft.run(Minecraft.java:325) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, int, [i, int) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getDeclaredConstructor(Unknown Source) at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:148) at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:157) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:270) ... 45 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:280) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:207) at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:192) at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:65) at de.kloon.klooncore.abstractclasses.CustomItemArmor.<init>(CustomItemArmor.java:22) at de.kloon.extrashoes.items.ModifiableShoe.<init>(ModifiableShoe.java:36) at de.kloon.extrashoes.main.Extrashoes.init(Extrashoes.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:691) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:325) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_20, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 792366792 bytes (755 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.9.1239 Minecraft Forge 11.14.0.1239 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{8.0.9.1239} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1239-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{11.14.0.1239} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1239-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized Extrashoes{2.0 Beta Build 0.2.1} [ExtraShoes] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.8 LWJGL: 2.9.1 OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No 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) [21:14:21] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:568]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Tim\Desktop\forge 1.8\eclipse\.\crash-reports\crash-2014-11-27_21.14.21-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release }
-
Hey guys, I have some problems with updating my mod from 1.7 to 1.8 I tried to update my armor Material, but it seems like the EnumHelper is deleted or renamed, so do you know how to ádd new ArmorMaterials in Minecraft 1.8?
-
I need the ItemStack the player has currently on the mouse. YOu know, ehen you are for example in a chest and you click on a slot you get the itemstack tk the mouse, and I cant find any metod to get that ItemStack
-
To be honest, no I have no idea what you mean, could you post screenshots please? And - is it some of the items black all of the time, or all of the items black but only some of the time? What do you mean by "overlay"? -TGG https://lh6.googleusercontent.com/-lvH3BMerlNA/VGt3cUPPI-I/AAAAAAAAAu0/VfJY42Vywic/w1580-h889-no/2014-11-18_17.41.54.png[/img] https://lh5.googleusercontent.com/-gb3LdlAbobU/VGt3W2CKltI/AAAAAAAAAuQ/l1TqGml1rBo/w1580-h889-no/2014-11-18_17.41.51.png[/img] Sometimes its there sometimes not, donno why
-
Hey, I have some problems with custom overlay rendering. if(itemstack.stackTagCompound.getBoolean("SwiftnessFlag")){ renderItem.renderIcon(0, 0, ModifiableShoe.swiftnessOverlay, 16, 16); } if(itemstack.stackTagCompound.getBoolean("StrenghtFlag")){ renderItem.renderIcon(0, 0, ModifiableShoe.strenghtOverlay, 16, 16); } if(itemstack.stackTagCompound.getBoolean("JumpBoostFlag")){ renderItem.renderIcon(0, 0, ModifiableShoe.springArmor, 16, 16); } if(itemstack.stackTagCompound.getBoolean("FeatherSlowdownFlag")){ renderItem.renderIcon(0, 0, ModifiableShoe.featherArmor, 16, 16); } if(itemstack.stackTagCompound.getBoolean("StoneFlag")){ renderItem.renderIcon(0, 0, ModifiableShoe.stoneIIcon, 16, 16); } if(itemstack.stackTagCompound.getBoolean("JetBoots")){ renderItem.renderIcon(0, 0, ModifiableShoe.jetBootIcons[0], 16, 16); } if(itemstack.stackTagCompound.getBoolean("SingleJetBoot")){ renderItem.renderIcon(0, 0, ModifiableShoe.jetBootIcons[1], 16, 16); } It renders those items with the correct overlay, but it sometimes uses strange black overlays. I hope you know what I mean, so if you know any toturial plaese tell me
-
OMG thank you, I really forgot that, now it works thank you
-
Hey guys, I don't know why, but Minecraft sets the NBTTags of two ItemStacks equal. So I mean, I wrote this code: slots[2].stackTagCompound = slots[1].stackTagCompound But my problem is, every time I change the NBt from slots[2], it also changes slots[1], I think the solution is really simple and I'm also not new in Java, but sometimes even a good java programer gets stick in something easy java, sorry for that public void updateEntity(){ if(slots[2] == null && rh.getWorkingItemGroupBasedRecipe(slots) != -1 && System.currentTimeMillis() -10 > lastCrafted && !(System.currentTimeMillis()-50 > lastCrafted)){ System.out.println("Gecraftet"); } this.slots[2] = rh.addOutputSlotManagerforItemBase(slots, 2); if(rh.getWorkingItemGroupBasedRecipe(slots) != -1){ lastCrafted = System.currentTimeMillis(); } if(ItemStack.areItemStacksEqual(slots[1], slots[2])){ System.out.println("Gleich"); } craftingSystem(); this.openInventory(); } private void craftingSystem() { if(slots[0] != null && slots[1] != null){ if((slots[0].getItem() == Extrashoes.SingleJetBoot || slots[0].getItem() == Extrashoes.JetBoots) && ItemGroup.isItemPartofItemGroup(slots[1].getItem(), Extrashoes.ModifiableShoesGroup)){ handleJetStuff(); } } } private void handleJetStuff(){ if(slots[0].getItem() == Extrashoes.SingleJetBoot){ if(!slots[1].stackTagCompound.getBoolean("Jetboots")){ if(slots[1] != slots[2]){ slots[2] = null; slots[2] = new ItemStack(Extrashoes.ModifiableShoe[Extrashoes.ModifiableShoesGroup.getNumberofIteminItemGroup(slots[1].getItem(), Extrashoes.ModifiableShoesGroup)]); slots[2].stackTagCompound = slots[1].stackTagCompound; slots[2].stackTagCompound.setString("TypeofBoot", "golden_boots"); if(slots[2].stackTagCompound.getBoolean("SingleJetBoot")){ if(slots[2].stackTagCompound.getDouble("Remaining Weight") > 5){ slots[2].stackTagCompound.setBoolean("JetBoots", true); slots[2].stackTagCompound.setBoolean("SingleJetBoot", false); double rw = slots[2].stackTagCompound.getDouble("Remaining Weight"); slots[2].stackTagCompound.setDouble("Remaining Weight", rw - 5); } }else{ if(slots[2].stackTagCompound.getDouble("Remaining Weight") > 5){ slots[2].stackTagCompound.setBoolean("SingleJetBoot", true); double rw = slots[2].stackTagCompound.getDouble("Remaining Weight"); slots[2].stackTagCompound.setDouble("Remaining Weight", rw - 5); } } } } } }
-
Hey Guys, i have some problems, I created some methods, that could handle every specific Recipe a minecraft Modder will ever need, maybe more. Everything works really fine, but my problem is, the Input Handler(The Handler, which Handles the Input Slots, so it removes the items after crafting) removes the Items not really good, I think its a problem between Server and Client syncing, it decreases the Item stacksize not correctly, and in fact, when it crafts with NBT, it deletes the NBT after crafting, but I really have no Idea how to fix this. I cant show you the howl code, because you probably may need more than 5 hour so understand this. public final ItemStack addInputSlotManager(ItemStack[] slots, int inputSlotArrayNumber){ ItemStack itemstack = slots[inputSlotArrayNumber]; boolean flag = false; if(getWorkingItemBasedRecipe(slots) != -1 && System.currentTimeMillis() -10 > lastCrafted && !(System.currentTimeMillis()-50 > lastCrafted)){ for(int a = 0; a < slots.length; a++){ if(a > slots.length - outPutSlots){ if(slots[a] == null){ flag = true; System.out.println("Yolo"); } } } if(flag && slots[inputSlotArrayNumber] != null){ itemstack.stackSize -= itemBasedInputSlotDecrease[getWorkingItemBasedRecipe(slots)][inputSlotArrayNumber]; if(itemstack.stackSize <= 0){ return null; } } }else{ if(getWorkingItemGroupBasedRecipe(slots) != -1){ if(System.currentTimeMillis() -10 > lastCrafted){ if(!(System.currentTimeMillis()-50 > lastCrafted)){ for(int a = 0; a < slots.length; a++){ if(a >= slots.length - 1){ if(slots[a] == null){ flag = true; System.out.println("yolo"); } } } } } if(flag && slots[inputSlotArrayNumber] != null){ itemstack.stackSize -= itemGroupBasedInputSlotDecrease[getWorkingItemGroupBasedRecipe(slots)][inputSlotArrayNumber]; if(itemstack.stackSize <= 0){ return null; } } } } return itemstack; } Some code that handles NBT Crafting if(itemGroupBasedRecipeInput[l][m - outPutSlots] != null){ for(int v = 0; v < itemGroupBasedRecipeInput[l][m - outPutSlots].getItemLength(); v++){ itemGroupBasedfinalItemStacks[l][m][v] = new ItemStack(Items.diamond_horse_armor); System.out.println("\t\t\t\t\t ----------"); System.out.println(itemGroupBasedfinalItemStacks[l][m][v] + "\t" + l + "\t" + m + "\t" + v); itemGroupBasedfinalItemStacks[l][m][v].stackSize = itemGroupBasedRecipeOutputStackSize[l][m]; if(itemGroupBasedNBTagFlag[l][m] == true && itemGroupBasedRecipeInput[l][m - outPutSlots] != null){ itemGroupBasedfinalItemStacks[l][m][v].stackSize = 1; itemGroupBasedfinalItemStacks[l][m][v].stackTagCompound = new NBTTagCompound(); for(int n = 0; n < itemGroupBasedMaxNBTTagStringsOnSlot; n++){ try{ itemGroupBasedfinalItemStacks[l][m][v].stackTagCompound.setString(n+"", itemGroupBasedOutputNBTString[l][slots.length - 1 - m][n]); }catch(Exception e){ } } } } The Tile Entity update Code this.slots[0] = rh.addInputSlotManager(slots, 0); this.slots[1] = rh.addInputSlotManager(slots, 1); if(slots[2] == null && rh.getWorkingItemGroupBasedRecipe(slots) != -1 && System.currentTimeMillis() -10 > lastCrafted && !(System.currentTimeMillis()-50 > lastCrafted)){ System.out.println("Gecraftet"); } this.slots[2] = rh.addOutputSlotManagerforItemBase(slots, 2); if(rh.getWorkingItemGroupBasedRecipe(slots) != -1){ lastCrafted = System.currentTimeMillis(); } Ignore those Yolos They are just for me, to look when it does this