Jump to content

Updating screen events java.lang.ArrayIndexOutOfBoundsException: -1


SackboyAlamode

Recommended Posts

Minecraft crashes when i craft a tool in crafting bench and i get this in crash report:

 

 

 

 

---- Minecraft Crash Report ----

// My bad.

 

Time: 1/31/16 7:39 PM

Description: Updating screen events

 

java.lang.ArrayIndexOutOfBoundsException: -1

at net.minecraft.item.ItemStack.onCrafting(ItemStack.java:481)

at net.minecraft.inventory.SlotCrafting.onCrafting(SlotCrafting.java:70)

at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:127)

at net.minecraft.inventory.Container.slotClick(Container.java:438)

at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:478)

at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:676)

at net.minecraft.client.gui.inventory.GuiContainer.checkHotbarKeys(GuiContainer.java:715)

at net.minecraft.client.gui.inventory.GuiContainer.keyTyped(GuiContainer.java:689)

at net.minecraft.client.gui.GuiScreen.handleKeyboardInput(GuiScreen.java:370)

at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:321)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1731)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039)

at net.minecraft.client.Minecraft.run(Minecraft.java:962)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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.ItemStack.onCrafting(ItemStack.java:481)

at net.minecraft.inventory.SlotCrafting.onCrafting(SlotCrafting.java:70)

at net.minecraft.inventory.SlotCrafting.onPickupFromSlot(SlotCrafting.java:127)

at net.minecraft.inventory.Container.slotClick(Container.java:438)

at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:478)

at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:676)

at net.minecraft.client.gui.inventory.GuiContainer.checkHotbarKeys(GuiContainer.java:715)

at net.minecraft.client.gui.inventory.GuiContainer.keyTyped(GuiContainer.java:689)

at net.minecraft.client.gui.GuiScreen.handleKeyboardInput(GuiScreen.java:370)

at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:321)

 

-- Affected screen --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['SackboyAlamode'/226, l='MpServer', x=-733.92, y=5.62, z=-710.56]]

Chunk stats: MultiplayerChunkCache: 25, 25

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: World: (-723,4,-712), Chunk: (at 13,0,8 in -46,-45; contains blocks -736,0,-720 to -721,255,-705), Region: (-2,-2; contains chunks -64,-64 to -33,-33, blocks -1024,0,-1024 to -513,255,-513)

Level time: 8306 game time, 8306 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 46 total; [EntitySlime['Slime'/26244, l='MpServer', x=-738.78, y=4.00, z=-709.31], EntitySlime['Slime'/298816, l='MpServer', x=-700.53, y=2.58, z=-787.64], EntitySheep['Sheep'/70, l='MpServer', x=-760.84, y=4.00, z=-676.97], EntitySlime['Slime'/298818, l='MpServer', x=-683.32, y=3.71, z=-756.52], EntitySheep['Sheep'/71, l='MpServer', x=-762.81, y=4.00, z=-681.84], EntityCow['Cow'/72, l='MpServer', x=-757.53, y=4.00, z=-672.50], EntitySlime['Slime'/74889, l='MpServer', x=-673.86, y=3.13, z=-694.50], EntityCow['Cow'/73, l='MpServer', x=-766.97, y=4.00, z=-681.53], EntitySlime['Slime'/102920, l='MpServer', x=-783.99, y=3.50, z=-751.18], EntityChicken['Chicken'/74, l='MpServer', x=-764.03, y=4.00, z=-685.22], EntitySlime['Slime'/108939, l='MpServer', x=-758.11, y=4.47, z=-714.58], EntityChicken['Chicken'/75, l='MpServer', x=-761.53, y=4.00, z=-675.63], EntitySlime['Slime'/413131, l='MpServer', x=-735.90, y=3.13, z=-668.52], EntityItemFrame['entity.ItemFrame.name'/83, l='MpServer', x=-738.94, y=4.50, z=-709.50], EntityItemFrame['entity.ItemFrame.name'/84, l='MpServer', x=-738.94, y=4.50, z=-710.50], EntityItemFrame['entity.ItemFrame.name'/85, l='MpServer', x=-738.94, y=4.50, z=-711.50], EntityItemFrame['entity.ItemFrame.name'/86, l='MpServer', x=-738.94, y=5.50, z=-711.50], EntityItemFrame['entity.ItemFrame.name'/87, l='MpServer', x=-738.94, y=5.50, z=-709.50], EntityItemFrame['entity.ItemFrame.name'/88, l='MpServer', x=-738.50, y=4.50, z=-709.06], EntitySlime['Slime'/339869, l='MpServer', x=-683.86, y=5.12, z=-721.49], EntitySlime['Slime'/186010, l='MpServer', x=-735.21, y=5.06, z=-716.80], EntityItemFrame['entity.ItemFrame.name'/89, l='MpServer', x=-737.50, y=4.50, z=-709.06], EntityItemFrame['entity.ItemFrame.name'/90, l='MpServer', x=-738.50, y=5.50, z=-709.06], EntityItemFrame['entity.ItemFrame.name'/91, l='MpServer', x=-737.50, y=5.50, z=-709.06], EntityItemFrame['entity.ItemFrame.name'/92, l='MpServer', x=-737.50, y=6.50, z=-709.06], EntityItemFrame['entity.ItemFrame.name'/93, l='MpServer', x=-738.50, y=4.50, z=-711.94], EntityItemFrame['entity.ItemFrame.name'/94, l='MpServer', x=-738.50, y=4.50, z=-711.94], EntitySlime['Slime'/51422, l='MpServer', x=-726.12, y=4.00, z=-719.50], EntityItemFrame['entity.ItemFrame.name'/95, l='MpServer', x=-738.50, y=5.50, z=-711.94], EntityItemFrame['entity.ItemFrame.name'/96, l='MpServer', x=-737.50, y=5.50, z=-711.94], EntityItemFrame['entity.ItemFrame.name'/97, l='MpServer', x=-737.50, y=4.50, z=-711.94], EntityItemFrame['entity.ItemFrame.name'/98, l='MpServer', x=-737.50, y=6.50, z=-711.94], EntitySlime['Slime'/99, l='MpServer', x=-765.74, y=3.44, z=-773.49], EntityCow['Cow'/100, l='MpServer', x=-751.47, y=4.00, z=-676.34], EntitySlime['Slime'/448355, l='MpServer', x=-738.13, y=4.81, z=-680.10], EntitySlime['Slime'/371424, l='MpServer', x=-723.11, y=4.00, z=-746.94], EntitySlime['Slime'/58666, l='MpServer', x=-738.20, y=3.42, z=-761.41], EntitySlime['Slime'/74477, l='MpServer', x=-696.41, y=4.62, z=-740.15], EntitySlime['Slime'/288169, l='MpServer', x=-758.50, y=4.00, z=-742.41], EntitySlime['Slime'/53232, l='MpServer', x=-676.29, y=3.64, z=-688.75], EntitySlime['Slime'/123888, l='MpServer', x=-671.32, y=3.25, z=-739.22], EntityClientPlayerMP['SackboyAlamode'/226, l='MpServer', x=-733.92, y=5.62, z=-710.56], EntitySlime['Slime'/190006, l='MpServer', x=-785.71, y=3.13, z=-648.22], EntitySlime['Slime'/311666, l='MpServer', x=-685.82, y=3.90, z=-723.86], EntitySlime['Slime'/135284, l='MpServer', x=-723.94, y=4.00, z=-749.42], EntitySlime['Slime'/51389, l='MpServer', x=-805.80, y=4.67, z=-639.09]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)

