Jump to content

Recommended Posts

Posted

Ah, yep. There we go.

 

You create and register your blocks before you do items.  So when your try to reference

AEItems.resource_seed

and

AEItems.redstone_sprout

, both of those are null.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Ah, yep. There we go.

 

You create and register your blocks before you do items.  So when your try to reference

AEItems.resource_seed

and

AEItems.redstone_sprout

, both of those are null.

 

If I register my items first when I plant the seed my game crashes ...

Posted

Ah, yep. There we go.

 

You create and register your blocks before you do items.  So when your try to reference

AEItems.resource_seed

and

AEItems.redstone_sprout

, both of those are null.

 

If I register my items first when I plant the seed my game crashes ...

Posted

"It crashes" does not tell anything.

Logs. And new code.

New Common Proxy:

 

 

package com.agriculturalexpansion.proxy;

 

import com.agriculturalexpansion.extend.TestCrop;

import com.agriculturalexpansion.init.AEBlocks;

import com.agriculturalexpansion.init.AEItems;

import com.agriculturalexpansion.init.Recipes;

 

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

 

public class CommonProxy {

 

public void preInit(FMLPreInitializationEvent preEvent) {

 

AEItems.initItems();

AEBlocks.initBlocks();

 

Recipes.init();

 

}

 

public void init(FMLInitializationEvent event) {

 

}

 

public void postInit(FMLPostInitializationEvent postEvent) {

 

}

 

}

 

 

 

Crash Log:

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.9.4

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

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

Memory: 821222232 bytes (783 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9600 GT/PCIe/SSE2'

[18:33:52] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1909 Initialized

[18:33:52] [Client thread/INFO] [FML]: Replaced 232 ore recipes

[18:33:53] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[18:33:53] [Client thread/INFO] [FML]: Searching E:\Agricultural Expansion\run\mods for mods

[18:33:58] [Client thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load

[18:33:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, agriculturalexpansion, JEI, Waila] at CLIENT

[18:33:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, agriculturalexpansion, JEI, Waila] at SERVER

[18:34:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Agricultural Expansion, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:Waila

[18:34:00] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

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

[18:34:01] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json

[18:34:02] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: BETA_OUTDATED Target: 12.17.0.1922

[18:34:02] [Client thread/INFO] [FML]: Applying holder lookups

[18:34:02] [Client thread/INFO] [FML]: Holder lookups applied

[18:34:02] [Client thread/INFO] [FML]: Injecting itemstacks

[18:34:02] [Client thread/INFO] [FML]: Itemstack injection complete

[18:34:07] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:34:07] [Thread-8/INFO]: Initializing LWJGL OpenAL

[18:34:07] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:34:08] [Thread-8/INFO]: OpenAL initialized.

[18:34:08] [sound Library Loader/INFO]: Sound engine started

[18:34:19] [Client thread/INFO] [FML]: Max texture size: 8192

[18:34:19] [Client thread/INFO]: Created: 16x16 textures-atlas

[18:34:26] [Client thread/INFO] [FML]: Injecting itemstacks

[18:34:26] [Client thread/INFO] [FML]: Itemstack injection complete

[18:34:27] [Client thread/INFO] [sTDOUT]: [mcp.mobius.waila.gui.truetyper.TrueTypeFont:<init>:99]: TrueTypeFont loaded: java.awt.Font[family=Minecraftia,name=Minecraftia Regular,style=plain,size=14] - AntiAlias = true

[18:34:27] [Client thread/INFO] [Waila]: [Agriculture] Agriculture mod not found.

[18:34:27] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods

[18:34:27] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Agricultural Expansion, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:Waila

[18:34:32] [Client thread/INFO]: SoundSystem shutting down...

[18:34:32] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[18:34:32] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:34:32] [Thread-12/INFO]: Initializing LWJGL OpenAL

[18:34:32] [Thread-12/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:34:32] [Thread-12/INFO]: OpenAL initialized.

[18:34:33] [sound Library Loader/INFO]: Sound engine started

[18:34:39] [Client thread/INFO] [FML]: Max texture size: 8192

[18:34:40] [Client thread/INFO]: Created: 1024x512 textures-atlas

[18:34:48] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

[18:35:00] [server thread/INFO]: Starting integrated minecraft server version 1.9.4

[18:35:00] [server thread/INFO]: Generating keypair

[18:35:01] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agriculturalexpansion:Test

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agricultural expansion:ResourceCrop

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agricultural expansion:Test

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agriculturalexpansion:ResourceCrop

[18:35:01] [server thread/INFO] [FML]: Applying holder lookups

[18:35:01] [server thread/INFO] [FML]: Holder lookups applied

[18:35:01] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO]: Preparing start region for level 0

[18:35:03] [server thread/INFO]: Preparing spawn area: 21%

[18:35:03] [server thread/INFO]: Changing view distance to 12, from 10

[18:35:05] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[18:35:05] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[18:35:05] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 6 mods : [email protected],[email protected],agriculturalexpansion@alpha 1.0.3,[email protected],[email protected],[email protected]

[18:35:05] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[18:35:05] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[18:35:05] [server thread/INFO]: Player250[local:E:f06b95d7] logged in with entity id 15 at (935.3495444446633, 4.0, 980.0176250573738)

[18:35:05] [server thread/INFO]: Player250 joined the game

[18:35:05] [server thread/INFO] [Waila]: Player EntityPlayerMP['Player250'/15, l='New World', x=935.35, y=4.00, z=980.02] connected. Sending ping

[18:35:12] [server thread/INFO]: Saving and pausing game...

