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

    • Currently, I'm trying to figure out how to read in data from a custom datapack.  The intention is to have the Item have a reference to this pack (IE "modname:material/materialname") as an NBT tag, and i would overwrite some use functions based off of that.  How should I go about reading in the data from the datapack?
    • Game version is 1.16.5, no mods were installed, using Java8 while it happened. And I have multiple different versions of Java including Java8, 11, 12, 13, 14, 15, 16, 18 were installed in my system, but there is only Java8's path inside the environment variable. Could them be one of the reasons? I'm new here so I almost don't know anythings about forge server. Please tell me if you need other files or logs. Following is the output inside CMD after I open the "start.bat": ECHO 处于打开状态。 C:\Users\30121\Desktop\N0u3_OL_server>"C:\Program Files\Java\jre1.8.0_321\bin\java.exe" -Xms2G -Xmx2G -jar forge-1.16.5-36.2.35.jar nogui 2022-05-25 12:42:52,637 main ERROR Error processing element Queue ([Appenders: null]): CLASS_NOT_FOUND 2022-05-25 12:42:52,670 main WARN Advanced terminal features are not available in this environment 2022-05-25 12:42:52,709 main ERROR Unable to locate appender "ServerGuiConsole" for logger config "root" [12:42:52] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.35, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui] [12:42:52] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_321 by Oracle Corporation [12:42:53] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust Exception in thread "main" [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.NoClassDefFoundError: com/google/common/base/Preconditions [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.offer(MixinTransformationHandler.java:67) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.asm.service.modlauncher.MixinServiceModLauncher.offer(MixinServiceModLauncher.java:162) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.asm.launch.MixinBootstrap.offerInternals(MixinBootstrap.java:227) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.asm.launch.MixinBootstrap.start(MixinBootstrap.java:148) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.asm.launch.MixinTransformationServiceAbstract.initialize(MixinTransformationServiceAbstract.java:88) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:68) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$7(TransformationServicesHandler.java:107) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.util.HashMap$Values.forEach(Unknown Source) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:107) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:59) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.Launcher.run(Launcher.java:76) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:49) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:46) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraftforge.server.ServerMain.main(ServerMain.java:43) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.net.URLClassLoader.findClass(Unknown Source) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.lang.ClassLoader.loadClass(Unknown Source) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.lang.ClassLoader.loadClass(Unknown Source) [12:42:53] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         ... 15 more C:\Users\30121\Desktop\N0u3_OL_server>pause 请按任意键继续. . .
    • Although I am not exactly sure how a try-finally block would help (i.e. what code I should run even if a runtime exception is thrown), I have made some progress. The custom mob renders, but it does not rotate--even when I apply rotations to it before calling render(). private static boolean renderingCustomEntity = false; private static CustomEntity customEntity; private static void initializeCustomEntityIfNull(LocalPlayer localPlayer) { if (customEntity == null) { customEntity = ModEntities.CUSTOM_ENTITY.get().create(localPlayer.clientLevel); } } @SubscribeEvent public static void replaceMobModel(RenderLivingEvent.Pre<LivingEntity, EntityModel<LivingEntity>> event) { LocalPlayer localPlayer = Minecraft.getInstance().player; if (localPlayer != null && event.getEntity() instanceof Mob mob) { try { if (!renderingCustomEntity) { renderingCustomEntity = true; event.setCanceled(true); initializeCustomEntityIfNull(localPlayer); // I try to apply rotations to the custom entity before it rendered, but it still does not rotate at all. customEntity.setYRot(mob.getYRot()); customEntity.setYHeadRot(mob.getYHeadRot()); customEntity.setPose(mob.getPose()); // For some reason, the custom mob did not render when I called EntityRenderDispatcher#render. // So I called render() from EntityRenderDispatcher#getRenderer instead. Minecraft.getInstance().getEntityRenderDispatcher().getRenderer(customEntity).render( customEntity, customEntity.getYRot(), event.getPartialTick(), event.getPoseStack(), event.getMultiBufferSource(), event.getPackedLight() ); } } finally { renderingCustomEntity = false; } } } What would I be missing? Thank you for the help.
    • https://ileanafilio.com/cong-ty-co-phan-dau-tu-lien-doanh-viet-anh/ https://ileanafilio.com/tu-dong-viet-hoa-dau-dong-trong-excel-2007/ https://ileanafilio.com/tai-bai-hat-yeu-lai-tu-dau/ https://ileanafilio.com/phan-ky-dau-tu-du-an/ https://ileanafilio.com/su-lua-chon-so-phan-tap-62/ https://ileanafilio.com/cong-ty-co-phan-thuong-mai-dau-tu-va-phat-trien-cong-nghe-sctt/ https://ileanafilio.com/karate-co-nguon-goc-tu-dau/ https://ileanafilio.com/tap-doan-co-khi-xay-dung-thuong-mai-dai-dung/ https://ileanafilio.com/cach-tinh-dau-tu-tai-san-co-dinh/
    • Yes, I used it. And when I deleted the unnecessary parts and ran it again, I got an error. Now when I repaired that error and ran it, it worked fine. Thanks!
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.