Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.10] Crafting code help


Xetapro12
 Share

Recommended Posts

Ehm how can i use thsi

 

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldSword, 1), "S", "D", 'S', BetterArmourAndTools.emeraldSword, 'E', Items.dye, 9);

 

i want to create a pink sword with dye 9 for pink

but i crash when this code in there

 

 

[07:18:51] [main/INFO] [GradleStart]: Extra: []

[07:18:51] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, C:/Users/Marius/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[07:18:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[07:18:51] [main/INFO] [FML]: Forge Mod Loader version 7.10.97.1343 for Minecraft 1.7.10 loading

[07:18:51] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_76, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre7

[07:18:51] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[07:18:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[07:18:51] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[07:18:51] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[07:18:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:18:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[07:18:51] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[07:18:52] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[07:18:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[07:18:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[07:18:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[07:18:52] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[07:18:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[07:18:52] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[07:18:53] [main/INFO]: Setting user: Player703

[07:18:53] [Client thread/INFO]: LWJGL Version: 2.9.1

[07:18:54] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[07:18:54] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1343 Initialized

[07:18:54] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[07:18:54] [Client thread/INFO] [FML]: Preloading CrashReport classes

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.World$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.World$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.World$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.World$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.chunk.Chunk$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.crash.CrashReportCategory$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.entity.Entity$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.entity.Entity$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.entity.EntityTracker$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.layer.GenLayer$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.layer.GenLayer$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.entity.player.InventoryPlayer$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.gen.structure.MapGenStructure$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.server.MinecraftServer$5

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.nbt.NBTTagCompound$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.nbt.NBTTagCompound$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.network.NetHandlerPlayServer$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.network.NetworkSystem$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.tileentity.TileEntity$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$5

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$6

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$7

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$8

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.world.storage.WorldInfo$9

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$5

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$6

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$7

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$8

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$9

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$10

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$11

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$12

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$13

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$14

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.Minecraft$15

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.multiplayer.WorldClient$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.particle,EffectRenderer$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.EntityRenderer$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.server.integrated.IntegratedServer$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.server.integrated.IntegratedServer$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.RenderGlobal$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$3

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.entity.RenderItem$4

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureAtlasSprite$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureManager$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$1

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$2

[07:18:54] [Client thread/INFO] [FML]: net.minecraft.client.renderer.texture.TextureMap$3

[07:18:54] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[07:18:54] [Client thread/INFO] [FML]: Searching C:\Users\Marius\Desktop\Tutorial\eclipse\mods for mods

[07:18:56] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[07:18:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, BetterArmourAndTools] at CLIENT

[07:18:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, BetterArmourAndTools] at SERVER

[07:18:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:BetterArmourAndTools

[07:18:56] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[07:18:56] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[07:18:56] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[07:18:56] [Client thread/INFO] [FML]: Applying holder lookups

[07:18:56] [Client thread/INFO] [FML]: Holder lookups applied

[07:18:56] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[07:18:56] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{7.10.97.1343} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1343} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar) Unloaded->Constructed->Pre-initialized

BetterArmourAndTools{1.0} [betterArmourAndTools] (bin) Unloaded->Constructed->Errored

[07:18:56] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[07:18:56] [Client thread/ERROR] [FML]: Caught exception from BetterArmourAndTools

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Character

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209) ~[forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar:?]

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244) ~[forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar:?]

at com.BetterArmourAndTools.main.Crafting.addCraftingRecipes(Crafting.java:71) ~[bin/:?]

at com.BetterArmourAndTools.main.Crafting.mainRegistry(Crafting.java:15) ~[bin/:?]

at com.BetterArmourAndTools.main.mainRegistry.PreLoad(mainRegistry.java:53) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_76]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_76]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_76]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_76]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_76]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_76]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_76]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_76]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_76]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]

at GradleStart.main(Unknown Source) [start/:?]

[07:18:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// This doesn't make any sense!

 

Time: 06.05.15 07:18

Description: Initializing game

 

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Character

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209)

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244)

at com.BetterArmourAndTools.main.Crafting.addCraftingRecipes(Crafting.java:71)

at com.BetterArmourAndTools.main.Crafting.mainRegistry(Crafting.java:15)

at com.BetterArmourAndTools.main.mainRegistry.PreLoad(mainRegistry.java:53)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:209)

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:244)

at com.BetterArmourAndTools.main.Crafting.addCraftingRecipes(Crafting.java:71)

at com.BetterArmourAndTools.main.Crafting.mainRegistry(Crafting.java:15)

at com.BetterArmourAndTools.main.mainRegistry.PreLoad(mainRegistry.java:53)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

 

-- Initialization --

Details:

Stacktrace:

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.7.0_76, Oracle Corporation

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

Memory: 1622855976 bytes (1547 MB) / 2027421696 bytes (1933 MB) up to 7270301696 bytes (6933 MB)