at net.minecraft.client.Minecraft.run(Minecraft.java:984)

at net.minecraft.client.main.Main.main(Main.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

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.8.0_51, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 319920552 bytes (305 MB) / 555220992 bytes (529 MB) up to 1657274368 bytes (1580 MB)

JVM Flags: 0 total;

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 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)

UCHIJAAAA Industrial{1.0.0} [industrialization] (bin)

GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12804 Compatibility Profile Context 13.352.1004.1010' Renderer: 'AMD Radeon R5 Graphics'

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: AMD Radeon R5 Graphics GL version 4.3.12804 Compatibility Profile Context 13.352.1004.1010, ATI Technologies Inc.

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)

 

 

Link to comment
Share on other sites

You posted this in the wrong section, which is probably why diesieben07 thought this was about your own mod's GUI. Modder Support is for mod developers, Support is for users.

 

This crash occurred because you tried to craft an item without an ID. Report this to the author of the mod you were trying to craft an item from.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Revision, i tested with my recipes for the other 4 types of broadswords(diamond,iron,wood,gold) and get the same crash in all of them, the code in my crafting recipes class being:

 

GameRegistry.addRecipe(new ItemStack(ModItems.ironBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.iron_ingot, 'A', Blocks.iron_block, 'D', Items.stick);

Link to comment
Share on other sites

thank you Choonster for clarifying, i was unclear, i am developing a mod and am having trouble crafting items in my mod in a vanilla crafting table, specifically a sword Stone Broadsword, and tested that all of the crafting recipes for the different types of broadswords didn't work with the same crash. I am also a new mod developer, but i understand some java and have played minecraft for a while, i have been making this mod for about a month, making blocks and items, but as you can see having trouble with swords...

Link to comment
Share on other sites

So to be clear, the crash happens using the vanilla crafting bench with the recipe you showed? If that's the case, try rolling back to an earlier version of Forge such as 1448 and testing if the crash still occurs there.

 

Some Forge releases occasionally have issues such as this, and testing on a known stable version can at least rule out Forge as the culprit. Personally, I've had the best experience with the 1448 release for 1.7.10, which is why I recommend testing against that.

 

If you still have issues on 1448, post your custom Item class, if there is one, and any other code that may relate to your issue.

Link to comment
Share on other sites

is the item id its unlocalized name? or do you have to specifically set an id?

 

The item ID is automatically set when you register your item using

GameRegistry.registerItem

. You must register every

Item

you add.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Thank you coolAlias for the quick, descriptive reply.  i will change the forge directory now and post my results when i check it. To clarify though, i have had success crafting other items such as blocks, but not the swords. Thank you choonster, i have registered all of my items i have added in my ModItems Class

Link to comment
Share on other sites

Thank you coolAlias for the quick, descriptive reply.  i will change the forge directory now and post my results when i check it. To clarify though, i have had success crafting other items such as blocks, but not the swords. Thank you choonster, i have registered all of my items i have added in my ModItems Class

If your other crafting recipes work, it is very unlikely to be an issue with Forge - that's just something to check when all else fails, and I didn't see anything in your recipe that looked off. ;)

 

Post your sword class, if possible, and any custom recipe handler involved in those recipes.

Link to comment
Share on other sites

i checked with forge 1448 , same crash though. I use a single ModCrafting class for recipe registering.

 

My ItemModSword Class Is:

 

package com.SackboyAlamode.Industrialization.item;

 

import com.SackboyAlamode.Industrialization.Main;

 

import net.minecraft.item.ItemSword;

 

public class ItemModSword extends ItemSword{

 

public ItemModSword(String unlocalizedName, ToolMaterial material) {

super(material);

this.setUnlocalizedName(unlocalizedName);

this.setTextureName(Main.MODID + ":" + unlocalizedName);

 

}

 

}

 

 

