Jump to content

Recommended Posts

Posted

I keep crashing when I open my tool tab and its because of the new Item I added I think its because of the way im doing nbt now keep in mind I literally just figured out nbt.

 

package com.linumhost.Items;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;

public class DarkPickaxe extends Item{

public DarkPickaxe(){

}

public Integer[] maxLevelXp = new Integer[5];

public void populateArray(){

	maxLevelXp[0] = 10;
	maxLevelXp[1] = 20;
	maxLevelXp[2] = 30;
	maxLevelXp[3] = 40;
	maxLevelXp[4] = 50;

}

@Override
public void onUpdate(ItemStack itemstack, World world, Entity entity, int metadata, boolean bool)
{
        if (itemstack.stackTagCompound == null)
        {
            itemstack.stackTagCompound = new NBTTagCompound(); //or itemstack.setTagCompound(new NBTTagCompound());
        }
        
        itemstack.stackTagCompound.setInteger("toolLevel", 0);

        
}


public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player)
{
        itemstack.stackTagCompound.setInteger("XP", 1 + maxLevelXp[itemstack.stackTagCompound.getInteger("toolLevel")]);
        itemstack.damageItem(1, player);
        return itemstack;

}


@Override
@SideOnly(Side.CLIENT)
    public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
	int level = stack.stackTagCompound.getInteger("XP");
	list.add(level);

}

}

 

heres the crash report

 

---- Minecraft Crash Report ----
// Why is it breaking 

Time: 2/25/15 6:50 PM
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
at com.linumhost.Items.DarkPickaxe.addInformation(DarkPickaxe.java:59)
at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:641)
at net.minecraft.client.gui.GuiScreen.renderToolTip(GuiScreen.java:124)
at net.minecraft.client.gui.inventory.GuiContainerCreative.renderToolTip(GuiContainerCreative.java:769)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:186)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)


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

-- Head --
Stacktrace:
at com.linumhost.Items.DarkPickaxe.addInformation(DarkPickaxe.java:59)
at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:641)
at net.minecraft.client.gui.GuiScreen.renderToolTip(GuiScreen.java:124)
at net.minecraft.client.gui.inventory.GuiContainerCreative.renderToolTip(GuiContainerCreative.java:769)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:186)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)