JVM Flags: 3 total; -Xincgc -Xmx7000M -Xms2000M

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.97.1343 Minecraft Forge 10.13.2.1343 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{7.10.97.1343} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1343} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1343-1.7.10.jar) Unloaded->Constructed->Pre-initialized

BetterArmourAndTools{1.0} [betterArmourAndTools] (bin) Unloaded->Constructed->Errored

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: GeForce GTX 780/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.52, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.

Anisotropic filtering is supported and maximum anisotropy is 16.

Shaders are available because OpenGL 2.1 is supported.

 

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Packs: []

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

[07:18:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Marius\Desktop\Tutorial\eclipse\.\crash-reports\crash-2015-05-06_07.18.56-client.txt

 

 

 

NEWB! in java im sorry :/

Link to comment
Share on other sites

For us to help you, you need to post your code as well.

 

There are lots of tutorials on recipes, such as: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/crafting-recipes/

 

But your error might be more of a Java mistake than recipe issue. So post your code.

 

this is my code duh!

 

here is more

 

 

//Emerald Tools

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldAxe, 1), "EE ", "ES ", " S ", 'E', Items.emerald, 'S', Items.stick);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldAxe, 1), " EE", " SE", " S ", 'E', Items.emerald, 'S', Items.stick);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldHoe, 1), "EE ", " S ", " S ", 'S', Items.stick, 'E', Items.emerald);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldHoe, 1), " EE", " S ", " S ", 'S', Items.stick, 'E', Items.emerald);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldPickaxe, 1), "EEE", " S ", " S ", 'S', Items.stick, 'E', Items.emerald);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldShovel, 1), "E", "S", "S", 'S', Items.stick, 'E', Items.emerald);

GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldSword, 1), "E", "E", "S", 'S', Items.stick, 'E', Items.emerald);

        GameRegistry.addShapedRecipe(new ItemStack(BetterArmourAndTools.emeraldSword, 1), "S", "D", 'S', BetterArmourAndTools.emeraldSword, 'E', Items.dye, 9);

 

 

 

this all work but the last one is fail

NEWB! in java im sorry :/

Link to comment
Share on other sites

For us to help you, you need to post your code as well.

 

There are lots of tutorials on recipes, such as: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/crafting-recipes/

 

But your error might be more of a Java mistake than recipe issue. So post your code.

 

this is my code duh!

 

*snip*

 

...where did you declare the 'D' charecter in the last one.

If my post helped you, please press that "Thank You"-button to show your appreciation.

 

Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding!

 

Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.

Link to comment
Share on other sites

you should really look on more tuts apperantly you dont understand how recipes work

I'm beginner in java and in minecraft modding.

Please be specific.

Any code examples are appreciated.

Sorry for my english i'm from Czech republic.