[18:35:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[18:35:13] [Client thread/INFO] [JEI]: Registered plugin: mezz.jei.plugins.vanilla.VanillaPlugin

[18:35:13] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[18:35:13] [server thread/INFO]: Saving chunks for level 'New World'/The End

[18:35:13] [Client thread/INFO] [JEI]: Registered plugin: mezz.jei.plugins.jei.JEIInternalPlugin

[18:35:14] [Netty Local Client IO #0/INFO] [Waila]: Received server authentication msg. Remote sync will be activated

[18:35:15] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@717760ed[id=c98187a9-e17b-3f48-8a33-882e62d18d19,name=Player250,properties={},legacy=false]

com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time

at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]

at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]

at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3041) [Minecraft.class:?]

at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_91]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]

[18:35:33] [server thread/FATAL]: Error executing task

java.util.concurrent.ExecutionException: java.lang.NullPointerException

at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_91]

at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_91]

at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:740) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:685) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) [integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:534) [MinecraftServer.class:?]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]

Caused by: java.lang.NullPointerException

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52) ~[itemSeeds.class:?]

at net.minecraft.block.Block.canSustainPlant(Block.java:1819) ~[block.class:?]

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31) ~[itemSeeds.class:?]

at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:734) ~[ForgeHooks.class:?]

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:156) ~[itemStack.class:?]

at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:498) ~[PlayerInteractionManager.class:?]

at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:707) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_91]

at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_91]

at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]

... 5 more

[18:35:34] [server thread/INFO]: Stopping server

[18:35:34] [server thread/INFO]: Saving players

[18:35:34] [server thread/INFO]: Saving worlds

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/The End

[18:35:34] [server thread/INFO] [FML]: Unloading dimension 0

[18:35:34] [server thread/INFO] [FML]: Unloading dimension -1

[18:35:34] [server thread/INFO] [FML]: Unloading dimension 1

[18:35:34] [server thread/INFO] [FML]: Applying holder lookups

[18:35:34] [server thread/INFO] [FML]: Holder lookups applied

[18:35:36] [Client thread/FATAL]: Unreported exception thrown!

java.lang.NullPointerException

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52) ~[itemSeeds.class:?]

at net.minecraft.block.Block.canSustainPlant(Block.java:1819) ~[block.class:?]

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31) ~[itemSeeds.class:?]

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157) ~[itemStack.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1843) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1117) ~[Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

[18:35:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: ---- Minecraft Crash Report ----

// My bad.

 

Time: 5/28/16 6:35 PM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52)

at net.minecraft.block.Block.canSustainPlant(Block.java:1819)

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31)

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157)

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476)

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600)

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271)

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055)

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

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

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

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

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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

 

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

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

 

-- Head --

Thread: Client thread

Stacktrace:

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52)

at net.minecraft.block.Block.canSustainPlant(Block.java:1819)

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31)

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157)

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476)

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600)

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271)

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityPlayerSP['Player250'/15, l='MpServer', x=935.35, y=4.00, z=980.02]]

Chunk stats: MultiplayerChunkCache: 622, 622

Level seed: 0

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

Level generator options:

Level spawn location: World: (939,4,993), Chunk: (at 11,0,1 in 58,62; contains blocks 928,0,992 to 943,255,1007), Region: (1,1; contains chunks 32,32 to 63,63, blocks 512,0,512 to 1023,255,1023)

Level time: 367188 game time, 12161 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: 4 total; [EntityChicken['Chicken'/3, l='MpServer', x=859.88, y=4.00, z=985.11], EntityChicken['Chicken'/5, l='MpServer', x=856.20, y=4.00, z=999.68], EntityChicken['Chicken'/7, l='MpServer', x=912.91, y=4.00, z=911.10], EntityPlayerSP['Player250'/15, l='MpServer', x=935.35, y=4.00, z=980.02]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

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

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

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

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

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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

-- System Details --

Details:

Minecraft Version: 1.9.4

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

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

Memory: 730524408 bytes (696 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP 9.28 Powered by Forge 12.17.0.1909 6 mods loaded, 6 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.19} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9.4-12.17.0.1909-1.9.4.jar)

UCHIJAAAA Forge{12.17.0.1909} [Minecraft Forge] (forgeSrc-1.9.4-12.17.0.1909-1.9.4.jar)

UCHIJAAAA agriculturalexpansion{alpha 1.0.3} [Agricultural Expansion] (bin)

UCHIJAAAA JEI{3.4.0.204} [Just Enough Items] (jei_1.9.4-3.4.0.204.jar)

UCHIJAAAA Waila{1.7.0} [Waila] (Waila-1.7.0-B3_1.9.4.jar)

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9600 GT/PCIe/SSE2'

Launched Version: 1.9.4

LWJGL: 2.9.4

OpenGL: GeForce 9600 GT/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using GL 1.3 texture combiners.

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

Shaders are available because OpenGL 2.1 is supported.

VBOs are available because OpenGL 1.5 is supported.

 

Using VBOs: No

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

Type: Client (map_client.txt)

Resource Packs:

Current Language: English (US)

Profiler Position: N/A (disabled)

CPU: net.minecraft.client.Minecraft$15@7b6e4af0