-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
Mouse location: Scaled: (285, 126). Absolute: (571, 453)
Screen size: Scaled: (683, 353). Absolute: (1366, 706). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player737'/280, l='MpServer', x=-163.28, y=5.62, z=75.15]]
Chunk stats: MultiplayerChunkCache: 625, 625
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: World: (-178,4,65), Chunk: (at 14,0,1 in -12,4; contains blocks -192,0,64 to -177,255,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 88607 game time, 32073 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: 128 total; [EntitySlime['Slime'/51, l='MpServer', x=-232.63, y=4.00, z=57.31], EntityChicken['Chicken'/49, l='MpServer', x=-242.47, y=4.00, z=46.47], EntityCow['Cow'/48, l='MpServer', x=-243.91, y=4.00, z=21.38], EntitySheep['Sheep'/70, l='MpServer', x=-235.53, y=4.00, z=-2.06], EntitySheep['Sheep'/67, l='MpServer', x=-239.22, y=4.00, z=-2.16], EntitySheep['Sheep'/76, l='MpServer', x=-226.41, y=4.00, z=9.81], EntityHorse['Donkey'/77, l='MpServer', x=-232.50, y=4.00, z=14.59], EntitySlime['Slime'/78, l='MpServer', x=-240.47, y=4.81, z=13.44], EntitySlime['Slime'/79, l='MpServer', x=-219.71, y=4.00, z=26.60], EntitySlime['Slime'/72, l='MpServer', x=-239.97, y=4.47, z=-5.80], EntityPig['Pig'/73, l='MpServer', x=-233.75, y=4.00, z=4.03], EntitySheep['Sheep'/74, l='MpServer', x=-229.50, y=4.00, z=4.75], EntityHorse['Donkey'/75, l='MpServer', x=-228.44, y=4.00, z=6.19], EntityCow['Cow'/85, l='MpServer', x=-236.91, y=4.00, z=58.31], EntityChicken['Chicken'/84, l='MpServer', x=-231.30, y=4.00, z=43.57], EntitySlime['Slime'/86, l='MpServer', x=-235.47, y=4.00, z=141.70], EntityCow['Cow'/81, l='MpServer', x=-222.03, y=4.00, z=41.13], EntityCow['Cow'/80, l='MpServer', x=-241.84, y=4.00, z=41.94], EntityCow['Cow'/83, l='MpServer', x=-232.63, y=4.00, z=51.50], EntitySlime['Slime'/82, l='MpServer', x=-238.41, y=4.00, z=24.63], EntityClientPlayerMP['Player737'/280, l='MpServer', x=-163.28, y=5.62, z=75.15], EntityCow['Cow'/93, l='MpServer', x=-231.81, y=4.00, z=61.13], EntityCow['Cow'/92, l='MpServer', x=-222.09, y=4.00, z=53.28], EntitySlime['Slime'/95, l='MpServer', x=-224.91, y=4.00, z=104.00], EntitySlime['Slime'/94, l='MpServer', x=-227.62, y=4.85, z=75.53], EntityPig['Pig'/89, l='MpServer', x=-212.13, y=4.00, z=-1.25], EntitySlime['Slime'/91, l='MpServer', x=-220.50, y=4.00, z=31.09], EntityChicken['Chicken'/90, l='MpServer', x=-220.56, y=4.00, z=45.59], EntitySlime['Slime'/102, l='MpServer', x=-203.92, y=4.00, z=84.80], EntitySlime['Slime'/103, l='MpServer', x=-200.93, y=4.81, z=94.65], EntitySlime['Slime'/100, l='MpServer', x=-201.34, y=4.61, z=36.50], EntitySlime['Slime'/101, l='MpServer', x=-198.41, y=4.00, z=58.22], EntitySlime['Slime'/98, l='MpServer', x=-213.50, y=4.00, z=143.22], EntitySlime['Slime'/99, l='MpServer', x=-200.46, y=4.14, z=48.00], EntitySlime['Slime'/96, l='MpServer', x=-218.29, y=4.14, z=127.52], EntitySlime['Slime'/97, l='MpServer', x=-225.86, y=4.96, z=138.49], EntitySlime['Slime'/104, l='MpServer', x=-199.95, y=4.00, z=133.99], EntitySheep['Sheep'/119, l='MpServer', x=-173.94, y=4.00, z=-3.94], EntityChicken['Chicken'/117, l='MpServer', x=-180.44, y=4.00, z=-0.44], EntityPig['Pig'/115, l='MpServer', x=-183.16, y=4.00, z=-4.13], EntitySlime['Slime'/126, l='MpServer', x=-193.06, y=4.61, z=135.63], EntitySlime['Slime'/125, l='MpServer', x=-193.56, y=4.81, z=142.55], EntitySlime['Slime'/124, l='MpServer', x=-183.85, y=4.00, z=130.83], EntitySlime['Slime'/123, l='MpServer', x=-194.53, y=4.00, z=127.69], EntitySlime['Slime'/122, l='MpServer', x=-183.34, y=4.00, z=43.87], EntitySlime['Slime'/121, l='MpServer', x=-190.08, y=4.00, z=29.59], EntityChicken['Chicken'/120, l='MpServer', x=-186.47, y=4.00, z=8.41], EntitySheep['Sheep'/137, l='MpServer', x=-165.25, y=4.00, z=-0.75], EntityChicken['Chicken'/139, l='MpServer', x=-173.38, y=4.00, z=1.78], EntityItem['item.item.carrots'/141, l='MpServer', x=-162.88, y=5.13, z=19.56], EntityItem['item.item.wheat'/143, l='MpServer', x=-171.38, y=5.13, z=56.91], EntitySlime['Slime'/142, l='MpServer', x=-168.22, y=4.00, z=28.03], EntityItem['item.item.seeds'/144, l='MpServer', x=-170.63, y=5.13, z=57.94], EntityItem['item.item.potato'/145, l='MpServer', x=-174.34, y=5.13, z=55.88], EntityItem['item.item.potato'/146, l='MpServer', x=-174.16, y=5.13, z=54.19], EntitySlime['Slime'/147, l='MpServer', x=-159.80, y=4.00, z=60.45], EntitySlime['Slime'/148, l='MpServer', x=-166.60, y=4.35, z=81.84], EntitySlime['Slime'/149, l='MpServer', x=-171.66, y=4.85, z=87.00], EntitySlime['Slime'/150, l='MpServer', x=-179.85, y=4.35, z=130.63], EntityVillager['Villager'/175, l='MpServer', x=-133.50, y=5.50, z=31.06], EntitySlime['Slime'/163, l='MpServer', x=-148.96, y=4.00, z=61.11], EntitySlime['Slime'/162, l='MpServer', x=-146.84, y=5.47, z=35.22], EntityVillager['Villager'/161, l='MpServer', x=-144.06, y=5.00, z=47.50], EntitySlime['Slime'/160, l='MpServer', x=-145.91, y=4.00, z=27.19], EntitySlime['Slime'/167, l='MpServer', x=-152.10, y=4.96, z=155.08], EntitySlime['Slime'/166, l='MpServer', x=-149.78, y=4.00, z=143.21], EntitySlime['Slime'/165, l='MpServer', x=-143.84, y=4.18, z=146.91], EntitySlime['Slime'/164, l='MpServer', x=-152.91, y=4.00, z=122.28], EntityVillager['Villager'/186, l='MpServer', x=-135.91, y=4.00, z=41.69], EntityVillager['Villager'/187, l='MpServer', x=-134.59, y=4.00, z=40.97], EntityVillager['Villager'/184, l='MpServer', x=-133.66, y=5.00, z=32.50], EntityVillager['Villager'/185, l='MpServer', x=-134.69, y=5.00, z=33.53], EntitySheep['Sheep'/190, l='MpServer', x=-128.78, y=4.00, z=60.59], EntityVillager['Villager'/191, l='MpServer', x=-136.00, y=5.00, z=50.41], EntitySlime['Slime'/188, l='MpServer', x=-128.31, y=4.00, z=35.63], EntityVillager['Villager'/189, l='MpServer', x=-135.28, y=5.00, z=51.56], EntityItem['item.item.seeds'/178, l='MpServer', x=-131.59, y=5.13, z=22.13], EntityItem['item.item.wheat'/179, l='MpServer', x=-134.63, y=5.13, z=17.53], EntityVillager['Villager'/176, l='MpServer', x=-130.72, y=5.00, z=30.72], EntityItem['item.item.wheat'/177, l='MpServer', x=-132.25, y=5.13, z=20.16], EntitySheep['Sheep'/182, l='MpServer', x=-135.50, y=4.00, z=39.34], EntityVillager['Villager'/183, l='MpServer', x=-136.47, y=5.00, z=44.13], EntityItem['item.item.seeds'/180, l='MpServer', x=-132.81, y=5.13, z=16.63], EntityItem['item.item.seeds'/181, l='MpServer', x=-132.25, y=5.13, z=18.63], EntitySlime['Slime'/197, l='MpServer', x=-135.93, y=4.00, z=147.55], EntitySlime['Slime'/196, l='MpServer', x=-138.36, y=4.00, z=146.03], EntitySlime['Slime'/193, l='MpServer', x=-142.88, y=4.81, z=87.13], EntitySlime['Slime'/192, l='MpServer', x=-137.84, y=4.00, z=46.63], EntitySlime['Slime'/194, l='MpServer', x=-133.61, y=4.96, z=107.24], EntitySheep['Sheep'/220, l='MpServer', x=-126.88, y=4.00, z=59.06], EntitySheep['Sheep'/221, l='MpServer', x=-114.28, y=4.00, z=88.06], EntitySlime['Slime'/222, l='MpServer', x=-109.78, y=4.00, z=110.09], EntitySheep['Sheep'/216, l='MpServer', x=-121.13, y=4.00, z=55.56], EntitySheep['Sheep'/217, l='MpServer', x=-123.69, y=4.00, z=48.38], EntitySheep['Sheep'/218, l='MpServer', x=-115.16, y=4.00, z=56.78], EntitySheep['Sheep'/219, l='MpServer', x=-122.19, y=4.00, z=60.66], EntitySheep['Sheep'/212, l='MpServer', x=-127.38, y=4.00, z=37.53], EntityVillager['Villager'/213, l='MpServer', x=-124.56, y=5.00, z=39.31], EntityVillager['Villager'/214, l='MpServer', x=-120.41, y=4.00, z=42.78], EntitySheep['Sheep'/215, l='MpServer', x=-112.97, y=4.00, z=62.03], EntityVillager['Villager'/208, l='MpServer', x=-125.53, y=4.00, z=27.72], EntitySlime['Slime'/209, l='MpServer', x=-119.63, y=4.00, z=28.38], EntitySlime['Slime'/210, l='MpServer', x=-123.88, y=4.00, z=23.19], EntitySheep['Sheep'/211, l='MpServer', x=-118.50, y=5.00, z=34.63], EntityCow['Cow'/239, l='MpServer', x=-89.78, y=4.00, z=41.78], EntityCow['Cow'/238, l='MpServer', x=-93.25, y=4.00, z=36.44], EntitySlime['Slime'/237, l='MpServer', x=-88.59, y=4.00, z=20.61], EntityCow['Cow'/236, l='MpServer', x=-94.97, y=4.00, z=24.06], EntityCow['Cow'/235, l='MpServer', x=-83.15, y=4.00, z=25.03], EntitySheep['Sheep'/234, l='MpServer', x=-86.34, y=4.00, z=24.53], EntityPig['Pig'/233, l='MpServer', x=-98.03, y=4.00, z=77.03], EntityPig['Pig'/232, l='MpServer', x=-102.41, y=4.00, z=65.69], EntitySheep['Sheep'/231, l='MpServer', x=-99.78, y=4.00, z=68.47], EntitySlime['Slime'/230, l='MpServer', x=-101.44, y=4.99, z=58.38], EntitySheep['Sheep'/229, l='MpServer', x=-111.41, y=4.00, z=63.06], EntityPig['Pig'/228, l='MpServer', x=-96.28, y=4.00, z=25.41], EntityPig['Pig'/227, l='MpServer', x=-100.81, y=4.00, z=18.28], EntitySlime['Slime'/252, l='MpServer', x=-89.50, y=4.00, z=159.25], EntitySheep['Sheep'/248, l='MpServer', x=-94.25, y=4.00, z=99.34], EntitySlime['Slime'/249, l='MpServer', x=-88.09, y=4.35, z=119.73], EntityPig['Pig'/246, l='MpServer', x=-87.09, y=4.00, z=91.50], EntitySlime['Slime'/247, l='MpServer', x=-84.97, y=4.96, z=77.96], EntitySheep['Sheep'/244, l='MpServer', x=-86.72, y=4.00, z=72.53], EntitySheep['Sheep'/245, l='MpServer', x=-93.50, y=4.00, z=89.84], EntitySheep['Sheep'/242, l='MpServer', x=-85.26, y=4.00, z=75.77], EntityPig['Pig'/243, l='MpServer', x=-84.47, y=4.00, z=69.19], EntityPig['Pig'/240, l='MpServer', x=-88.63, y=4.00, z=41.72], EntitySheep['Sheep'/241, l='MpServer', x=-84.84, y=4.00, z=34.63]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)
at net.minecraft.client.Minecraft.run(Minecraft.java:973)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_75, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 818467208 bytes (780 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
servermod{1.0} [server Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
testmod{1.0} [Test Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4600 GL version 4.0.0 - Build 9.18.10.3324, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

Posted

Heres my new code still not working

 

package com.linumhost.Items;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;

public class DarkPickaxe extends Item{

public DarkPickaxe(){

}

public Integer[] maxLevelXp = new Integer[5];

public void populateArray(){

	maxLevelXp[0] = 10;
	maxLevelXp[1] = 20;
	maxLevelXp[2] = 30;
	maxLevelXp[3] = 40;
	maxLevelXp[4] = 50;

}

@Override
public void onUpdate(ItemStack stack, World world, Entity entity, int metadata, boolean bool)
{
        if (stack.stackTagCompound == null)
        {
        	stack.stackTagCompound = new NBTTagCompound(); //or itemstack.setTagCompound(new NBTTagCompound());
        }
        
        NBTTagCompound nbt = new NBTTagCompound();
        nbt.setInteger("currentLevel", 0);
        nbt.setInteger("currentXp", 1);
        nbt.setInteger("maxXp", maxLevelXp[nbt.getInteger("currentLevel")]);
        stack.getTagCompound().setTag("itemLevelInfo", nbt);
        
}


public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player)
{
        itemstack.stackTagCompound.setInteger("XP", 1 + maxLevelXp[itemstack.stackTagCompound.getInteger("toolLevel")]);
        itemstack.damageItem(1, player);
        return itemstack;

}


@Override
@SideOnly(Side.CLIENT)
    public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {

	NBTTagCompound nbt = (NBTTagCompound) stack.getTagCompound().getTag("itemLevelInfo");
	int currentLevel = nbt.getInteger("currentLevel");
	int maxXp = nbt.getInteger("maxXp");
	int currentXp = nbt.getInteger("currentXp");

	list.add("Level: " + currentLevel);
	list.add("XP: " + currentXp + "/" + maxXp);

}

}

 

heres report

 

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 2/25/15 7:04 PM
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
at com.linumhost.Items.DarkPickaxe.addInformation(DarkPickaxe.java:62)
at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:641)
at net.minecraft.client.gui.GuiScreen.renderToolTip(GuiScreen.java:124)
at net.minecraft.client.gui.inventory.GuiContainerCreative.renderToolTip(GuiContainerCreative.java:769)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:186)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)


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