Please hit that thank you button if i helped :)

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • But Forge defiently glitch the Minecraft launcher. Ever since I had Forge. I couldn't access bedrock.
    • Sorry. I guess it's outside Forge than. The Xbox App isn't working. And I can only play only via Java.
    • Hello, I am trying to launch a mod pack i made for forge 1.12.2 but every time I launch the pack it fails with exit code 1.   crash log: https://pastebin.com/06SkS9CF debug log: https://pastebin.com/2k7jxBqb
    • I'm trying to sync player capabilities from server to client using packets. I've researched about this topic a lot, but man is it confusing. I'm trying to update the players data on the client side when the player logs in, respawns, and when they change dimension. I also do so with the event StartTracking. Here are those events: @SubscribeEvent public void onPlayerTracking(PlayerEvent.StartTracking event) { if(event.getTarget() instanceof PlayerEntity) { PlayerEntity player = (PlayerEntity)event.getTarget(); ServerPlayerEntity target = (ServerPlayerEntity)event.getPlayer(); if(!player.getCommandSenderWorld().isClientSide()) { player.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { CompoundNBT nbt = new CompoundNBT(); Capability<ITitanShifters> cap = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY; Capability.IStorage<ITitanShifters> storage = cap.getStorage(); nbt.put(cap.getName(), storage.writeNBT(cap, capability, TitanShiftersMod.direction)); ClientMessage message = new ClientMessage(nbt); TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.PLAYER.with(() -> target), message); }); } } } @SubscribeEvent public void onPlayerLogin(PlayerLoggedInEvent event) { ServerPlayerEntity player = (ServerPlayerEntity)event.getPlayer(); if(!player.getCommandSenderWorld().isClientSide()) { player.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { CompoundNBT nbt = new CompoundNBT(); Capability<ITitanShifters> cap = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY; Capability.IStorage<ITitanShifters> storage = cap.getStorage(); nbt.put(cap.getName(), storage.writeNBT(cap, capability, TitanShiftersMod.direction)); ClientMessage message = new ClientMessage(nbt); TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.PLAYER.with(() -> player), message); }); } } @SubscribeEvent public void onPlayerRespawn(PlayerRespawnEvent event) { ServerPlayerEntity player = (ServerPlayerEntity)event.getPlayer(); if(!player.getCommandSenderWorld().isClientSide()) { player.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { CompoundNBT nbt = new CompoundNBT(); Capability<ITitanShifters> cap = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY; Capability.IStorage<ITitanShifters> storage = cap.getStorage(); nbt.put(cap.getName(), storage.writeNBT(cap, capability, TitanShiftersMod.direction)); ClientMessage message = new ClientMessage(nbt); TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.PLAYER.with(() -> player), message); }); } } @SubscribeEvent public void onPlayerChangeDimension(PlayerChangedDimensionEvent event) { ServerPlayerEntity player = (ServerPlayerEntity)event.getPlayer(); if(!player.getCommandSenderWorld().isClientSide()) { player.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { CompoundNBT nbt = new CompoundNBT(); Capability<ITitanShifters> cap = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY; Capability.IStorage<ITitanShifters> storage = cap.getStorage(); nbt.put(cap.getName(), storage.writeNBT(cap, capability, TitanShiftersMod.direction)); ClientMessage message = new ClientMessage(nbt); TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.PLAYER.with(() -> player), message); }); } } Here is the packet I am sending: public class ClientMessage { private CompoundNBT data; public ClientMessage(CompoundNBT d) { data = d; } public static void encode(ClientMessage message, PacketBuffer buffer) { buffer.writeNbt(message.data); } public static ClientMessage decode(PacketBuffer buffer) { return new ClientMessage(buffer.readNbt()); } public static void handle(ClientMessage message, Supplier<NetworkEvent.Context> supplier) { NetworkEvent.Context context = supplier.get(); context.enqueueWork(() -> { if(context.getDirection().getReceptionSide().isClient() && context.getDirection().getOriginationSide().isServer()) { @SuppressWarnings("resource") ClientPlayerEntity p = Minecraft.getInstance().player; p.getEntity().getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { Capability.IStorage<ITitanShifters> storage = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY.getStorage(); storage.readNBT(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY, capability, TitanShiftersMod.direction, message.data); }); } }); context.setPacketHandled(true); } } Here is my network class: (I made two networks for sending packets to server and to client) public class TitanShiftersNetwork { private static int id = 0; public static final String NETWORK_VERSION = "0.1.0"; private static ResourceLocation loc = new ResourceLocation(TitanShiftersMod.MOD_ID, "network"); private static ResourceLocation Clientloc = new ResourceLocation(TitanShiftersMod.MOD_ID, "networkclient"); public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel(loc, () -> NETWORK_VERSION, version -> version.equals(NETWORK_VERSION), version -> version.equals(NETWORK_VERSION)); public static final SimpleChannel CLIENTCHANNEL = NetworkRegistry.ChannelBuilder.named(Clientloc).clientAcceptedVersions(s -> Objects.equals(s, "1")) .serverAcceptedVersions(s -> Objects.equals(s, "1")).networkProtocolVersion(() -> "1").simpleChannel(); public static void init() { CHANNEL.registerMessage(0, InputMessage.class, InputMessage::encode, InputMessage::decode, InputMessage::handle); CLIENTCHANNEL.messageBuilder(ClientMessage.class, id++).decoder(ClientMessage::decode).encoder(ClientMessage::encode).consumer(ClientMessage::handle).add(); } } Here is where the Init() method is being called: @SubscribeEvent public void commonSetup(final FMLCommonSetupEvent event) { TitanShiftersNetwork.init(); } And here is where I am trying to update the data on the client side: public static void InheritAttack(PlayerEntity player) { LazyOptional<ITitanShifters> titan = player.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY, TitanShiftersMod.direction); ITitanShifters titanShifter = titan.orElse(new TitanShifters()); TitanShiftersStats.setAttackTitan(true, player); pureUnshift(player); System.out.println(player.getScoreboardName() + " is pure titan: " + titanShifter.getPureTitan().toString()); ServerPlayerEntity p = (ServerPlayerEntity)player; if(!p.getCommandSenderWorld().isClientSide()) { p.getCapability(TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY).ifPresent(capability -> { CompoundNBT nbt = new CompoundNBT(); Capability<ITitanShifters> cap = TitanShiftersProvider.TITAN_SHIFTERS_CAPABILITY; Capability.IStorage<ITitanShifters> storage = cap.getStorage(); nbt.put(cap.getName(), storage.writeNBT(cap, capability, TitanShiftersMod.direction)); ClientMessage message = new ClientMessage(nbt); TitanShiftersNetwork.CLIENTCHANNEL.send(PacketDistributor.TRACKING_ENTITY_AND_SELF.with(() -> p), message); }); } System.out.println(player.getScoreboardName() + " has inherited the attack titan!"); } Rest of the code is here: https://github.com/TheDerpyParagon/TitanShiftersMod Any help is much appreciated!
    • When I downloaded forge and installed the client version it didn't make a extension so I went to the extension tab and tried to find it but it wasn't there I tried to download previous versions of it but they don't make an extension if someone could help that would be nice!
  • Topics

×
×
  • Create New...

Important Information

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