[18:35:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# E:\Agricultural Expansion\run\.\crash-reports\crash-2016-05-28_18.35.36-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

Posted

"It crashes" does not tell anything.

Logs. And new code.

New Common Proxy:

 

 

package com.agriculturalexpansion.proxy;

 

import com.agriculturalexpansion.extend.TestCrop;

import com.agriculturalexpansion.init.AEBlocks;

import com.agriculturalexpansion.init.AEItems;

import com.agriculturalexpansion.init.Recipes;

 

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;

import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

 

public class CommonProxy {

 

public void preInit(FMLPreInitializationEvent preEvent) {

 

AEItems.initItems();

AEBlocks.initBlocks();

 

Recipes.init();

 

}

 

public void init(FMLInitializationEvent event) {

 

}

 

public void postInit(FMLPostInitializationEvent postEvent) {

 

}

 

}

 

 

 

Crash Log:

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.9.4

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

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

Memory: 821222232 bytes (783 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9600 GT/PCIe/SSE2'

[18:33:52] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1909 Initialized

[18:33:52] [Client thread/INFO] [FML]: Replaced 232 ore recipes

[18:33:53] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[18:33:53] [Client thread/INFO] [FML]: Searching E:\Agricultural Expansion\run\mods for mods

[18:33:58] [Client thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load

[18:33:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, agriculturalexpansion, JEI, Waila] at CLIENT

[18:33:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, agriculturalexpansion, JEI, Waila] at SERVER

[18:34:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Agricultural Expansion, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:Waila

[18:34:00] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[18:34:01] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

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

[18:34:01] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json

[18:34:02] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: BETA_OUTDATED Target: 12.17.0.1922

[18:34:02] [Client thread/INFO] [FML]: Applying holder lookups

[18:34:02] [Client thread/INFO] [FML]: Holder lookups applied

[18:34:02] [Client thread/INFO] [FML]: Injecting itemstacks

[18:34:02] [Client thread/INFO] [FML]: Itemstack injection complete

[18:34:07] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:34:07] [Thread-8/INFO]: Initializing LWJGL OpenAL

[18:34:07] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:34:08] [Thread-8/INFO]: OpenAL initialized.

[18:34:08] [sound Library Loader/INFO]: Sound engine started

[18:34:19] [Client thread/INFO] [FML]: Max texture size: 8192

[18:34:19] [Client thread/INFO]: Created: 16x16 textures-atlas

[18:34:26] [Client thread/INFO] [FML]: Injecting itemstacks

[18:34:26] [Client thread/INFO] [FML]: Itemstack injection complete

[18:34:27] [Client thread/INFO] [sTDOUT]: [mcp.mobius.waila.gui.truetyper.TrueTypeFont:<init>:99]: TrueTypeFont loaded: java.awt.Font[family=Minecraftia,name=Minecraftia Regular,style=plain,size=14] - AntiAlias = true

[18:34:27] [Client thread/INFO] [Waila]: [Agriculture] Agriculture mod not found.

[18:34:27] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods

[18:34:27] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Agricultural Expansion, FMLFileResourcePack:Just Enough Items, FMLFileResourcePack:Waila

[18:34:32] [Client thread/INFO]: SoundSystem shutting down...

[18:34:32] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[18:34:32] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:34:32] [Thread-12/INFO]: Initializing LWJGL OpenAL

[18:34:32] [Thread-12/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:34:32] [Thread-12/INFO]: OpenAL initialized.

[18:34:33] [sound Library Loader/INFO]: Sound engine started

[18:34:39] [Client thread/INFO] [FML]: Max texture size: 8192

[18:34:40] [Client thread/INFO]: Created: 1024x512 textures-atlas

[18:34:48] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

[18:35:00] [server thread/INFO]: Starting integrated minecraft server version 1.9.4

[18:35:00] [server thread/INFO]: Generating keypair

[18:35:01] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agriculturalexpansion:Test

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agricultural expansion:ResourceCrop

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agricultural expansion:Test

[18:35:01] [server thread/INFO] [FML]: Found a missing id from the world agriculturalexpansion:ResourceCrop

[18:35:01] [server thread/INFO] [FML]: Applying holder lookups

[18:35:01] [server thread/INFO] [FML]: Holder lookups applied

[18:35:01] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f755d39)

[18:35:02] [server thread/INFO]: Preparing start region for level 0

[18:35:03] [server thread/INFO]: Preparing spawn area: 21%

[18:35:03] [server thread/INFO]: Changing view distance to 12, from 10

[18:35:05] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[18:35:05] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[18:35:05] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 6 mods : [email protected],[email protected],agriculturalexpansion@alpha 1.0.3,[email protected],[email protected],[email protected]

[18:35:05] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[18:35:05] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[18:35:05] [server thread/INFO]: Player250[local:E:f06b95d7] logged in with entity id 15 at (935.3495444446633, 4.0, 980.0176250573738)

[18:35:05] [server thread/INFO]: Player250 joined the game

[18:35:05] [server thread/INFO] [Waila]: Player EntityPlayerMP['Player250'/15, l='New World', x=935.35, y=4.00, z=980.02] connected. Sending ping

[18:35:12] [server thread/INFO]: Saving and pausing game...

[18:35:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[18:35:13] [Client thread/INFO] [JEI]: Registered plugin: mezz.jei.plugins.vanilla.VanillaPlugin

[18:35:13] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[18:35:13] [server thread/INFO]: Saving chunks for level 'New World'/The End

[18:35:13] [Client thread/INFO] [JEI]: Registered plugin: mezz.jei.plugins.jei.JEIInternalPlugin

[18:35:14] [Netty Local Client IO #0/INFO] [Waila]: Received server authentication msg. Remote sync will be activated

[18:35:15] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@717760ed[id=c98187a9-e17b-3f48-8a33-882e62d18d19,name=Player250,properties={},legacy=false]

com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time

at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]

at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]

at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]

at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]

at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3041) [Minecraft.class:?]

at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_91]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_91]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]

[18:35:33] [server thread/FATAL]: Error executing task

java.util.concurrent.ExecutionException: java.lang.NullPointerException

at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_91]

at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_91]

at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:740) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:685) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:155) [integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:534) [MinecraftServer.class:?]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]