-- Head --
Stacktrace:
at com.linumhost.Items.DarkPickaxe.addInformation(DarkPickaxe.java:62)
at net.minecraft.item.ItemStack.getTooltip(ItemStack.java:641)
at net.minecraft.client.gui.GuiScreen.renderToolTip(GuiScreen.java:124)
at net.minecraft.client.gui.inventory.GuiContainerCreative.renderToolTip(GuiContainerCreative.java:769)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:186)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)

-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
Mouse location: Scaled: (287, 142). Absolute: (574, 420)
Screen size: Scaled: (683, 353). Absolute: (1366, 706). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player676'/278, l='MpServer', x=-163.28, y=5.62, z=75.15]]
Chunk stats: MultiplayerChunkCache: 625, 625
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: World: (-178,4,65), Chunk: (at 14,0,1 in -12,4; contains blocks -192,0,64 to -177,255,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 89021 game time, 32487 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: 129 total; [EntitySlime['Slime'/257, l='MpServer', x=-88.13, y=4.00, z=126.75], EntitySheep['Sheep'/48, l='MpServer', x=-240.22, y=4.00, z=-2.63], EntityCow['Cow'/54, l='MpServer', x=-243.91, y=4.00, z=21.38], EntitySlime['Slime'/23618, l='MpServer', x=-172.00, y=4.00, z=128.52], EntityCow['Cow'/56, l='MpServer', x=-241.88, y=4.00, z=41.97], EntitySlime['Slime'/61, l='MpServer', x=-241.69, y=4.00, z=121.75], EntityHorse['Donkey'/76, l='MpServer', x=-233.06, y=4.00, z=5.38], EntitySheep['Sheep'/77, l='MpServer', x=-225.63, y=4.00, z=13.84], EntityHorse['Donkey'/78, l='MpServer', x=-227.81, y=4.00, z=14.41], EntitySlime['Slime'/79, l='MpServer', x=-229.78, y=4.00, z=13.71], EntityItem['item.item.seeds'/18094, l='MpServer', x=-159.22, y=5.13, z=49.69], EntityPig['Pig'/73, l='MpServer', x=-228.16, y=4.00, z=-3.69], EntityItem['item.item.seeds'/18093, l='MpServer', x=-158.81, y=5.13, z=48.31], EntityPig['Pig'/74, l='MpServer', x=-233.81, y=4.00, z=3.91], EntityItem['item.item.wheat'/18092, l='MpServer', x=-159.13, y=5.13, z=47.72], EntitySheep['Sheep'/75, l='MpServer', x=-229.44, y=4.00, z=4.50], EntitySlime['Slime'/85, l='MpServer', x=-240.61, y=5.01, z=61.60], EntityCow['Cow'/84, l='MpServer', x=-231.81, y=4.00, z=61.13], EntitySlime['Slime'/86, l='MpServer', x=-233.05, y=4.00, z=119.47], EntityChicken['Chicken'/81, l='MpServer', x=-233.53, y=4.00, z=40.53], EntityChicken['Chicken'/80, l='MpServer', x=-230.59, y=4.00, z=42.59], EntityCow['Cow'/83, l='MpServer', x=-229.94, y=4.00, z=50.09], EntityCow['Cow'/82, l='MpServer', x=-232.75, y=4.00, z=51.31], EntityCow['Cow'/93, l='MpServer', x=-228.81, y=4.00, z=45.09], EntityChicken['Chicken'/92, l='MpServer', x=-220.56, y=4.00, z=45.59], EntityCow['Cow'/95, l='MpServer', x=-222.09, y=4.00, z=53.28], EntitySlime['Slime'/94, l='MpServer', x=-225.09, y=4.00, z=41.13], EntitySlime['Slime'/91, l='MpServer', x=-200.72, y=4.00, z=17.94], EntityPig['Pig'/90, l='MpServer', x=-212.13, y=4.00, z=-1.25], EntitySlime['Slime'/103, l='MpServer', x=-201.47, y=4.00, z=11.34], EntitySlime['Slime'/98, l='MpServer', x=-228.15, y=4.00, z=132.20], EntitySlime['Slime'/99, l='MpServer', x=-221.28, y=4.69, z=147.65], EntitySlime['Slime'/96, l='MpServer', x=-213.80, y=4.00, z=67.10], EntitySlime['Slime'/97, l='MpServer', x=-209.41, y=4.47, z=121.54], EntitySlime['Slime'/108, l='MpServer', x=-210.55, y=5.00, z=136.13], EntitySlime['Slime'/109, l='MpServer', x=-211.13, y=4.00, z=155.41], EntitySlime['Slime'/106, l='MpServer', x=-183.75, y=4.00, z=140.28], EntitySlime['Slime'/107, l='MpServer', x=-212.94, y=4.00, z=137.01], EntitySlime['Slime'/104, l='MpServer', x=-194.92, y=4.32, z=72.17], EntitySlime['Slime'/105, l='MpServer', x=-200.99, y=4.32, z=102.77], EntitySlime['Slime'/127, l='MpServer', x=-199.62, y=5.00, z=134.61], EntitySlime['Slime'/126, l='MpServer', x=-180.87, y=5.00, z=103.74], EntitySlime['Slime'/125, l='MpServer', x=-189.91, y=4.00, z=73.88], EntitySlime['Slime'/124, l='MpServer', x=-178.53, y=6.00, z=65.97], EntitySlime['Slime'/123, l='MpServer', x=-196.87, y=4.47, z=28.41], EntityChicken['Chicken'/122, l='MpServer', x=-186.47, y=4.00, z=8.41], EntityChicken['Chicken'/121, l='MpServer', x=-180.44, y=4.00, z=-0.44], EntitySheep['Sheep'/137, l='MpServer', x=-165.25, y=4.00, z=-0.75], EntityChicken['Chicken'/140, l='MpServer', x=-173.38, y=4.00, z=1.78], EntityBat['Bat'/143, l='MpServer', x=-154.61, y=12.95, z=28.38], EntityItem['item.item.carrots'/142, l='MpServer', x=-162.88, y=5.13, z=19.56], EntitySlime['Slime'/128, l='MpServer', x=-187.28, y=4.00, z=149.88], EntitySlime['Slime'/5624, l='MpServer', x=-145.41, y=4.00, z=10.48], EntityItem['item.item.wheat'/144, l='MpServer', x=-171.38, y=5.13, z=56.91], EntityItem['item.item.seeds'/145, l='MpServer', x=-170.63, y=5.13, z=57.94], EntityItem['item.item.potato'/146, l='MpServer', x=-174.34, y=5.13, z=55.88], EntityItem['item.item.potato'/147, l='MpServer', x=-174.16, y=5.13, z=54.19], EntitySlime['Slime'/148, l='MpServer', x=-170.59, y=4.47, z=103.74], EntitySlime['Slime'/149, l='MpServer', x=-161.41, y=4.32, z=134.40], EntitySlime['Slime'/150, l='MpServer', x=-169.20, y=4.95, z=132.62], EntityVillager['Villager'/175, l='MpServer', x=-133.50, y=5.50, z=31.06], EntityClientPlayerMP['Player676'/278, l='MpServer', x=-163.28, y=5.62, z=75.15], EntitySlime['Slime'/32933, l='MpServer', x=-148.82, y=4.00, z=125.69], EntitySlime['Slime'/163, l='MpServer', x=-160.78, y=5.00, z=47.22], EntitySlime['Slime'/162, l='MpServer', x=-146.84, y=5.00, z=35.22], EntityVillager['Villager'/161, l='MpServer', x=-144.06, y=5.00, z=47.50], EntitySlime['Slime'/160, l='MpServer', x=-152.41, y=4.00, z=26.50], EntitySlime['Slime'/167, l='MpServer', x=-156.50, y=4.00, z=146.66], EntitySlime['Slime'/166, l='MpServer', x=-144.97, y=5.00, z=122.12], EntitySlime['Slime'/165, l='MpServer', x=-163.31, y=4.00, z=100.00], EntitySlime['Slime'/164, l='MpServer', x=-146.02, y=4.60, z=51.17], EntityVillager['Villager'/186, l='MpServer', x=-133.53, y=4.00, z=41.69], EntityVillager['Villager'/187, l='MpServer', x=-133.41, y=4.00, z=39.53], EntityVillager['Villager'/184, l='MpServer', x=-133.66, y=5.00, z=32.50], EntityVillager['Villager'/185, l='MpServer', x=-134.69, y=5.00, z=33.53], EntitySheep['Sheep'/190, l='MpServer', x=-128.78, y=4.00, z=60.59], EntityVillager['Villager'/191, l='MpServer', x=-138.88, y=4.00, z=42.47], EntitySlime['Slime'/188, l='MpServer', x=-130.69, y=4.00, z=43.31], EntityVillager['Villager'/189, l='MpServer', x=-135.00, y=5.00, z=51.94], EntityItem['item.item.seeds'/178, l='MpServer', x=-131.59, y=5.13, z=22.13], EntityItem['item.item.wheat'/179, l='MpServer', x=-134.63, y=5.13, z=17.53], EntityVillager['Villager'/176, l='MpServer', x=-130.72, y=5.00, z=30.72], EntityItem['item.item.wheat'/177, l='MpServer', x=-132.25, y=5.13, z=20.16], EntitySlime['Slime'/182, l='MpServer', x=-134.25, y=5.00, z=26.09], EntitySheep['Sheep'/183, l='MpServer', x=-135.50, y=4.00, z=39.34], EntityItem['item.item.seeds'/180, l='MpServer', x=-132.81, y=5.13, z=16.63], EntityItem['item.item.seeds'/181, l='MpServer', x=-132.25, y=5.13, z=18.63], EntityVillager['Villager'/205, l='MpServer', x=-125.63, y=4.00, z=27.63], EntitySlime['Slime'/204, l='MpServer', x=-126.77, y=4.00, z=0.68], EntitySlime['Slime'/207, l='MpServer', x=-123.16, y=4.00, z=22.13], EntitySlime['Slime'/206, l='MpServer', x=-119.63, y=4.00, z=28.38], EntityChicken['Chicken'/194, l='MpServer', x=-141.44, y=4.00, z=150.56], EntitySlime['Slime'/24467, l='MpServer', x=-213.05, y=4.00, z=108.59], EntitySheep['Sheep'/220, l='MpServer', x=-114.28, y=4.00, z=88.06], EntitySlime['Slime'/221, l='MpServer', x=-112.75, y=4.47, z=110.50], EntitySlime['Slime'/222, l='MpServer', x=-119.16, y=4.00, z=134.19], EntitySheep['Sheep'/216, l='MpServer', x=-115.16, y=4.00, z=56.78], EntitySheep['Sheep'/217, l='MpServer', x=-113.97, y=4.00, z=58.03], EntitySheep['Sheep'/218, l='MpServer', x=-126.88, y=4.00, z=59.06], EntitySheep['Sheep'/219, l='MpServer', x=-113.06, y=4.00, z=63.09], EntityVillager['Villager'/212, l='MpServer', x=-125.50, y=5.00, z=39.25], EntitySheep['Sheep'/213, l='MpServer', x=-113.56, y=4.00, z=60.56], EntitySheep['Sheep'/214, l='MpServer', x=-121.13, y=4.00, z=55.56], EntitySheep['Sheep'/215, l='MpServer', x=-123.69, y=4.00, z=48.38], EntitySheep['Sheep'/208, l='MpServer', x=-127.88, y=4.00, z=46.03], EntitySheep['Sheep'/209, l='MpServer', x=-127.06, y=4.00, z=36.81], EntityVillager['Villager'/210, l='MpServer', x=-124.56, y=5.00, z=39.31], EntityVillager['Villager'/211, l='MpServer', x=-129.90, y=6.00, z=33.50], EntityPig['Pig'/239, l='MpServer', x=-88.78, y=4.00, z=41.42], EntityCow['Cow'/238, l='MpServer', x=-89.94, y=4.00, z=41.57], EntityCow['Cow'/237, l='MpServer', x=-89.03, y=4.00, z=18.03], EntitySheep['Sheep'/235, l='MpServer', x=-86.34, y=4.00, z=24.53], EntitySlime['Slime'/234, l='MpServer', x=-91.59, y=4.00, z=0.56], EntitySlime['Slime'/232, l='MpServer', x=-99.66, y=4.00, z=92.78], EntityPig['Pig'/231, l='MpServer', x=-109.97, y=4.00, z=74.84], EntitySlime['Slime'/230, l='MpServer', x=-113.06, y=4.00, z=91.66], EntitySheep['Sheep'/229, l='MpServer', x=-94.28, y=4.00, z=70.38], EntityPig['Pig'/228, l='MpServer', x=-107.19, y=4.00, z=56.19], EntityCow['Cow'/227, l='MpServer', x=-102.75, y=4.00, z=37.31], EntityPig['Pig'/226, l='MpServer', x=-96.28, y=4.00, z=25.41], EntityPig['Pig'/225, l='MpServer', x=-100.81, y=4.00, z=18.28], EntitySheep['Sheep'/248, l='MpServer', x=-91.72, y=4.00, z=88.22], EntitySlime['Slime'/249, l='MpServer', x=-87.34, y=4.00, z=155.03], EntitySlime['Slime'/246, l='MpServer', x=-93.53, y=4.47, z=61.99], EntitySheep['Sheep'/247, l='MpServer', x=-93.69, y=4.00, z=89.44], EntityPig['Pig'/244, l='MpServer', x=-84.47, y=4.00, z=69.19], EntitySheep['Sheep'/245, l='MpServer', x=-86.72, y=4.00, z=72.53], EntitySlime['Slime'/242, l='MpServer', x=-86.28, y=4.00, z=42.49], EntitySheep['Sheep'/243, l='MpServer', x=-88.88, y=4.00, z=78.13]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)
at net.minecraft.client.Minecraft.run(Minecraft.java:973)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_75, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 772474144 bytes (736 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
servermod{1.0} [server Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
testmod{1.0} [Test Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4600 GL version 4.0.0 - Build 9.18.10.3324, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

Posted

Have you registered this item? I had the same problem and it turned put I forgot to register the item. :)

Posted

NBTTagCompound#getTag doesn't create any compound, so if it doesn't have tag for the context, it would just end up returning null.

Instead use NBTTagCompound#getCompoundTag.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

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.