My ModItems Class is:

 

package com.SackboyAlamode.Industrialization.item;

 

 

 

import com.SackboyAlamode.Industrialization.Main;

 

import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.Item.ToolMaterial;

import net.minecraftforge.common.util.EnumHelper;

 

public final class ModItems {

//Materials

//("MaterialName", harvestLevel, durability, miningSpeed, damageVsEntites, enchantability);

public static ToolMaterial AWOOD = EnumHelper.addToolMaterial("AWOOD", 2, 512, 7.0F, 1.0F, 1);

public static ToolMaterial ASTONE = EnumHelper.addToolMaterial("ASTONE", 2, 1024, 7.0F, 2.0F, 5);

public static ToolMaterial AIRON = EnumHelper.addToolMaterial("AIRON", 2, 2048, 7.0F, 4.0F, 15);

public static ToolMaterial AGOLD = EnumHelper.addToolMaterial("AGOLD", 2, 256, 7.0F, 3.0F, 30);

public static ToolMaterial ADIAMOND = EnumHelper.addToolMaterial("ADIAMOND", 2, 8192, 6.0F, 6.0F, 10);

public static ToolMaterial BWOOD = EnumHelper.addToolMaterial("BWOOD", 2, 512, 7.0F, 1.5F, 1);

public static ToolMaterial BSTONE = EnumHelper.addToolMaterial("BSTONE", 2, 1024, 7.0F, 2.5F, 5);

public static ToolMaterial BIRON = EnumHelper.addToolMaterial("BIRON", 2, 2048, 7.0F, 7.0F, 15);

public static ToolMaterial BGOLD = EnumHelper.addToolMaterial("BGOLD", 2, 256, 7.0F, 5.0F, 30);

public static ToolMaterial BDIAMOND = EnumHelper.addToolMaterial("BDIAMOND", 2, 8192, 11.0F, 11.0F, 10);

 

//Items

public static Item woodGrindstone;

public static Item stoneGrindstone;

public static Item ironGrindstone;

public static Item goldGrindstone;

public static Item diamondGrindstone;

public static Item woodBroadsword;

public static Item stoneBroadsword;

public static Item ironBroadsword;

public static Item goldBroadsword;

public static Item diamondBroadsword;

public static Item sharpenedWoodBroadsword;

public static Item sharpenedStoneBroadsword;

public static Item sharpenedIronBroadsword;

public static Item sharpenedGoldBroadsword;

public static Item sharpenedDiamondBroadsword;

 

public static final void init() {

//Creating Items

woodGrindstone = new Item().setUnlocalizedName("woodGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":woodGrindstone");

stoneGrindstone = new Item().setUnlocalizedName("stoneGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":stoneGrindstone");

ironGrindstone = new Item().setUnlocalizedName("ironGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":ironGrindstone");

goldGrindstone = new Item().setUnlocalizedName("goldGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":goldGrindstone");

diamondGrindstone = new Item().setUnlocalizedName("diamondGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":diamondGrindstone");

woodBroadsword = new Item().setUnlocalizedName("woodBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":woodBroadsword");

stoneBroadsword = new Item().setUnlocalizedName("stoneBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":stoneBroadsword");

ironBroadsword = new Item().setUnlocalizedName("ironBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":ironBroadsword");

goldBroadsword = new Item().setUnlocalizedName("goldBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":goldBroadsword");

diamondBroadsword = new Item().setUnlocalizedName("diamondBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":diamondBroadsword");

sharpenedWoodBroadsword = new Item().setUnlocalizedName("sharpenedWoodBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedWoodBroadsword");

sharpenedStoneBroadsword = new Item().setUnlocalizedName("sharpenedStoneBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedStoneBroadsword");

sharpenedIronBroadsword = new Item().setUnlocalizedName("sharpenedIronBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedIronBroadsword");

sharpenedGoldBroadsword = new Item().setUnlocalizedName("sharpenedGoldBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedGoldBroadsword");

sharpenedDiamondBroadsword = new Item().setUnlocalizedName("sharpenedDiamondBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedDiamondBroadsword");

//Registering Items

GameRegistry.registerItem(new ItemModSword("woodBroadsword", AWOOD), "woodBroadsword");

GameRegistry.registerItem(new ItemModSword("stoneBroadsword", ASTONE), "stoneBroadsword");

GameRegistry.registerItem(new ItemModSword("ironBroadsword", AIRON), "ironBroadsword");

GameRegistry.registerItem(new ItemModSword("goldBroadsword", AGOLD), "goldBroadsword");

GameRegistry.registerItem(new ItemModSword("diamondBroadsword", ADIAMOND), "diamondBroadsword");

GameRegistry.registerItem(new ItemModSword("sharpenedWoodBroadsword", BWOOD), "sharpenedWoodBroadsword");

GameRegistry.registerItem(new ItemModSword("sharpenedStoneBroadsword", BSTONE), "sharpenedStoneBroadsword");

GameRegistry.registerItem(new ItemModSword("sharpenedIronBroadsword", BIRON), "sharpenedIronBroadsword");

GameRegistry.registerItem(new ItemModSword("sharpenedGoldBroadsword", BGOLD), "sharpenedGoldBroadsword");

GameRegistry.registerItem(new ItemModSword("sharpenedDiamondBroadsword", BDIAMOND), "sharpenedDiamondBroadsword");

GameRegistry.registerItem(woodGrindstone, "woodGrindstone");

GameRegistry.registerItem(stoneGrindstone, "stoneGrindstone");

GameRegistry.registerItem(ironGrindstone, "ironGrindstone");

GameRegistry.registerItem(goldGrindstone, "goldGrindstone");

GameRegistry.registerItem(diamondGrindstone, "diamondGrindstone");

}

 

}

 

My ModCrafting Class is:

 

package com.SackboyAlamode.Industrialization.crafting;

 

import com.SackboyAlamode.Industrialization.block.ModBlocks;

import com.SackboyAlamode.Industrialization.item.ModItems;

 

import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.ItemStack;

 

 

public class ModCrafting {

public static final void init() {

//Recipes

//Blocks

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedWood), "ABA", "BAB", "ABA", 'A', Blocks.log, 'B', Blocks.planks);

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedStone), "ABA", "BAB", "ABA", 'A', Blocks.stone, 'B', Blocks.cobblestone);

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedSand), "ABA", "BAB", "ABA", 'A', Blocks.sand, 'B', Blocks.sandstone);

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedDirt), "ABA", "BAB", "ABA", 'A', Blocks.dirt, 'B', ModBlocks.mixedDirt);

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedGravel), "ABA", "BAB", "ABA", 'A', Blocks.gravel, 'B', Blocks.cobblestone);

GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedCobblestone), "ABA", "BAB", "ABA", 'A', Blocks.cobblestone, 'B', Blocks.stone);