Caused by: java.lang.NullPointerException

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52) ~[itemSeeds.class:?]

at net.minecraft.block.Block.canSustainPlant(Block.java:1819) ~[block.class:?]

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31) ~[itemSeeds.class:?]

at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:734) ~[ForgeHooks.class:?]

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:156) ~[itemStack.class:?]

at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:498) ~[PlayerInteractionManager.class:?]

at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:707) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]

at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_91]

at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_91]

at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]

... 5 more

[18:35:34] [server thread/INFO]: Stopping server

[18:35:34] [server thread/INFO]: Saving players

[18:35:34] [server thread/INFO]: Saving worlds

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[18:35:34] [server thread/INFO]: Saving chunks for level 'New World'/The End

[18:35:34] [server thread/INFO] [FML]: Unloading dimension 0

[18:35:34] [server thread/INFO] [FML]: Unloading dimension -1

[18:35:34] [server thread/INFO] [FML]: Unloading dimension 1

[18:35:34] [server thread/INFO] [FML]: Applying holder lookups

[18:35:34] [server thread/INFO] [FML]: Holder lookups applied

[18:35:36] [Client thread/FATAL]: Unreported exception thrown!

java.lang.NullPointerException

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52) ~[itemSeeds.class:?]

at net.minecraft.block.Block.canSustainPlant(Block.java:1819) ~[block.class:?]

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31) ~[itemSeeds.class:?]

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157) ~[itemStack.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1843) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1117) ~[Minecraft.class:?]

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

[18:35:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: ---- Minecraft Crash Report ----

// My bad.

 

Time: 5/28/16 6:35 PM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52)

at net.minecraft.block.Block.canSustainPlant(Block.java:1819)

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31)

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157)

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476)

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600)

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271)

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055)

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

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

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

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

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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

 

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

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

 

-- Head --

Thread: Client thread

Stacktrace:

at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52)

at net.minecraft.block.Block.canSustainPlant(Block.java:1819)

at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31)

at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:157)

at net.minecraft.client.multiplayer.PlayerControllerMP.processRightClickBlock(PlayerControllerMP.java:476)

at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1600)

at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2271)

at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2055)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityPlayerSP['Player250'/15, l='MpServer', x=935.35, y=4.00, z=980.02]]

Chunk stats: MultiplayerChunkCache: 622, 622

Level seed: 0

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

Level generator options:

Level spawn location: World: (939,4,993), Chunk: (at 11,0,1 in 58,62; contains blocks 928,0,992 to 943,255,1007), Region: (1,1; contains chunks 32,32 to 63,63, blocks 512,0,512 to 1023,255,1023)

Level time: 367188 game time, 12161 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: 4 total; [EntityChicken['Chicken'/3, l='MpServer', x=859.88, y=4.00, z=985.11], EntityChicken['Chicken'/5, l='MpServer', x=856.20, y=4.00, z=999.68], EntityChicken['Chicken'/7, l='MpServer', x=912.91, y=4.00, z=911.10], EntityPlayerSP['Player250'/15, l='MpServer', x=935.35, y=4.00, z=980.02]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

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

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

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

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

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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

 

-- System Details --

Details:

Minecraft Version: 1.9.4

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

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

Memory: 730524408 bytes (696 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP 9.28 Powered by Forge 12.17.0.1909 6 mods loaded, 6 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.19} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9.4-12.17.0.1909-1.9.4.jar)

UCHIJAAAA Forge{12.17.0.1909} [Minecraft Forge] (forgeSrc-1.9.4-12.17.0.1909-1.9.4.jar)

UCHIJAAAA agriculturalexpansion{alpha 1.0.3} [Agricultural Expansion] (bin)

UCHIJAAAA JEI{3.4.0.204} [Just Enough Items] (jei_1.9.4-3.4.0.204.jar)

UCHIJAAAA Waila{1.7.0} [Waila] (Waila-1.7.0-B3_1.9.4.jar)

Loaded coremods (and transformers):

GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9600 GT/PCIe/SSE2'

Launched Version: 1.9.4

LWJGL: 2.9.4

OpenGL: GeForce 9600 GT/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using GL 1.3 texture combiners.

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

Shaders are available because OpenGL 2.1 is supported.

VBOs are available because OpenGL 1.5 is supported.

 

Using VBOs: No

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

Type: Client (map_client.txt)

Resource Packs:

Current Language: English (US)

Profiler Position: N/A (disabled)

CPU: net.minecraft.client.Minecraft$15@7b6e4af0

