Jump to content

Recommended Posts

Posted

Hi there I am having trouble with Adding a crop to my minecraft mod.

 

Crop Class:

package com.julesmaster7.awesomemod.block.crop;

import com.julesmaster7.awesomemod.init.AwesomeItems;

import net.minecraft.block.Block;
import net.minecraft.block.BlockBush;
import net.minecraft.block.BlockCrops;
import net.minecraft.item.Item;

public class CandyPlant extends BlockCrops {

public CandyPlant() {
	this.setUnlocalizedName("CandyPlant");
}

@Override
protected Item getSeed() {
	return AwesomeItems.seedsCandy;
}

@Override
protected Item getCrop() {
	return AwesomeItems.itemCandy;
}
}

 

Blocks Class:

package com.julesmaster7.awesomemod.init;

import com.julesmaster7.awesomemod.AwesomeMod;
import com.julesmaster7.awesomemod.Reference;
import com.julesmaster7.awesomemod.block.BlockJar;
import com.julesmaster7.awesomemod.block.BlockOfAwesome;
import com.julesmaster7.awesomemod.block.crop.CandyPlant;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class AwesomeBlocks {

public static Block blockOfAwesome;
public static Block awesomeJar;
public static Block candyPlant;

public static void init()
{
	blockOfAwesome = new BlockOfAwesome();
	awesomeJar = new BlockJar();
	candyPlant = new CandyPlant();
}

public static void register()
{
	GameRegistry.registerBlock(blockOfAwesome, blockOfAwesome.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(awesomeJar, awesomeJar.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(candyPlant, candyPlant.getUnlocalizedName().substring(5));
}

public static void registerRenders()
{
	registerRender(blockOfAwesome);
	registerRender(awesomeJar);
	registerRender(candyPlant);
}

public static void registerRender(Block block)
{
	Item item = Item.getItemFromBlock(block);
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
}

 

Item Class with seed inside:

package com.julesmaster7.awesomemod.init;

import com.julesmaster7.awesomemod.AwesomeMod;
import com.julesmaster7.awesomemod.Reference;
import com.julesmaster7.awesomemod.item.ItemAwesome;
import com.julesmaster7.awesomemod.item.ItemAwesomeAxe;
import com.julesmaster7.awesomemod.item.ItemAwesomeHoe;
import com.julesmaster7.awesomemod.item.ItemAwesomePickaxe;
import com.julesmaster7.awesomemod.item.ItemAwesomeShovel;
import com.julesmaster7.awesomemod.item.ItemAwesomeSword;
import com.julesmaster7.awesomemod.item.ItemCandy;
import com.julesmaster7.awesomemod.item.ItemChewyCandy;
import com.julesmaster7.awesomemod.item.SeedsCandy;

import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class AwesomeItems {
public static Item itemAwesome;
public static Item itemAwesomeAxe;
public static Item itemAwesomeHoe;
public static Item itemAwesomePickaxe;
public static Item itemAwesomeShovel;
public static Item itemAwesomeSword;
public static Item itemCandy;
public static Item itemChewyCandy;
public static Item seedsCandy;

public static void init() {
	itemAwesomeAxe = new ItemAwesomeAxe(AwesomeMod.awesomeToolMaterial);
	itemAwesomeHoe = new ItemAwesomeHoe(AwesomeMod.awesomeToolMaterial);
	itemAwesomePickaxe = new ItemAwesomePickaxe(AwesomeMod.awesomeToolMaterial);
	itemAwesomeShovel = new ItemAwesomeShovel(AwesomeMod.awesomeToolMaterial);
	itemAwesomeSword = new ItemAwesomeSword(AwesomeMod.awesomeToolMaterial);
	itemAwesome = new ItemAwesome();
	itemCandy = new ItemCandy();
	itemChewyCandy = new ItemChewyCandy();
	seedsCandy = new SeedsCandy();
	}

public static void register() {
	GameRegistry.registerItem(itemAwesome, itemAwesome.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemAwesomeAxe, itemAwesomeAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemAwesomeHoe, itemAwesomeHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemAwesomePickaxe, itemAwesomePickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemAwesomeShovel, itemAwesomeShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemAwesomeSword, itemAwesomeSword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCandy, itemCandy.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemChewyCandy, itemChewyCandy.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(seedsCandy, seedsCandy.getUnlocalizedName().substring(5));
}

public static void registerRenders() {
	registerRender(itemAwesome);
	registerRender(itemAwesomeAxe);
	registerRender(itemAwesomeHoe);
	registerRender(itemAwesomePickaxe);
	registerRender(itemAwesomeShovel);
	registerRender(itemAwesomeSword);
	registerRender(itemCandy);
	registerRender(itemChewyCandy);
	registerRender(seedsCandy);
}

public static void registerRender(Item item) {
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
}

 

Seed Class:

package com.julesmaster7.awesomemod.item;

import com.julesmaster7.awesomemod.AwesomeMod;
import com.julesmaster7.awesomemod.block.crop.CandyPlant;
import com.julesmaster7.awesomemod.init.AwesomeBlocks;

import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemSeeds;

public class SeedsCandy extends ItemSeeds {

public SeedsCandy() {
	super(AwesomeBlocks.candyPlant, Blocks.farmland);
	this.setUnlocalizedName("SeedsCandy");
	this.setCreativeTab(AwesomeMod.tabAwesome);
}

}

 

Error Happens when I place the seed on Farmland:

[16:57:07] [Client thread/INFO] [FML]: MinecraftForge v11.15.1.1722 Initialized
[16:57:07] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[16:57:07] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:57:07] [Client thread/INFO] [FML]: Searching D:\Users\Julian Grieco\My Projects\Coding\Minecraft\Awesome Mod\Awesome Mod 1.8\run\mods for mods
[16:57:09] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[16:57:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, am] at CLIENT
[16:57:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, am] at SERVER
[16:57:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:JulesMaster7's Awesome Mod
[16:57:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:57:11] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[16:57:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:57:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:57:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:57:11] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:57:11] [Client thread/INFO] [FML]: Applying holder lookups
[16:57:11] [Client thread/INFO] [FML]: Holder lookups applied
[16:57:11] [Client thread/INFO] [FML]: Injecting itemstacks
[16:57:11] [Client thread/INFO] [FML]: Itemstack injection complete
[16:57:11] [sound Library Loader/INFO]: Starting up SoundSystem...
[16:57:12] [Thread-9/INFO]: Initializing LWJGL OpenAL
[16:57:12] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:57:12] [Thread-9/INFO]: OpenAL initialized.
[16:57:12] [sound Library Loader/INFO]: Sound engine started
[16:57:14] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[16:57:32] [Client thread/INFO] [FML]: Max texture size: 16384
[16:57:32] [Client thread/INFO]: Created: 16x16 textures-atlas
[16:57:32] [Client thread/ERROR] [FML]: Model definition for location am:CandyPlant#inventory not found
[16:57:33] [Client thread/INFO] [FML]: Injecting itemstacks
[16:57:33] [Client thread/INFO] [FML]: Itemstack injection complete
[16:57:34] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[16:57:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:JulesMaster7's Awesome Mod
[16:57:34] [Client thread/INFO]: SoundSystem shutting down...
[16:57:34] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[16:57:34] [sound Library Loader/INFO]: Starting up SoundSystem...
[16:57:34] [Thread-11/INFO]: Initializing LWJGL OpenAL
[16:57:34] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:57:34] [Thread-11/INFO]: OpenAL initialized.
[16:57:35] [sound Library Loader/INFO]: Sound engine started
[16:57:46] [Client thread/INFO] [FML]: Max texture size: 16384
[16:57:48] [Client thread/INFO]: Created: 512x512 textures-atlas
[16:57:48] [Client thread/ERROR] [FML]: Model definition for location am:CandyPlant#inventory not found
[16:57:49] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:57:54] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:57:54] [server thread/INFO]: Starting integrated minecraft server version 1.8.9
[16:57:54] [server thread/INFO]: Generating keypair
[16:57:55] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:57:55] [server thread/INFO] [FML]: Applying holder lookups
[16:57:55] [server thread/INFO] [FML]: Holder lookups applied
[16:57:55] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@7510d674)
[16:57:55] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@7510d674)
[16:57:55] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@7510d674)
[16:57:55] [server thread/INFO]: Preparing start region for level 0
[16:57:56] [server thread/INFO]: Preparing spawn area: 24%
[16:57:57] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:57:57] [server thread/INFO]: Changing view distance to 12, from 10
[16:57:58] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[16:57:58] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[16:57:58] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[16:57:58] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[16:57:58] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[16:57:58] [server thread/INFO]: Player36[local:E:5f4e8e06] logged in with entity id 295 at (106.28475550819297, 66.0, 255.23700732754142)
[16:57:58] [server thread/INFO]: Player36 joined the game
[16:58:00] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@31187243[id=ffc47c7c-81a1-3d8c-86bb-c720fcbf7d8f,name=Player36,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.func_181037_M(Minecraft.java:2915) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:130) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_74]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_74]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_74]
[16:58:04] [server thread/INFO]: Saving and pausing game...
[16:58:04] [server thread/INFO]: Saving chunks for level 'Test'/Overworld
[16:58:04] [server thread/INFO]: Saving chunks for level 'Test'/Nether
[16:58:04] [server thread/INFO]: Saving chunks for level 'Test'/The End
[16:58:36] [server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_74]
at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_74]
at net.minecraft.util.Util.runTask(Util.java:23) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:736) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_74]
Caused by: java.lang.NullPointerException
at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:57) ~[itemSeeds.class:?]
at net.minecraft.block.Block.canSustainPlant(Block.java:1993) ~[block.class:?]
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:36) ~[itemSeeds.class:?]
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:722) ~[ForgeHooks.class:?]
at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:148) ~[itemStack.class:?]
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:471) ~[itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:617) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:70) ~[C08PacketPlayerBlockPlacement.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:10) ~[C08PacketPlayerBlockPlacement.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_74]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_74]
at net.minecraft.util.Util.runTask(Util.java:22) ~[util.class:?]
... 5 more
[16:58:36] [server thread/INFO]: Stopping server
[16:58:36] [server thread/INFO]: Saving players
[16:58:36] [server thread/INFO]: Saving worlds
[16:58:36] [server thread/INFO]: Saving chunks for level 'Test'/Overworld
[16:58:36] [server thread/INFO]: Saving chunks for level 'Test'/Nether
[16:58:36] [server thread/INFO]: Saving chunks for level 'Test'/The End
[16:58:37] [server thread/INFO] [FML]: Unloading dimension 0
[16:58:37] [server thread/INFO] [FML]: Unloading dimension -1
[16:58:37] [server thread/INFO] [FML]: Unloading dimension 1
[16:58:39] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:57) ~[itemSeeds.class:?]
at net.minecraft.block.Block.canSustainPlant(Block.java:1993) ~[block.class:?]
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:36) ~[itemSeeds.class:?]
at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:149) ~[itemStack.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:438) ~[PlayerControllerMP.class:?]
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1569) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2123) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:380) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_74]
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_74]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_74]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
[16:58:39] [server thread/INFO] [FML]: Applying holder lookups
[16:58:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: ---- Minecraft Crash Report ----
// I let you down. Sorry 

Time: 04/10/16 4:58 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:57)
at net.minecraft.block.Block.canSustainPlant(Block.java:1993)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:36)
at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:149)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:438)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1569)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2123)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080)
at net.minecraft.client.Minecraft.run(Minecraft.java:380)
at net.minecraft.client.main.Main.main(Main.java:116)
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 --
Stacktrace:
at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:57)
at net.minecraft.block.Block.canSustainPlant(Block.java:1993)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:36)
at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:149)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:438)
at net.minecraft.client.Minecraft.rightClickMouse(Minecraft.java:1569)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Player36'/295, l='MpServer', x=155.21, y=63.00, z=261.01]]
Chunk stats: MultiplayerChunkCache: 582, 582
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: 111.00,64.00,260.00 - World: (111,64,260), Chunk: (at 15,4,4 in 6,16; contains blocks 96,0,256 to 111,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 127887 game time, 6000 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: 68 total; [EntitySheep['Sheep'/129, l='MpServer', x=125.50, y=66.00, z=234.50], EntitySheep['Sheep'/130, l='MpServer', x=125.50, y=66.00, z=236.50], EntityBat['Bat'/131, l='MpServer', x=120.56, y=54.10, z=245.75], EntityBat['Bat'/132, l='MpServer', x=119.34, y=55.10, z=253.75], EntityItem['item.item.egg'/133, l='MpServer', x=112.19, y=69.00, z=297.66], EntityChicken['Chicken'/134, l='MpServer', x=117.38, y=69.00, z=311.28], EntityBat['Bat'/8710, l='MpServer', x=182.25, y=16.10, z=255.69], EntityChicken['Chicken'/135, l='MpServer', x=114.31, y=65.00, z=302.56], EntityChicken['Chicken'/136, l='MpServer', x=107.50, y=72.00, z=329.50], EntitySheep['Sheep'/146, l='MpServer', x=137.88, y=63.00, z=272.91], EntitySheep['Sheep'/147, l='MpServer', x=138.75, y=63.00, z=260.69], EntityBat['Bat'/148, l='MpServer', x=137.06, y=23.10, z=282.59], EntityChicken['Chicken'/149, l='MpServer', x=130.25, y=64.00, z=290.97], EntityItem['item.item.egg'/150, l='MpServer', x=130.72, y=64.00, z=290.78], EntityChicken['Chicken'/151, l='MpServer', x=143.75, y=75.66, z=315.78], EntityItem['item.item.egg'/152, l='MpServer', x=143.94, y=76.00, z=315.13], EntityChicken['Chicken'/153, l='MpServer', x=133.38, y=76.66, z=335.25], EntityChicken['Chicken'/161, l='MpServer', x=143.13, y=63.00, z=235.22], EntityItem['item.item.egg'/162, l='MpServer', x=155.59, y=64.00, z=242.06], EntityBat['Bat'/167, l='MpServer', x=174.81, y=14.19, z=179.78], EntityBat['Bat'/168, l='MpServer', x=165.75, y=26.28, z=233.25], EntitySheep['Sheep'/169, l='MpServer', x=173.63, y=64.00, z=299.53], EntityPig['Pig'/180, l='MpServer', x=183.22, y=63.00, z=253.78], EntityChicken['Chicken'/181, l='MpServer', x=178.97, y=62.63, z=275.59], EntityItem['item.item.egg'/182, l='MpServer', x=177.69, y=62.00, z=276.59], EntitySheep['Sheep'/183, l='MpServer', x=184.88, y=65.00, z=302.69], EntitySheep['Sheep'/184, l='MpServer', x=182.75, y=68.00, z=297.50], EntitySheep['Sheep'/185, l='MpServer', x=180.66, y=70.00, z=315.44], EntityCow['Cow'/186, l='MpServer', x=191.31, y=73.00, z=307.72], EntityCow['Cow'/187, l='MpServer', x=181.31, y=79.00, z=332.75], EntityPlayerSP['Player36'/295, l='MpServer', x=155.21, y=63.00, z=261.01], EntityItem['item.item.egg'/203, l='MpServer', x=194.44, y=72.00, z=200.16], EntityBat['Bat'/204, l='MpServer', x=205.25, y=42.10, z=214.75], EntityBat['Bat'/205, l='MpServer', x=200.34, y=41.03, z=207.59], EntityChicken['Chicken'/206, l='MpServer', x=192.69, y=71.00, z=222.38], EntityBat['Bat'/7886, l='MpServer', x=112.81, y=22.03, z=294.69], EntityChicken['Chicken'/207, l='MpServer', x=205.63, y=63.00, z=290.47], EntitySheep['Sheep'/88, l='MpServer', x=74.53, y=68.00, z=213.75], EntityChicken['Chicken'/217, l='MpServer', x=216.66, y=71.00, z=200.50], EntityChicken['Chicken'/218, l='MpServer', x=221.63, y=74.00, z=261.47], EntityChicken['Chicken'/219, l='MpServer', x=221.50, y=73.00, z=265.34], EntityChicken['Chicken'/221, l='MpServer', x=212.25, y=62.69, z=278.56], EntityChicken['Chicken'/222, l='MpServer', x=209.50, y=62.50, z=281.75], EntityCow['Cow'/224, l='MpServer', x=214.53, y=84.00, z=327.28], EntityChicken['Chicken'/99, l='MpServer', x=87.41, y=62.47, z=182.75], EntitySquid['Squid'/8163, l='MpServer', x=157.50, y=56.00, z=310.19], EntityChicken['Chicken'/102, l='MpServer', x=86.09, y=66.00, z=199.47], EntityPig['Pig'/104, l='MpServer', x=90.41, y=65.00, z=210.50], EntityChicken['Chicken'/105, l='MpServer', x=80.75, y=62.69, z=269.38], EntityChicken['Chicken'/106, l='MpServer', x=83.47, y=62.63, z=313.97], EntitySquid['Squid'/8554, l='MpServer', x=156.06, y=56.00, z=305.69], EntityBat['Bat'/107, l='MpServer', x=88.06, y=24.10, z=328.56], EntityChicken['Chicken'/239, l='MpServer', x=228.97, y=72.56, z=245.66], EntityPig['Pig'/112, l='MpServer', x=104.91, y=63.00, z=206.78], EntityBat['Bat'/113, l='MpServer', x=109.59, y=19.81, z=277.41], EntityChicken['Chicken'/114, l='MpServer', x=103.59, y=69.00, z=289.41], EntityChicken['Chicken'/115, l='MpServer', x=99.63, y=64.00, z=301.38], EntityChicken['Chicken'/116, l='MpServer', x=98.50, y=64.00, z=293.63], EntityItem['item.item.egg'/117, l='MpServer', x=98.69, y=64.00, z=300.88], EntityItem['item.item.egg'/118, l='MpServer', x=96.13, y=64.00, z=298.50], EntityChicken['Chicken'/119, l='MpServer', x=96.34, y=64.00, z=319.31], EntityItem['item.item.egg'/120, l='MpServer', x=111.09, y=64.00, z=310.81], EntityItem['item.item.egg'/121, l='MpServer', x=96.16, y=64.00, z=320.22], EntityChicken['Chicken'/122, l='MpServer', x=102.34, y=76.00, z=341.47], EntityBat['Bat'/7291, l='MpServer', x=130.42, y=19.49, z=253.30], EntityChicken['Chicken'/123, l='MpServer', x=91.66, y=74.00, z=339.50], EntityChicken['Chicken'/125, l='MpServer', x=118.38, y=62.63, z=189.28], EntityChicken['Chicken'/127, l='MpServer', x=124.72, y=62.56, z=192.97]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:383)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2645)
at net.minecraft.client.Minecraft.run(Minecraft.java:409)
at net.minecraft.client.main.Main.main(Main.java:116)
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.8.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_74, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 721064520 bytes (687 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar) 
UCHIJAAAA	Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar) 
UCHIJAAAA	am{1.0} [JulesMaster7's Awesome Mod] (bin) 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.0' Renderer: 'AMD Radeon HD 7660D'
Launched Version: 1.8.9
LWJGL: 2.9.4
OpenGL: AMD Radeon HD 7660D GL version 4.5.13399 Compatibility Profile Context 15.201.1151.0, ATI Technologies Inc.
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: 4x AMD A10-5800K APU with Radeon(tm) HD Graphics 
[16:58:39] [server thread/INFO] [FML]: Holder lookups applied
[16:58:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Users\Julian Grieco\My Projects\Coding\Minecraft\Awesome Mod\Awesome Mod 1.8\run\.\crash-reports\crash-2016-10-04_16.58.39-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

Thank you in advance.

 

Posted

You register your items before your blocks, so the block field you pass to your item's constructor contains 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

You register your items before your blocks, so the block field you pass to your item's constructor contains null.

I had that problem as well, I think it's quite a common one.

I still haven't published a mod because I can never get that in-dev version just right to warrant a public release. And yes, after two years of mod development I am still learning to speak Java.

 

Follow me on GitHub: https://github.com/yooksi

Contact me on Twitter: https://twitter.com/yooksi

Read my Minecraft blog: https://yooksidoesminecraft.blogspot.de/

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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