GameRegistry.addRecipe(new ItemStack(ModBlocks.lantern), "ABA", "BCB", "ABA", 'A', Blocks.planks, 'B', Items.paper, 'C', Blocks.torch);

GameRegistry.addRecipe(new ItemStack(ModBlocks.paperWrappedPlanks), "AAA", "ABA", "AAA", 'A', Items.paper, 'B', Blocks.planks);

//Items

GameRegistry.addRecipe(new ItemStack(ModItems.woodBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Blocks.planks, 'A', ModBlocks.compressedWood, 'D', Items.stick);

GameRegistry.addRecipe(new ItemStack(ModItems.stoneBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Blocks.stone, 'A', ModBlocks.compressedStone, 'D', Items.stick);

GameRegistry.addRecipe(new ItemStack(ModItems.ironBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.iron_ingot, 'A', Blocks.iron_block, 'D', Items.stick);

GameRegistry.addRecipe(new ItemStack(ModItems.goldBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.gold_ingot, 'A', Blocks.gold_block, 'D', Items.stick);

GameRegistry.addRecipe(new ItemStack(ModItems.diamondBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.diamond, 'A', Blocks.diamond_block, 'D', Items.stick);

GameRegistry.addRecipe(new ItemStack(ModItems.woodGrindstone), "ABA", "B B", "ABA", 'A', Blocks.planks, 'B', ModBlocks.compressedWood);

GameRegistry.addRecipe(new ItemStack(ModItems.stoneGrindstone), "ABA", "BCB", "ABA", 'A', Blocks.stone, 'B', ModBlocks.compressedStone, 'C', ModItems.woodGrindstone);

GameRegistry.addRecipe(new ItemStack(ModItems.ironGrindstone), "ABA", "BCB", "ABA", 'A', Items.iron_ingot, 'B', Blocks.iron_block, 'C', ModItems.stoneGrindstone);

GameRegistry.addRecipe(new ItemStack(ModItems.goldGrindstone), "ABA", "BCB", "ABA", 'A', Items.gold_ingot, 'B', Blocks.gold_block, 'C', ModItems.ironGrindstone);

GameRegistry.addRecipe(new ItemStack(ModItems.diamondGrindstone), "ABA", "BCB", "ABA", 'A', Items.diamond, 'B', Blocks.diamond_block, 'C', ModItems.goldGrindstone);

//Shapeless Recipes

//Blocks

GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.mixedDirt), new Object[] {Blocks.gravel,Blocks.dirt});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodGrindstone,ModItems.woodBroadsword});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.stoneGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.ironGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.goldGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.diamondGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.stoneGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.ironGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.goldGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.diamondGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.ironGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.goldGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.diamondGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedGoldBroadsword), new Object[] {ModItems.goldBroadsword,ModItems.goldGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedGoldBroadsword), new Object[] {ModItems.goldBroadsword,ModItems.diamondGrindstone});

GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedDiamondBroadsword), new Object[] {ModItems.diamondBroadsword,ModItems.diamondGrindstone});

//Items

}

 

 

 

}

 

 

 

 

 

Thanks for the help guys, i am not going to be able to reply until tomorrow however and will check what you all have posted then. Again, thanks for the amazing assistance.

 

 

 

 

 

Link to comment
Share on other sites

i checked with forge 1448 , same crash though. I use a single ModCrafting class for recipe registering.

 

My ItemModSword Class Is:

package com.SackboyAlamode.Industrialization.item;

import com.SackboyAlamode.Industrialization.Main;

import net.minecraft.item.ItemSword;

public class ItemModSword extends ItemSword{

public ItemModSword(String unlocalizedName, ToolMaterial material) {
	super(material);
	this.setUnlocalizedName(unlocalizedName);
	this.setTextureName(Main.MODID + ":" + unlocalizedName);

}

}


My ModItems Class is:

package com.SackboyAlamode.Industrialization.item;



import com.SackboyAlamode.Industrialization.Main;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.common.util.EnumHelper;