[18:35:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# E:\Agricultural Expansion\run\.\crash-reports\crash-2016-05-28_18.35.36-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

Posted

AEItems:

 

 

package com.agriculturalexpansion.init;

 

import com.agriculturalexpansion.extend.AEItem;

import com.agriculturalexpansion.extend.AESeed;

 

import net.minecraft.init.Blocks;

import net.minecraft.item.Item;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class AEItems {

 

//Items

public static Item resource_sprout;

 

public static Item coal_essence;

public static Item iron_essence;

public static Item gold_essence;

public static Item lapis_essence;

public static Item quartz_essence;

public static Item redstone_essence;

public static Item diamond_essence;

public static Item emerald_essence;

 

public static Item zombie_essence;

public static Item creeper_essence;

public static Item skeleton_essence;

public static Item slime_essence;

public static Item spider_essence;

public static Item guardian_essence;

public static Item ghast_essence;

public static Item wither_essence;

 

//Seeds

public static Item resource_seed;

 

public static Item coal_sprout;

public static Item iron_sprout;

public static Item gold_sprout;

public static Item lapis_sprout;

public static Item quartz_sprout;

public static Item redstone_sprout;

public static Item diamond_sprout;

public static Item emerald_sprout;

 

public static Item zombie_sprout;

public static Item creeper_sprout;

public static Item skeleton_sprout;

public static Item slime_sprout;

public static Item spider_sprout;

public static Item guardian_sprout;

public static Item ghast_sprout;

public static Item wither_sprout;

 

public static void initItems() {

 

//Items

GameRegistry.registerItem(resource_sprout = new AEItem("resource_sprout"), "resource_sprout");

 

GameRegistry.registerItem(coal_essence = new AEItem("coal_essence"), "coal_essence");

GameRegistry.registerItem(iron_essence = new AEItem("iron_essence"), "iron_essence");

GameRegistry.registerItem(gold_essence = new AEItem("gold_essence"), "gold_essence");

GameRegistry.registerItem(lapis_essence = new AEItem("lapis_essence"), "lapis_essence");

GameRegistry.registerItem(quartz_essence = new AEItem("quartz_essence"), "quartz_essence");

GameRegistry.registerItem(redstone_essence = new AEItem("redstone_essence"), "redstone_essence");

GameRegistry.registerItem(diamond_essence = new AEItem("diamond_essence"), "diamond_essence");

GameRegistry.registerItem(emerald_essence = new AEItem("emerald_essence"), "emerald_essence");

 

GameRegistry.registerItem(zombie_essence = new AEItem("zombie_essence"), "zombie_essence");

GameRegistry.registerItem(creeper_essence = new AEItem("creeper_essence"), "creeper_essence");

GameRegistry.registerItem(skeleton_essence = new AEItem("skeleton_essence"), "skeleton_essence");

GameRegistry.registerItem(slime_essence = new AEItem("slime_essence"), "slime_essence");

GameRegistry.registerItem(spider_essence = new AEItem("spider_essence"), "spider_essence");

GameRegistry.registerItem(guardian_essence = new AEItem("guardian_essence"), "guardian_essence");

GameRegistry.registerItem(ghast_essence = new AEItem("ghast_essence"), "ghast_essence");

GameRegistry.registerItem(wither_essence = new AEItem("wither_essence"), "wither_essence");

 

//Seeds

GameRegistry.registerItem(resource_seed = new AESeed("resource_seed", AEBlocks.resource_crop, Blocks.FARMLAND), "resource_seed");

 

GameRegistry.registerItem(coal_sprout = new AESeed("coal_sprout", AEBlocks.coal_crop, Blocks.FARMLAND), "coal_sprout");

GameRegistry.registerItem(iron_sprout = new AESeed("iron_sprout", AEBlocks.iron_crop, Blocks.FARMLAND), "iron_sprout");

GameRegistry.registerItem(gold_sprout = new AESeed("gold_sprout", AEBlocks.gold_crop, Blocks.FARMLAND), "gold_sprout");

GameRegistry.registerItem(lapis_sprout = new AESeed("lapis_sprout", AEBlocks.lapis_crop, Blocks.FARMLAND), "lapis_sprout");

GameRegistry.registerItem(quartz_sprout = new AESeed("quartz_sprout", AEBlocks.quartz_crop, Blocks.FARMLAND), "quartz_sprout");

GameRegistry.registerItem(redstone_sprout = new AESeed("redstone_sprout", AEBlocks.redstone_crop, Blocks.FARMLAND), "redstone_sprout");

GameRegistry.registerItem(diamond_sprout = new AESeed("diamond_sprout", AEBlocks.diamond_crop, Blocks.FARMLAND), "diamond_sprout");

GameRegistry.registerItem(emerald_sprout = new AESeed("emerald_sprout", AEBlocks.emerald_crop, Blocks.FARMLAND), "emerald_sprout");

 

GameRegistry.registerItem(zombie_sprout = new AESeed("zombie_sprout", AEBlocks.zombie_crop, Blocks.FARMLAND), "zombie_sprout");

GameRegistry.registerItem(creeper_sprout = new AESeed("creeper_sprout", AEBlocks.creeper_crop, Blocks.FARMLAND), "creeper_sprout");

GameRegistry.registerItem(skeleton_sprout = new AESeed("skeleton_sprout", AEBlocks.skeleton_crop, Blocks.FARMLAND), "skeleton_sprout");

GameRegistry.registerItem(slime_sprout = new AESeed("slime_sprout", AEBlocks.slime_crop, Blocks.FARMLAND), "slime_sprout");

GameRegistry.registerItem(spider_sprout = new AESeed("spider_sprout", AEBlocks.spider_crop, Blocks.FARMLAND), "spider_sprout");

GameRegistry.registerItem(guardian_sprout = new AESeed("guardian_sprout", AEBlocks.guardian_crop, Blocks.FARMLAND), "guardian_sprout");

GameRegistry.registerItem(ghast_sprout = new AESeed("ghast_sprout", AEBlocks.ghast_crop, Blocks.FARMLAND), "ghast_sprout");

GameRegistry.registerItem(wither_sprout = new AESeed("wither_sprout", AEBlocks.wither_crop, Blocks.FARMLAND), "wither_sprout");

}

 

}

 

 

 

 

AEBlocks:

 

 

package com.agriculturalexpansion.init;

 

import com.agriculturalexpansion.crops.vanillaresources.*;

import com.agriculturalexpansion.crops.mobresources.*;

import com.agriculturalexpansion.crops.oredictionaryresources.*;

import com.agriculturalexpansion.extend.AEBlock;

import com.agriculturalexpansion.extend.TestCrop;

import com.agriculturalexpansion.main.ConfigurationFile;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.init.Items;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class AEBlocks {

 

//Blocks

public static Block sprout_block;

 

//Crops

public static Block resource_crop;

 

//Vanilla Crops

public static Block coal_crop;

public static Block iron_crop;

public static Block gold_crop;

public static Block lapis_crop;

public static Block quartz_crop;

public static Block redstone_crop;

public static Block diamond_crop;

public static Block emerald_crop;

 

//Mob Crops

public static Block zombie_crop;

public static Block creeper_crop;

public static Block skeleton_crop;

public static Block slime_crop;

public static Block spider_crop;

public static Block guardian_crop;

public static Block ghast_crop;

public static Block wither_crop;

 

//Passive Mobs

 

public static void initBlocks() {

 

//Blocks

GameRegistry.registerBlock(sprout_block = new AEBlock("sprout_block", Material.PLANTS, 0, 0, null, 0), "sprout_block");

 

//Crops

GameRegistry.registerBlock(resource_crop = new TestCrop("resource_crop", AEItems.resource_seed, AEItems.redstone_sprout), "resource_crop");

 

GameRegistry.registerBlock(coal_crop = new CoalCrop("coal_crop"), "coal_crop");

GameRegistry.registerBlock(iron_crop = new IronCrop("iron_crop"), "iron_crop");

GameRegistry.registerBlock(gold_crop = new GoldCrop("gold_crop"), "gold_crop");

GameRegistry.registerBlock(lapis_crop = new LapisCrop("lapis_crop"), "lapis_crop");

GameRegistry.registerBlock(quartz_crop = new QuartzCrop("quartz_crop"), "quartz_crop");

GameRegistry.registerBlock(redstone_crop = new RedstoneCrop("redstone_crop"), "redstone_crop");

GameRegistry.registerBlock(diamond_crop = new DiamondCrop("diamond_crop"), "diamond_crop");

GameRegistry.registerBlock(emerald_crop = new EmeraldCrop("emerald_crop"), "emerald_crop");

 

//Mob Crops

GameRegistry.registerBlock(zombie_crop = new ZombieCrop("zombie_crop"), "zombie_crop");

GameRegistry.registerBlock(creeper_crop = new CreeperCrop("creeper_crop"), "creeper_crop");

GameRegistry.registerBlock(skeleton_crop = new SkeletonCrop("skeleton_crop"), "skeleton_crop");

GameRegistry.registerBlock(slime_crop = new SlimeCrop("slime_crop"), "slime_crop");

GameRegistry.registerBlock(spider_crop = new SpiderCrop("spider_crop"), "spider_crop");

GameRegistry.registerBlock(guardian_crop = new GuardianCrop("guardian_crop"), "guardian_crop");

GameRegistry.registerBlock(ghast_crop = new GhastCrop("ghast_crop"), "ghast_crop");

GameRegistry.registerBlock(wither_crop = new WitherCrop("wither_crop"), "wither_crop");

 

}

 

}

 

 

 

Posted

AEItems:

 

 

package com.agriculturalexpansion.init;

 

import com.agriculturalexpansion.extend.AEItem;

import com.agriculturalexpansion.extend.AESeed;

 

import net.minecraft.init.Blocks;

import net.minecraft.item.Item;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class AEItems {

 

//Items

public static Item resource_sprout;

 

public static Item coal_essence;

public static Item iron_essence;

public static Item gold_essence;

public static Item lapis_essence;

public static Item quartz_essence;

public static Item redstone_essence;

public static Item diamond_essence;

public static Item emerald_essence;

 

public static Item zombie_essence;

public static Item creeper_essence;

public static Item skeleton_essence;

public static Item slime_essence;

public static Item spider_essence;

public static Item guardian_essence;

public static Item ghast_essence;

public static Item wither_essence;

 

//Seeds

public static Item resource_seed;

 

public static Item coal_sprout;

public static Item iron_sprout;

public static Item gold_sprout;

public static Item lapis_sprout;

public static Item quartz_sprout;

public static Item redstone_sprout;

public static Item diamond_sprout;

public static Item emerald_sprout;

 

public static Item zombie_sprout;

public static Item creeper_sprout;

public static Item skeleton_sprout;

public static Item slime_sprout;

public static Item spider_sprout;

public static Item guardian_sprout;

public static Item ghast_sprout;

public static Item wither_sprout;

 

public static void initItems() {

 

//Items

GameRegistry.registerItem(resource_sprout = new AEItem("resource_sprout"), "resource_sprout");

 

GameRegistry.registerItem(coal_essence = new AEItem("coal_essence"), "coal_essence");

GameRegistry.registerItem(iron_essence = new AEItem("iron_essence"), "iron_essence");

GameRegistry.registerItem(gold_essence = new AEItem("gold_essence"), "gold_essence");

GameRegistry.registerItem(lapis_essence = new AEItem("lapis_essence"), "lapis_essence");

GameRegistry.registerItem(quartz_essence = new AEItem("quartz_essence"), "quartz_essence");

GameRegistry.registerItem(redstone_essence = new AEItem("redstone_essence"), "redstone_essence");

GameRegistry.registerItem(diamond_essence = new AEItem("diamond_essence"), "diamond_essence");

GameRegistry.registerItem(emerald_essence = new AEItem("emerald_essence"), "emerald_essence");

 

GameRegistry.registerItem(zombie_essence = new AEItem("zombie_essence"), "zombie_essence");

GameRegistry.registerItem(creeper_essence = new AEItem("creeper_essence"), "creeper_essence");

GameRegistry.registerItem(skeleton_essence = new AEItem("skeleton_essence"), "skeleton_essence");

GameRegistry.registerItem(slime_essence = new AEItem("slime_essence"), "slime_essence");

GameRegistry.registerItem(spider_essence = new AEItem("spider_essence"), "spider_essence");

GameRegistry.registerItem(guardian_essence = new AEItem("guardian_essence"), "guardian_essence");

GameRegistry.registerItem(ghast_essence = new AEItem("ghast_essence"), "ghast_essence");

GameRegistry.registerItem(wither_essence = new AEItem("wither_essence"), "wither_essence");

 

//Seeds

GameRegistry.registerItem(resource_seed = new AESeed("resource_seed", AEBlocks.resource_crop, Blocks.FARMLAND), "resource_seed");

 

GameRegistry.registerItem(coal_sprout = new AESeed("coal_sprout", AEBlocks.coal_crop, Blocks.FARMLAND), "coal_sprout");

GameRegistry.registerItem(iron_sprout = new AESeed("iron_sprout", AEBlocks.iron_crop, Blocks.FARMLAND), "iron_sprout");

GameRegistry.registerItem(gold_sprout = new AESeed("gold_sprout", AEBlocks.gold_crop, Blocks.FARMLAND), "gold_sprout");

GameRegistry.registerItem(lapis_sprout = new AESeed("lapis_sprout", AEBlocks.lapis_crop, Blocks.FARMLAND), "lapis_sprout");

GameRegistry.registerItem(quartz_sprout = new AESeed("quartz_sprout", AEBlocks.quartz_crop, Blocks.FARMLAND), "quartz_sprout");

GameRegistry.registerItem(redstone_sprout = new AESeed("redstone_sprout", AEBlocks.redstone_crop, Blocks.FARMLAND), "redstone_sprout");

GameRegistry.registerItem(diamond_sprout = new AESeed("diamond_sprout", AEBlocks.diamond_crop, Blocks.FARMLAND), "diamond_sprout");

GameRegistry.registerItem(emerald_sprout = new AESeed("emerald_sprout", AEBlocks.emerald_crop, Blocks.FARMLAND), "emerald_sprout");

 

GameRegistry.registerItem(zombie_sprout = new AESeed("zombie_sprout", AEBlocks.zombie_crop, Blocks.FARMLAND), "zombie_sprout");

GameRegistry.registerItem(creeper_sprout = new AESeed("creeper_sprout", AEBlocks.creeper_crop, Blocks.FARMLAND), "creeper_sprout");

GameRegistry.registerItem(skeleton_sprout = new AESeed("skeleton_sprout", AEBlocks.skeleton_crop, Blocks.FARMLAND), "skeleton_sprout");

GameRegistry.registerItem(slime_sprout = new AESeed("slime_sprout", AEBlocks.slime_crop, Blocks.FARMLAND), "slime_sprout");

GameRegistry.registerItem(spider_sprout = new AESeed("spider_sprout", AEBlocks.spider_crop, Blocks.FARMLAND), "spider_sprout");

GameRegistry.registerItem(guardian_sprout = new AESeed("guardian_sprout", AEBlocks.guardian_crop, Blocks.FARMLAND), "guardian_sprout");

GameRegistry.registerItem(ghast_sprout = new AESeed("ghast_sprout", AEBlocks.ghast_crop, Blocks.FARMLAND), "ghast_sprout");

GameRegistry.registerItem(wither_sprout = new AESeed("wither_sprout", AEBlocks.wither_crop, Blocks.FARMLAND), "wither_sprout");

}

 

}

 

 

 

 

AEBlocks:

 

 

package com.agriculturalexpansion.init;

 

import com.agriculturalexpansion.crops.vanillaresources.*;

import com.agriculturalexpansion.crops.mobresources.*;

import com.agriculturalexpansion.crops.oredictionaryresources.*;

import com.agriculturalexpansion.extend.AEBlock;

import com.agriculturalexpansion.extend.TestCrop;

import com.agriculturalexpansion.main.ConfigurationFile;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.init.Items;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

public class AEBlocks {

 

//Blocks

public static Block sprout_block;

 

//Crops

public static Block resource_crop;

 

//Vanilla Crops

public static Block coal_crop;

public static Block iron_crop;

public static Block gold_crop;

public static Block lapis_crop;

public static Block quartz_crop;

public static Block redstone_crop;

public static Block diamond_crop;

public static Block emerald_crop;

 

//Mob Crops

public static Block zombie_crop;

public static Block creeper_crop;

public static Block skeleton_crop;

public static Block slime_crop;

public static Block spider_crop;

public static Block guardian_crop;

public static Block ghast_crop;

public static Block wither_crop;

 

//Passive Mobs

 

public static void initBlocks() {

 

//Blocks

GameRegistry.registerBlock(sprout_block = new AEBlock("sprout_block", Material.PLANTS, 0, 0, null, 0), "sprout_block");

 

//Crops

GameRegistry.registerBlock(resource_crop = new TestCrop("resource_crop", AEItems.resource_seed, AEItems.redstone_sprout), "resource_crop");

 

GameRegistry.registerBlock(coal_crop = new CoalCrop("coal_crop"), "coal_crop");

GameRegistry.registerBlock(iron_crop = new IronCrop("iron_crop"), "iron_crop");

GameRegistry.registerBlock(gold_crop = new GoldCrop("gold_crop"), "gold_crop");

GameRegistry.registerBlock(lapis_crop = new LapisCrop("lapis_crop"), "lapis_crop");

GameRegistry.registerBlock(quartz_crop = new QuartzCrop("quartz_crop"), "quartz_crop");

GameRegistry.registerBlock(redstone_crop = new RedstoneCrop("redstone_crop"), "redstone_crop");

GameRegistry.registerBlock(diamond_crop = new DiamondCrop("diamond_crop"), "diamond_crop");

GameRegistry.registerBlock(emerald_crop = new EmeraldCrop("emerald_crop"), "emerald_crop");

 

//Mob Crops

GameRegistry.registerBlock(zombie_crop = new ZombieCrop("zombie_crop"), "zombie_crop");

GameRegistry.registerBlock(creeper_crop = new CreeperCrop("creeper_crop"), "creeper_crop");

GameRegistry.registerBlock(skeleton_crop = new SkeletonCrop("skeleton_crop"), "skeleton_crop");

GameRegistry.registerBlock(slime_crop = new SlimeCrop("slime_crop"), "slime_crop");

GameRegistry.registerBlock(spider_crop = new SpiderCrop("spider_crop"), "spider_crop");

GameRegistry.registerBlock(guardian_crop = new GuardianCrop("guardian_crop"), "guardian_crop");

GameRegistry.registerBlock(ghast_crop = new GhastCrop("ghast_crop"), "ghast_crop");

GameRegistry.registerBlock(wither_crop = new WitherCrop("wither_crop"), "wither_crop");

 

}

 

}

 

 

 

Posted

Giggle.

 

Your seed takes your block as a parameter.

 

Your block takes your seed as a parameter.

 

You can't do this. emoticon-00136-giggle.gif

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Giggle.

 

Your seed takes your block as a parameter.

 

Your block takes your seed as a parameter.

 

You can't do this. emoticon-00136-giggle.gif

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Giggle.

 

Your seed takes your block as a parameter.

 

Your block takes your seed as a parameter.

 

You can't do this. emoticon-00136-giggle.gif

 

There is any way to do what I want? Using another code?

Posted

Giggle.

 

Your seed takes your block as a parameter.

 

Your block takes your seed as a parameter.

 

You can't do this. emoticon-00136-giggle.gif

 

There is any way to do what I want? Using another code?

Posted

The way to do it is for your item to get registered after your block, but the block's "getSeed" method needs to directly reference

AEItems.test_seed

rather than taking it as a parameter.

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/wildlife/block/BlockCropWinterWheat.java#L35-L37

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

The way to do it is for your item to get registered after your block, but the block's "getSeed" method needs to directly reference

AEItems.test_seed

rather than taking it as a parameter.

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/wildlife/block/BlockCropWinterWheat.java#L35-L37

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

The way to do it is for your item to get registered after your block, but the block's "getSeed" method needs to directly reference

AEItems.test_seed

rather than taking it as a parameter.

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/wildlife/block/BlockCropWinterWheat.java#L35-L37

This is how I set the drops for crops but using this method requires a separate class for every crop ... anyway thanks for help :)

