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 want to add more memory to the RunClient gradle task. I added VM options into the configurations and put in "-Xms256m -Xmx2048m" but it doesn't work.
    • Hello, I'm trying to modify the effects of native enchantments for bows and arrows in Minecraft. After using a decompilation tool, I found that the specific implementations of native bow and arrow enchantments (including `ArrowDamageEnchantment`, `ArrowKnockbackEnchantment`, `ArrowFireEnchantment`, `ArrowInfiniteEnchantment`, `ArrowPiercingEnchantment`) do not contain any information about the enchantment effects (such as the `getDamageProtection` function for `ProtectionEnchantment`, `getDamageBonus` function for `DamageEnchantment`, etc.). Upon searching for the base class of arrows, `AbstractArrow`, I found a function named setEnchantmentEffectsFromEntity`, which seems to be used to retrieve the enchantment levels of the tool held by a `LivingEntity` and calculate the specific values of the enchantment effects. However, after testing with the following code, I found that this function is not being called:   @Mixin(AbstractArrow.class) public class ModifyArrowEnchantmentEffects {     private static final Logger LOGGER = LogUtils.getLogger();     @Inject(         method = "setEnchantmentEffectsFromEntity",         at = @At("HEAD")     )     private void logArrowEnchantmentEffectsFromEntity(CallbackInfo ci) {         LOGGER.info("Arrow enchantment effects from entity");     } }   Upon further investigation, I found that within the onHitEntity method, there are several lines of code:               if (!this.level().isClientSide && entity1 instanceof LivingEntity) {                EnchantmentHelper.doPostHurtEffects(livingentity, entity1);                EnchantmentHelper.doPostDamageEffects((LivingEntity)entity1, livingentity);             }   These lines of code actually call the doPostHurt and doPostAttack methods of each enchantment in the enchantment list. However, this leads back to the issue because native bow and arrow enchantments do not implement these functions. Although their base class defines the functions, they are empty. At this point, I'm completely stumped and seeking assistance. Thank you.
    • I have been trying to make a server with forge but I keep running into an issue. I have jdk 22 installed as well as Java 8. here is the debug file  
    • it crashed again     What the console says : [00:02:03] [Server thread/INFO] [Easy NPC/]: [EntityManager] Server started! [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {iceandfire:fire_dragon_roost=true, iceandfire:fire_lily=true, iceandfire:spawn_dragon_skeleton_fire=true, iceandfire:lightning_dragon_roost=true, iceandfire:spawn_dragon_skeleton_lightning=true, iceandfire:ice_dragon_roost=true, iceandfire:ice_dragon_cave=true, iceandfire:lightning_dragon_cave=true, iceandfire:cyclops_cave=true, iceandfire:spawn_wandering_cyclops=true, iceandfire:spawn_sea_serpent=true, iceandfire:frost_lily=true, iceandfire:hydra_cave=true, iceandfire:lightning_lily=true, iceandfireixie_village=true, iceandfire:myrmex_hive_jungle=true, iceandfire:myrmex_hive_desert=true, iceandfire:silver_ore=true, iceandfire:siren_island=true, iceandfire:spawn_dragon_skeleton_ice=true, iceandfire:spawn_stymphalian_bird=true, iceandfire:fire_dragon_cave=true, iceandfire:sapphire_ore=true, iceandfire:spawn_hippocampus=true, iceandfire:spawn_death_worm=true} [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {TROLL_S=true, HIPPOGRYPH=true, AMPHITHERE=true, COCKATRICE=true, TROLL_M=true, DREAD_LICH=true, TROLL_F=true} [00:02:03] [Server thread/INFO] [ne.be.lo.WeaponRegistry/]: Encoded Weapon Attribute registry size (with package overhead): 41976 bytes (in 5 string chunks with the size of 10000) [00:02:03] [Server thread/INFO] [patchouli/]: Sending reload packet to clients [00:02:03] [Server thread/WARN] [voicechat/]: [voicechat] Running in offline mode - Voice chat encryption is not secure! [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Using server-ip as bind address: 0.0.0.0 [00:02:03] [Server thread/WARN] [ModernFix/]: Dedicated server took 22.521 seconds to load [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Voice chat server started at 0.0.0.0:25565 [00:02:03] [Server thread/WARN] [minecraft/SynchedEntityData]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager [00:02:03] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@2941ffd5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 0 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 1 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 2 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 3 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 4 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 6 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 7 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 8 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 9 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 10 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 11 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 12 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 13 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 14 [00:02:19] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@ebc7ef2 [00:02:19] [Server thread/INFO] [minecraft/PlayerList]: ZacAdos[/90.2.17.162:49242] logged in with entity id 1062 at (-1848.6727005281205, 221.0, -3054.2468255848935) [00:02:19] [Server thread/ERROR] [ModernFix/]: Skipping entity ID sync for com.talhanation.smallships.world.entity.ship.Ship: java.lang.NoClassDefFoundError: net/minecraft/client/CameraType [00:02:19] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos joined the game [00:02:19] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:19] [Server thread/INFO] [se.mi.te.da.DataManager/]: Sending data to client: ZacAdos [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Received secret request of - Gloop - ZacAdos (17) [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Sent secret to - Gloop - ZacAdos [00:02:21] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully validated connection of player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Player - Gloop - ZacAdos (cc56befd-d376-3526-a760-340713c478bd) successfully connected to voice chat stop [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping the server [00:02:34] [Server thread/INFO] [mo.pl.ar.ArmourersWorkshop/]: stop local service [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [00:02:34] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: ZacAdos lost connection: Server closed [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos left the game [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (world): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage: All dimensions are saved [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopping IO worker... [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopped IO worker! [00:02:34] [Server thread/INFO] [Calio/]: Removing Dynamic Registries for: net.minecraft.server.dedicated.DedicatedServer@7dc879e1 [MineStrator Daemon]: Checking server disk space usage, this could take a few seconds... [MineStrator Daemon]: Updating process configuration files... [MineStrator Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... [MineStrator Daemon]: Pulling Docker container image, this could take a few minutes to complete... [MineStrator Daemon]: Finished pulling Docker container image container@pterodactyl~ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing) container@pterodactyl~ java -Xms128M -Xmx6302M -Dterminal.jline=false -Dterminal.ansi=true -Djline.terminal=jline.UnsupportedTerminal -p libraries/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar:libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/net/minecraftforge/JarJarFileSystems/0.3.16/JarJarFileSystems-0.3.16.jar --add-modules ALL-MODULE-PATH --add-opens java.base/java.util.jar=cpw.mods.securejarhandler --add-opens java.base/java.lang.invoke=cpw.mods.securejarhandler --add-exports java.base/sun.security.util=cpw.mods.securejarhandler --add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming -Djava.net.preferIPv6Addresses=system -DignoreList=bootstraplauncher-1.1.2.jar,securejarhandler-2.1.4.jar,asm-commons-9.5.jar,asm-util-9.5.jar,asm-analysis-9.5.jar,asm-tree-9.5.jar,asm-9.5.jar,JarJarFileSystems-0.3.16.jar -DlibraryDirectory=libraries -DlegacyClassPath=libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar:libraries/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar:libraries/net/minecraftforge/eventbus/6.0.3/eventbus-6.0.3.jar:libraries/net/minecraftforge/forgespi/6.0.0/forgespi-6.0.0.jar:libraries/net/minecraftforge/coremods/5.0.1/coremods-5.0.1.jar:libraries/cpw/mods/modlauncher/10.0.8/modlauncher-10.0.8.jar:libraries/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar:libraries/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar:libraries/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar:libraries/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar:libraries/net/jodah/typetools/0.8.3/typetools-0.8.3.jar:libraries/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar:libraries/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar:libraries/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar:libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar:libraries/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar:libraries/net/minecraftforge/JarJarSelector/0.3.16/JarJarSelector-0.3.16.jar:libraries/net/minecraftforge/JarJarMetadata/0.3.16/JarJarMetadata-0.3.16.jar:libraries/net/minecraftforge/fmlloader/1.19.2-43.3.0/fmlloader-1.19.2-43.3.0.jar:libraries/net/minecraft/server/1.19.2-20220805.130853/server-1.19.2-20220805.130853-extra.jar:libraries/com/github/oshi/oshi-core/5.8.5/oshi-core-5.8.5.jar:libraries/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar:libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:libraries/com/mojang/authlib/3.11.49/authlib-3.11.49.jar:libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar:libraries/com/mojang/datafixerupper/5.0.28/datafixerupper-5.0.28.jar:libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar:libraries/com/mojang/logging/1.0.0/logging-1.0.0.jar:libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:libraries/io/netty/netty-buffer/4.1.77.Final/netty-buffer-4.1.77.Final.jar:libraries/io/netty/netty-codec/4.1.77.Final/netty-codec-4.1.77.Final.jar:libraries/io/netty/netty-common/4.1.77.Final/netty-common-4.1.77.Final.jar:libraries/io/netty/netty-handler/4.1.77.Final/netty-handler-4.1.77.Final.jar:libraries/io/netty/netty-resolver/4.1.77.Final/netty-resolver-4.1.77.Final.jar:libraries/io/netty/netty-transport/4.1.77.Final/netty-transport-4.1.77.Final.jar:libraries/io/netty/netty-transport-classes-epoll/4.1.77.Final/netty-transport-classes-epoll-4.1.77.Final.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-x86_64.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-aarch_64.jar:libraries/io/netty/netty-transport-native-unix-common/4.1.77.Final/netty-transport-native-unix-common-4.1.77.Final.jar:libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar:libraries/net/java/dev/jna/jna/5.10.0/jna-5.10.0.jar:libraries/net/java/dev/jna/jna-platform/5.10.0/jna-platform-5.10.0.jar:libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:libraries/org/apache/logging/log4j/log4j-api/2.17.0/log4j-api-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-core/2.17.0/log4j-core-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.0/log4j-slf4j18-impl-2.17.0.jar:libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar cpw.mods.bootstraplauncher.BootstrapLauncher --launchTarget forgeserver --fml.forgeVersion 43.3.0 --fml.mcVersion 1.19.2 --fml.forgeGroup net.minecraftforge --fml.mcpVersion 20220805.130853 [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [00:02:43] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [00:02:44] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection Latest log [29Mar2024 00:02:42.803] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [29Mar2024 00:02:42.805] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [29Mar2024 00:02:43.548] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [29Mar2024 00:02:43.876] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.878] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:44.033] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [29Mar2024 00:02:44.034] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [29Mar2024 00:02:44.034] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection
  • Topics

×
×
  • Create New...

Important Information

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