public final class ModItems {
//Materials
//("MaterialName", harvestLevel, durability, miningSpeed, damageVsEntites, enchantability);
	public static ToolMaterial AWOOD = EnumHelper.addToolMaterial("AWOOD", 2, 512, 7.0F, 1.0F, 1);
	public static ToolMaterial ASTONE = EnumHelper.addToolMaterial("ASTONE", 2, 1024, 7.0F, 2.0F, 5);
	public static ToolMaterial AIRON = EnumHelper.addToolMaterial("AIRON", 2, 2048, 7.0F, 4.0F, 15);
	public static ToolMaterial AGOLD = EnumHelper.addToolMaterial("AGOLD", 2, 256, 7.0F, 3.0F, 30);
	public static ToolMaterial ADIAMOND = EnumHelper.addToolMaterial("ADIAMOND", 2, 8192, 6.0F, 6.0F, 10);
	public static ToolMaterial BWOOD = EnumHelper.addToolMaterial("BWOOD", 2, 512, 7.0F, 1.5F, 1);
	public static ToolMaterial BSTONE = EnumHelper.addToolMaterial("BSTONE", 2, 1024, 7.0F, 2.5F, 5);
	public static ToolMaterial BIRON = EnumHelper.addToolMaterial("BIRON", 2, 2048, 7.0F, 7.0F, 15);
	public static ToolMaterial BGOLD = EnumHelper.addToolMaterial("BGOLD", 2, 256, 7.0F, 5.0F, 30);
	public static ToolMaterial BDIAMOND = EnumHelper.addToolMaterial("BDIAMOND", 2, 8192, 11.0F, 11.0F, 10);

	//Items
	public static Item woodGrindstone;
	public static Item stoneGrindstone;
	public static Item ironGrindstone;
	public static Item goldGrindstone;
	public static Item diamondGrindstone;
	public static Item woodBroadsword;
	public static Item stoneBroadsword;
	public static Item ironBroadsword;
	public static Item goldBroadsword;
	public static Item diamondBroadsword;
	public static Item sharpenedWoodBroadsword;
	public static Item sharpenedStoneBroadsword;
	public static Item sharpenedIronBroadsword;
	public static Item sharpenedGoldBroadsword;
	public static Item sharpenedDiamondBroadsword;

public static final void init() {
	//Creating Items
		woodGrindstone = new Item().setUnlocalizedName("woodGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":woodGrindstone");
		stoneGrindstone = new Item().setUnlocalizedName("stoneGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":stoneGrindstone");
		ironGrindstone = new Item().setUnlocalizedName("ironGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":ironGrindstone");
		goldGrindstone = new Item().setUnlocalizedName("goldGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":goldGrindstone");
		diamondGrindstone = new Item().setUnlocalizedName("diamondGrindstone").setCreativeTab(CreativeTabs.tabTools).setTextureName(Main.MODID + ":diamondGrindstone");
		woodBroadsword = new Item().setUnlocalizedName("woodBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":woodBroadsword");
		stoneBroadsword = new Item().setUnlocalizedName("stoneBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":stoneBroadsword");
		ironBroadsword = new Item().setUnlocalizedName("ironBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":ironBroadsword");
		goldBroadsword = new Item().setUnlocalizedName("goldBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":goldBroadsword");
		diamondBroadsword = new Item().setUnlocalizedName("diamondBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":diamondBroadsword");
		sharpenedWoodBroadsword = new Item().setUnlocalizedName("sharpenedWoodBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedWoodBroadsword");
		sharpenedStoneBroadsword = new Item().setUnlocalizedName("sharpenedStoneBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedStoneBroadsword");
		sharpenedIronBroadsword = new Item().setUnlocalizedName("sharpenedIronBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedIronBroadsword");
		sharpenedGoldBroadsword = new Item().setUnlocalizedName("sharpenedGoldBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedGoldBroadsword");
		sharpenedDiamondBroadsword = new Item().setUnlocalizedName("sharpenedDiamondBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":sharpenedDiamondBroadsword");
	//Registering Items
		GameRegistry.registerItem(new ItemModSword("woodBroadsword", AWOOD), "woodBroadsword");
		GameRegistry.registerItem(new ItemModSword("stoneBroadsword", ASTONE), "stoneBroadsword");
		GameRegistry.registerItem(new ItemModSword("ironBroadsword", AIRON), "ironBroadsword");
		GameRegistry.registerItem(new ItemModSword("goldBroadsword", AGOLD), "goldBroadsword");
		GameRegistry.registerItem(new ItemModSword("diamondBroadsword", ADIAMOND), "diamondBroadsword");
		GameRegistry.registerItem(new ItemModSword("sharpenedWoodBroadsword", BWOOD), "sharpenedWoodBroadsword");
		GameRegistry.registerItem(new ItemModSword("sharpenedStoneBroadsword", BSTONE), "sharpenedStoneBroadsword");
		GameRegistry.registerItem(new ItemModSword("sharpenedIronBroadsword", BIRON), "sharpenedIronBroadsword");
		GameRegistry.registerItem(new ItemModSword("sharpenedGoldBroadsword", BGOLD), "sharpenedGoldBroadsword");
		GameRegistry.registerItem(new ItemModSword("sharpenedDiamondBroadsword", BDIAMOND), "sharpenedDiamondBroadsword");
		GameRegistry.registerItem(woodGrindstone, "woodGrindstone");
		GameRegistry.registerItem(stoneGrindstone, "stoneGrindstone");
		GameRegistry.registerItem(ironGrindstone, "ironGrindstone");
		GameRegistry.registerItem(goldGrindstone, "goldGrindstone");
		GameRegistry.registerItem(diamondGrindstone, "diamondGrindstone");
}

}

My ModCrafting Class is:

package com.SackboyAlamode.Industrialization.crafting;

import com.SackboyAlamode.Industrialization.block.ModBlocks;
import com.SackboyAlamode.Industrialization.item.ModItems;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;


public class ModCrafting {
public static final void init() {
//Recipes
	//Blocks
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedWood), "ABA", "BAB", "ABA", 'A', Blocks.log, 'B', Blocks.planks);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedStone), "ABA", "BAB", "ABA", 'A', Blocks.stone, 'B', Blocks.cobblestone);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedSand), "ABA", "BAB", "ABA", 'A', Blocks.sand, 'B', Blocks.sandstone);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedDirt), "ABA", "BAB", "ABA", 'A', Blocks.dirt, 'B', ModBlocks.mixedDirt);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedGravel), "ABA", "BAB", "ABA", 'A', Blocks.gravel, 'B', Blocks.cobblestone);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.compressedCobblestone), "ABA", "BAB", "ABA", 'A', Blocks.cobblestone, 'B', Blocks.stone);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.lantern), "ABA", "BCB", "ABA", 'A', Blocks.planks, 'B', Items.paper, 'C', Blocks.torch);
		GameRegistry.addRecipe(new ItemStack(ModBlocks.paperWrappedPlanks), "AAA", "ABA", "AAA", 'A', Items.paper, 'B', Blocks.planks);
	//Items
		GameRegistry.addRecipe(new ItemStack(ModItems.woodBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Blocks.planks, 'A', ModBlocks.compressedWood, 'D', Items.stick);
		GameRegistry.addRecipe(new ItemStack(ModItems.stoneBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Blocks.stone, 'A', ModBlocks.compressedStone, 'D', Items.stick);
		GameRegistry.addRecipe(new ItemStack(ModItems.ironBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.iron_ingot, 'A', Blocks.iron_block, 'D', Items.stick);
		GameRegistry.addRecipe(new ItemStack(ModItems.goldBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.gold_ingot, 'A', Blocks.gold_block, 'D', Items.stick);
		GameRegistry.addRecipe(new ItemStack(ModItems.diamondBroadsword), "CBA", "BAB", "DBC", 'C', Items.string, 'B', Items.diamond, 'A', Blocks.diamond_block, 'D', Items.stick);
		GameRegistry.addRecipe(new ItemStack(ModItems.woodGrindstone), "ABA", "B B", "ABA", 'A', Blocks.planks, 'B', ModBlocks.compressedWood);
		GameRegistry.addRecipe(new ItemStack(ModItems.stoneGrindstone), "ABA", "BCB", "ABA", 'A', Blocks.stone, 'B', ModBlocks.compressedStone, 'C', ModItems.woodGrindstone);
		GameRegistry.addRecipe(new ItemStack(ModItems.ironGrindstone), "ABA", "BCB", "ABA", 'A', Items.iron_ingot, 'B', Blocks.iron_block, 'C', ModItems.stoneGrindstone);
		GameRegistry.addRecipe(new ItemStack(ModItems.goldGrindstone), "ABA", "BCB", "ABA", 'A', Items.gold_ingot, 'B', Blocks.gold_block, 'C', ModItems.ironGrindstone);
		GameRegistry.addRecipe(new ItemStack(ModItems.diamondGrindstone), "ABA", "BCB", "ABA", 'A', Items.diamond, 'B', Blocks.diamond_block, 'C', ModItems.goldGrindstone);
//Shapeless Recipes
	//Blocks
		GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.mixedDirt), new Object[] {Blocks.gravel,Blocks.dirt});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodGrindstone,ModItems.woodBroadsword});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.stoneGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.ironGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.goldGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedWoodBroadsword), new Object[] {ModItems.woodBroadsword,ModItems.diamondGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.stoneGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.ironGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.goldGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedStoneBroadsword), new Object[] {ModItems.stoneBroadsword,ModItems.diamondGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.ironGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.goldGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedIronBroadsword), new Object[] {ModItems.ironBroadsword,ModItems.diamondGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedGoldBroadsword), new Object[] {ModItems.goldBroadsword,ModItems.goldGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedGoldBroadsword), new Object[] {ModItems.goldBroadsword,ModItems.diamondGrindstone});
		GameRegistry.addShapelessRecipe(new ItemStack(ModItems.sharpenedDiamondBroadsword), new Object[] {ModItems.diamondBroadsword,ModItems.diamondGrindstone});
	//Items
}



}

 

 

 

 