Posted

The way to do it is for your item to get registered after your block, but the block's "getSeed" method needs to directly reference

AEItems.test_seed

rather than taking it as a parameter.

 

https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/wildlife/block/BlockCropWinterWheat.java#L35-L37

This is how I set the drops for crops but using this method requires a separate class for every crop ... anyway thanks for help :)

Posted

You could write some kind of "crop manager" class that would be able to use 1 class again.  But the way you're doing things now will never work: one of the two will always be null when you run the constructor for the other.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

You could write some kind of "crop manager" class that would be able to use 1 class again.  But the way you're doing things now will never work: one of the two will always be null when you run the constructor for the other.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

And how should I initialize the seed and drop?

Oh dear... Go learn Java before D7 bans you.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

And how should I initialize the seed and drop?

Oh dear... Go learn Java before D7 bans you.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

  • 1 month later...
Posted

You could write some kind of "crop manager" class that would be able to use 1 class again.

 

Sorry for bad english:

1. Initialize your blocks (create, register, set names, models, etc)

2. Initialize your items (create, register, set names, models, etc)

 

Your Crop (do not pass seed and fruit/crop in constructor):

 

 

public class MyCrop extends BlockCrops
{

public MyCrop(String name)
{
...
}
...

@Override
protected Item getSeed()
{
BlocksManager.CropMapper cm = BlocksManager.getCropMapper().get(this);
return (cm != null && cm.getSeed() != null) ? cm.getSeed() : super.getSeed();
}

@Override
protected Item getCrop()
{
BlocksManager.CropMapper cm = BlocksManager.getCropMapper().get(this);
return (cm != null && cm.getCrop() != null) ? cm.getCrop() : super.getCrop();
}

...
}

 

 

 

The "crop manager" (my simple way to map a plant => seed, crop/fruit):

 

 

public class BlocksManager {

/* CROP MAPPER */
protected static Map<Block, CropMapper> cropMapper = new HashMap<Block, CropMapper>();

public static Map<Block, CropMapper> getCropMapper()
{
return cropMapper;
}

public static void addCropMapper(Block plant, Item seed, Item crop)
{
cropMapper.put(plant, new CropMapper(seed, crop));
}

public static class CropMapper
{
protected Item seed;
protected Item crop;

public CropMapper(Item seed, Item crop)
{
this.seed = seed;
this.crop = crop;
}

/*item seed"*/
public Item getSeed()
{
return this.seed;
}

/*item crop/fruit*/
public Item getCrop()
{
        return this.crop;
}
}
}

 

 

 

And then (after you initialize your items and blocks):

3. Add your block, your item seed and your item fruit/crop (blocks and items will exists):

 

 

BlocksManager.addCropMapper(ModBlocks.myCrop, ModItems.mySeed, ModItems.myCropFruit);
BlocksManager.addCropMapper(ModBlocks.otherCrop, ModItems.otherSeed, ModItems.otherCropFruit);

 

 

Now you can create many crops-like plants using only 1 class (MyCrop class)

Making mods is fun!!!

(sorry bad english, i'm from venezuela)

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



×
×
  • Create New...

Important Information

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