Thanks for the help guys, i am not going to be able to reply until tomorrow however and will check what you all have posted then. Again, thanks for the amazing assistance.

 

Firstly,

 works wonders. 

 

Secondly, none of the sword crafting recipes work?

 

 

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Link to comment
Share on other sites

My crafting recipies are called in the preinitilization, and my items/blocks are both called in the initilization. I use proxies, if that makes a difference, the crafting recipies and the blocks/items being called in the common proxy. None of the sword crafting recipies work, all resulting in the same crash. It doesnt matter if you shift click the items from the crafting bench or normal click it, same crash in both. I was having trouble launching my game, i cant specifically remember the crash, but the fix was adding this code to my items class. I added it to all my sword types, respecive names changed of course.

 

stoneBroadsword = new Item().setUnlocalizedName("stoneBroadsword").setCreativeTab(CreativeTabs.tabCombat).setTextureName(Main.MODID + ":stoneBroadsword");

 

And i am not sure that it doesnt some how clash with this code, also in my items class

 

GameRegistry.registerItem(new ItemModSword("stoneBroadsword", ASTONE), "stoneBroadsword");

 

 

 

Sorry about the code, didnt know how to use


Link to comment
Share on other sites

You are not registering the item instance you used in the recipe.

Having the same name isn't going to magically link the instances.

Here the items used in recipes are of Item type, while the items added in registry are of ItemModSword type.

Solve the inconsistency.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello. I've been having a problem when launching minecraft forge. It just doesn't open the game, and leaves me with this "(exit code 1)" error. Both regular and optifine versions of minecraft launch just fine, tried both with 1.18.2 and 1.20.1. I can assure that my drivers are updated so that can't be it, and i've tried using Java 17, 18 and 21 to no avail. Even with no mods installed, the thing won't launch. I'll leave the log here, although it's in spanish: https://jmp.sh/s/FPqGBSi30fzKJDt2M1gc My specs are this: Ryzen 3 4100 || Radeon R9 280x || 16gb ram || Windows 10 I'd appreciate any help, thank you in advance.
    • Hey, Me and my friends decided to start up a Server with "a few" mods, the last few days everything went well we used all the items we wanted. Now our Game crashes the moment we touch a Lava Bucket inside our Inventory. It just instantly closes and gives me an "Alc Cleanup"  Crash screen (Using GDLauncher). I honestly dont have a clue how to resolve this error. If anyone could help id really appreciate it, I speak German and Englisch so you can choose whatever you speak more fluently. Thanks in Advance. Plus I dont know how to link my Crash Report help for that would be nice too whoops
    • I hosted a minecraft server and I modded it, and there is always an error on the console which closes the server. If someone knows how to repair it, it would be amazing. Thank you. I paste the crash report down here: ---- Minecraft Crash Report ---- WARNING: coremods are present:   llibrary (llibrary-core-1.0.11-1.12.2.jar)   WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)   AstralCore (astralsorcery-1.12.2-1.10.27.jar)   CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)   SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)   ForgelinPlugin (Forgelin-1.8.4.jar)   midnight (themidnight-0.3.5.jar)   FutureMC (Future-MC-0.2.19.jar)   SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)   Backpacked (backpacked-1.4.3-1.12.2.jar)   LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar) Contact their authors BEFORE contacting forge // There are four lights! Time: 3/28/24 12:17 PM Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:89)     at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:612)     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)     at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98)     at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)     at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)     at java.lang.Class.privateGetPublicMethods(Class.java:2902)     at java.lang.Class.getMethods(Class.java:1615)     at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:82)     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:82)     ... 31 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.multiplayer.WorldClient     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)     ... 37 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@4e558728 from coremod FMLCorePlugin     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:260)     at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)     ... 39 more Caused by: java.lang.RuntimeException: Attempted to load class bsb for invalid side SERVER     at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62)     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:256)     ... 41 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Linux (amd64) version 5.10.0-28-cloud-amd64     Java Version: 1.8.0_382, Temurin     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Temurin     Memory: 948745536 bytes (904 MB) / 1564999680 bytes (1492 MB) up to 7635730432 bytes (7282 MB)     JVM Flags: 2 total; -Xmx8192M -Xms256M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2860 63 mods loaded, 63 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                 | Version                 | Source                                                | Signature                                |     |:----- |:------------------ |:----------------------- |:----------------------------------------------------- |:---------------------------------------- |     | LC    | minecraft          | 1.12.2                  | minecraft.jar                                         | None                                     |     | LC    | mcp                | 9.42                    | minecraft.jar                                         | None                                     |     | LC    | FML                | 8.0.99.99               | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | forge              | 14.23.5.2860            | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | creativecoredummy  | 1.0.0                   | minecraft.jar                                         | None                                     |     | LC    | backpacked         | 1.4.2                   | backpacked-1.4.3-1.12.2.jar                           | None                                     |     | LC    | itemblacklist      | 1.4.3                   | ItemBlacklist-1.4.3.jar                               | None                                     |     | LC    | securitycraft      | v1.9.8                  | [1.12.2] SecurityCraft v1.9.8.jar                     | None                                     |     | LC    | aiimprovements     | 0.0.1.3                 | AIImprovements-1.12-0.0.1b3.jar                       | None                                     |     | LC    | jei                | 4.16.1.301              | jei_1.12.2-4.16.1.301.jar                             | None                                     |     | LC    | appleskin          | 1.0.14                  | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |     | LC    | baubles            | 1.5.2                   | Baubles-1.12-1.5.2.jar                                | None                                     |     | LC    | astralsorcery      | 1.10.27                 | astralsorcery-1.12.2-1.10.27.jar                      | a0f0b759d895c15ceb3e3bcb5f3c2db7c582edf0 |     | LC    | attributefix       | 1.0.12                  | AttributeFix-Forge-1.12.2-1.0.12.jar                  | None                                     |     | LC    | atum               | 2.0.20                  | Atum-1.12.2-2.0.20.jar                                | None                                     |     | LC    | bloodmoon          | 1.5.3                   | Bloodmoon-MC1.12.2-1.5.3.jar                          | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LC    | forgelin           | 1.8.4                   | Forgelin-1.8.4.jar                                    | None                                     |     | LC    | bountiful          | 2.2.2                   | Bountiful-2.2.2.jar                                   | None                                     |     | LC    | camera             | 1.0.10                  | camera-1.0.10.jar                                     | None                                     |     | LC    | chisel             | MC1.12.2-1.0.2.45       | Chisel-MC1.12.2-1.0.2.45.jar                          | None                                     |     | LC    | collective         | 3.0                     | collective-1.12.2-3.0.jar                             | None                                     |     | LC    | reskillable        | 1.12.2-1.13.0           | Reskillable-1.12.2-1.13.0.jar                         | None                                     |     | LC    | compatskills       | 1.12.2-1.17.0           | CompatSkills-1.12.2-1.17.0.jar                        | None                                     |     | LC    | creativecore       | 1.10.0                  | CreativeCore_v1.10.71_mc1.12.2.jar                    | None                                     |     | LC    | customnpcs         | 1.12                    | CustomNPCs_1.12.2-(05Jul20).jar                       | None                                     |     | LC    | darknesslib        | 1.1.2                   | DarknessLib-1.12.2-1.1.2.jar                          | 220f10d3a93b3ff5fbaa7434cc629d863d6751b9 |     | LC    | dungeonsmod        | @VERSION@               | DungeonsMod-1.12.2-1.0.8.jar                          | None                                     |     | LC    | enhancedvisuals    | 1.3.0                   | EnhancedVisuals_v1.4.4_mc1.12.2.jar                   | None                                     |     | LC    | extrautils2        | 1.0                     | extrautils2-1.12-1.9.9.jar                            | None                                     |     | LC    | futuremc           | 0.2.6                   | Future-MC-0.2.19.jar                                  | None                                     |     | LC    | geckolib3          | 3.0.30                  | geckolib-forge-1.12.2-3.0.31.jar                      | None                                     |     | LC    | gottschcore        | 1.15.1                  | GottschCore-mc1.12.2-f14.23.5.2859-v1.15.1.jar        | None                                     |     | LC    | hardcorerevival    | 1.2.0                   | HardcoreRevival_1.12.2-1.2.0.jar                      | None                                     |     | LC    | waila              | 1.8.26                  | Hwyla-1.8.26-B41_1.12.2.jar                           | None                                     |     | LE    | imsm               | 1.12                    | Instant Massive Structures Mod 1.12.2.jar             | None                                     |     | L     | journeymap         | 1.12.2-5.7.1p2          | journeymap-1.12.2-5.7.1p2.jar                         | None                                     |     | L     | mobsunscreen       | @version@               | mobsunscreen-1.12.2-3.1.5.jar                         | None                                     |     | L     | morpheus           | 1.12.2-3.5.106          | Morpheus-1.12.2-3.5.106.jar                           | None                                     |     | L     | llibrary           | 1.7.20                  | llibrary-1.7.20-1.12.2.jar                            | None                                     |     | L     | mowziesmobs        | 1.5.8                   | mowziesmobs-1.5.8.jar                                 | None                                     |     | L     | nocubessrparmory   | 3.0.0                   | NoCubes_SRP_Combat_Addon_3.0.0.jar                    | None                                     |     | L     | nocubessrpnests    | 3.0.0                   | NoCubes_SRP_Nests_Addon_3.0.0.jar                     | None                                     |     | L     | nocubessrpsurvival | 3.0.0                   | NoCubes_SRP_Survival_Addon_3.0.0.jar                  | None                                     |     | L     | nocubesrptweaks    | V4.1                    | nocubesrptweaks-V4.1.jar                              | None                                     |     | L     | patchouli          | 1.0-23.6                | Patchouli-1.0-23.6.jar                                | None                                     |     | L     | artifacts          | 1.1.2                   | RLArtifacts-1.1.2.jar                                 | None                                     |     | L     | rsgauges           | 1.2.8                   | rsgauges-1.12.2-1.2.8.jar                             | None                                     |     | L     | rustic             | 1.1.7                   | rustic-1.1.7.jar                                      | None                                     |     | L     | silentlib          | 3.0.13                  | SilentLib-1.12.2-3.0.14+168.jar                       | None                                     |     | L     | scalinghealth      | 1.3.37                  | ScalingHealth-1.12.2-1.3.42+147.jar                   | None                                     |     | L     | lteleporters       | 1.12.2-3.0.2            | simpleteleporters-1.12.2-3.0.2.jar                    | None                                     |     | L     | spartanshields     | 1.5.5                   | SpartanShields-1.12.2-1.5.5.jar                       | None                                     |     | L     | spartanweaponry    | 1.5.3                   | SpartanWeaponry-1.12.2-1.5.3.jar                      | None                                     |     | L     | srparasites        | 1.9.18                  | SRParasites-1.12.2v1.9.18.jar                         | None                                     |     | L     | treasure2          | 2.2.0                   | Treasure2-mc1.12.2-f14.23.5.2859-v2.2.1.jar           | None                                     |     | L     | treeharvester      | 4.0                     | treeharvester_1.12.2-4.0.jar                          | None                                     |     | L     | twilightforest     | 3.11.1021               | twilightforest-1.12.2-3.11.1021-universal.jar         | None                                     |     | L     | variedcommodities  | 1.12.2                  | VariedCommodities_1.12.2-(31Mar23).jar                | None                                     |     | L     | voicechat          | 1.12.2-2.4.32           | voicechat-forge-1.12.2-2.4.32.jar                     | None                                     |     | L     | wolfarmor          | 3.8.0                   | WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar | None                                     |     | L     | worldborder        | 2.3                     | worldborder_1.12.2-2.3.jar                            | None                                     |     | L     | midnight           | 0.3.5                   | themidnight-0.3.5.jar                                 | None                                     |     | L     | structurize        | 1.12.2-0.10.277-RELEASE | structurize-1.12.2-0.10.277-RELEASE.jar               | None                                     |     Loaded coremods (and transformers):  llibrary (llibrary-core-1.0.11-1.12.2.jar)   net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer   net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)    AstralCore (astralsorcery-1.12.2-1.10.27.jar)    CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)    SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)    ForgelinPlugin (Forgelin-1.8.4.jar)    midnight (themidnight-0.3.5.jar)   com.mushroom.midnight.core.transformer.MidnightClassTransformer FutureMC (Future-MC-0.2.19.jar)   thedarkcolour.futuremc.asm.CoreTransformer SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)    Backpacked (backpacked-1.4.3-1.12.2.jar)   com.mrcrayfish.backpacked.asm.BackpackedTransformer LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   codersafterdark.reskillable.base.asm.ClassTransformer LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar)   lumien.bloodmoon.asm.ClassTransformer     Profiler Position: N/A (disabled)     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)
    • When i add mods like falling leaves, visuality and kappas shaders, even if i restart Minecraft they dont show up in the mods menu and they dont work
    • Delete the forge-client.toml file in your config folder  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.